@alveole/eslint-config 0.9.0

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.
Files changed (3) hide show
  1. package/README.md +12 -0
  2. package/index.js +32 -0
  3. package/package.json +26 -0
package/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # @alveole/eslint-config
2
+
3
+ Configuration ESLint partagée (flat config) pour les projets Alveole.
4
+
5
+ ## Usage
6
+
7
+ Dans un workspace:
8
+
9
+ ```js
10
+ // eslint.config.js
11
+ module.exports = require('@alveole/eslint-config');
12
+ ```
package/index.js ADDED
@@ -0,0 +1,32 @@
1
+ const { defineConfig } = require('eslint/config');
2
+ const expoConfig = require('eslint-config-expo/flat');
3
+
4
+ module.exports = defineConfig([
5
+ expoConfig,
6
+ {
7
+ ignores: ['dist/**'],
8
+ },
9
+ {
10
+ files: ['**/*.{ts,tsx}'],
11
+ rules: {
12
+ 'no-redeclare': 'off',
13
+ '@typescript-eslint/no-redeclare': ['error', { ignoreDeclarationMerge: true }],
14
+ 'no-unused-vars': 'off',
15
+ '@typescript-eslint/no-unused-vars': [
16
+ 'error',
17
+ {
18
+ argsIgnorePattern: '^_',
19
+ varsIgnorePattern: '^_',
20
+ caughtErrorsIgnorePattern: '^_',
21
+ ignoreRestSiblings: true,
22
+ },
23
+ ],
24
+ },
25
+ },
26
+ {
27
+ files: ['**/services/**/*.{ts,tsx}'],
28
+ rules: {
29
+ '@typescript-eslint/no-redeclare': 'off',
30
+ },
31
+ },
32
+ ]);
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@alveole/eslint-config",
3
+ "version": "0.9.0",
4
+ "description": "ESLint flat config pour les projets Alveole",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "build": "echo \"Nothing to build for @alveole/eslint-config\"",
8
+ "lint": "eslint ."
9
+ },
10
+ "files": [
11
+ "index.js",
12
+ "README.md"
13
+ ],
14
+ "peerDependencies": {
15
+ "eslint": "^9.0.0"
16
+ },
17
+ "dependencies": {
18
+ "eslint-config-expo": "^10.0.0"
19
+ },
20
+ "devDependencies": {
21
+ "eslint": "^9.39.2"
22
+ },
23
+ "publishConfig": {
24
+ "access": "public"
25
+ }
26
+ }