@indigo-reemploi/eslint-config-api 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.gitlab-ci.yml ADDED
@@ -0,0 +1,10 @@
1
+ image: node:20
2
+
3
+ stages:
4
+ - Publish
5
+
6
+ publish:
7
+ stage: Publish
8
+ script:
9
+ - npm config set -- '//registry.npmjs.org/:_authToken' "${NPM_AUTH_TOKEN}"
10
+ - npm publish --verbose --access public
package/.yarnrc.yml ADDED
@@ -0,0 +1 @@
1
+ yarnPath: .yarn/releases/yarn-1.22.22.cjs
package/README.md ADDED
@@ -0,0 +1,16 @@
1
+ # Config Eslint partagé pour les services API
2
+
3
+ Comment utiliser :
4
+
5
+ ```bash
6
+ yarn add @indigo-reemploi/eslint-config-api
7
+ ```
8
+
9
+ ```javascript
10
+ // eslint.config.mjs
11
+ import api from "@indigo-reemploi/eslint-config-api";
12
+
13
+ export default [
14
+ ...api
15
+ ];
16
+ ```
package/index.mjs ADDED
@@ -0,0 +1,37 @@
1
+ import eslint from "@eslint/js";
2
+ import simpleImportSort from "eslint-plugin-simple-import-sort";
3
+ import tseslint from "typescript-eslint";
4
+ import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
5
+
6
+ export default tseslint.config(
7
+ eslint.configs.recommended,
8
+ ...tseslint.configs.recommended,
9
+ {
10
+ languageOptions: {
11
+ parserOptions: {
12
+ projectService: true,
13
+ // tsconfigRootDir: import.meta.dirname,
14
+ },
15
+ },
16
+ },
17
+ {
18
+ plugins: {
19
+ "simple-import-sort": simpleImportSort,
20
+ },
21
+ rules: {
22
+ "simple-import-sort/imports": "error",
23
+ "simple-import-sort/exports": "error",
24
+ },
25
+ },
26
+ {
27
+ rules: {
28
+ '@typescript-eslint/no-explicit-any': [
29
+ 'error',
30
+ {
31
+ ignoreRestArgs: true,
32
+ },
33
+ ],
34
+ }
35
+ },
36
+ eslintPluginPrettierRecommended
37
+ );
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@indigo-reemploi/eslint-config-api",
3
+ "version": "0.0.1",
4
+ "description": "Shared eslint config for API",
5
+ "main": "index.mjs",
6
+ "author": "Antoine Torrini",
7
+ "license": "MIT",
8
+ "packageManager": "yarn@1.22.22",
9
+ "dependencies": {
10
+ "@eslint/js": "^9.4.0",
11
+ "@types/eslint__js": "^8.42.3",
12
+ "@typescript-eslint/parser": "^8.0.1",
13
+ "eslint": "^9.4.0",
14
+ "eslint-config-prettier": "^9.1.0",
15
+ "eslint-plugin-astro": "^1.2.2",
16
+ "eslint-plugin-jsx-a11y": "^6.8.0",
17
+ "eslint-plugin-oxlint": "^0.4.0",
18
+ "eslint-plugin-prettier": "^5.2.1",
19
+ "eslint-plugin-simple-import-sort": "^12.1.0",
20
+ "eslint-plugin-tailwindcss": "^3.17.3",
21
+ "typescript-eslint": "^7.13.0"
22
+ }
23
+ }