@neurodevs/eslint-config-ndx 0.0.3 → 0.0.6
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/build/eslint.config.d.mts +2 -1
- package/build/eslint.config.mjs +11 -13
- package/build/eslint.config.mjs.map +1 -1
- package/eslint.config.mjs +13 -14
- package/package.json +1 -1
- package/src/eslint.config.mjs +13 -14
package/build/eslint.config.mjs
CHANGED
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
import globals from 'globals';
|
|
2
|
-
import
|
|
2
|
+
import eslintConfig from 'eslint/config';
|
|
3
|
+
const { defineConfig } = eslintConfig;
|
|
3
4
|
import prettierConfig from 'eslint-config-prettier/flat';
|
|
4
5
|
import esTypescript from '@typescript-eslint/eslint-plugin';
|
|
5
6
|
import esParser from '@typescript-eslint/parser';
|
|
6
7
|
import esImport from 'eslint-plugin-import';
|
|
7
8
|
import esReact from 'eslint-plugin-react';
|
|
8
|
-
const defaultFormattingRules = {
|
|
9
|
-
curly: 'error',
|
|
10
|
-
'no-console': 'off',
|
|
11
|
-
'no-undef': 'off',
|
|
12
|
-
'no-var': 'error',
|
|
13
|
-
'no-unreachable': 'error',
|
|
14
|
-
'no-unused-vars': 'off',
|
|
15
|
-
'object-shorthand': ['error', 'always'],
|
|
16
|
-
'react/jsx-no-undef': 'error',
|
|
17
|
-
'react/prop-types': 'off',
|
|
18
|
-
};
|
|
19
9
|
export default defineConfig([
|
|
20
10
|
prettierConfig,
|
|
21
11
|
{
|
|
@@ -34,7 +24,15 @@ export default defineConfig([
|
|
|
34
24
|
},
|
|
35
25
|
},
|
|
36
26
|
rules: {
|
|
37
|
-
|
|
27
|
+
curly: 'error',
|
|
28
|
+
'no-console': 'off',
|
|
29
|
+
'no-undef': 'off',
|
|
30
|
+
'no-var': 'error',
|
|
31
|
+
'no-unreachable': 'error',
|
|
32
|
+
'no-unused-vars': 'off',
|
|
33
|
+
'object-shorthand': ['error', 'always'],
|
|
34
|
+
'react/jsx-no-undef': 'error',
|
|
35
|
+
'react/prop-types': 'off',
|
|
38
36
|
},
|
|
39
37
|
settings: {
|
|
40
38
|
react: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint.config.mjs","sourceRoot":"","sources":["../src/eslint.config.mjs"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,OAAO,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"eslint.config.mjs","sourceRoot":"","sources":["../src/eslint.config.mjs"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,OAAO,YAAY,MAAM,eAAe,CAAA;AACxC,MAAM,EAAE,YAAY,EAAE,GAAG,YAAY,CAAA;AAErC,OAAO,cAAc,MAAM,6BAA6B,CAAA;AAExD,OAAO,YAAY,MAAM,kCAAkC,CAAA;AAC3D,OAAO,QAAQ,MAAM,2BAA2B,CAAA;AAEhD,OAAO,QAAQ,MAAM,sBAAsB,CAAA;AAC3C,OAAO,OAAO,MAAM,qBAAqB,CAAA;AAGzC,eAAe,YAAY,CAAC;IACxB,cAAc;IACd;QACI,OAAO,EAAE,CAAC,UAAU,CAAC;QACrB,OAAO,EAAE;YACL,MAAM,EAAE,QAAQ;YAChB,KAAK,EAAE,OAAO;SACjB;QACD,eAAe,EAAE;YACb,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE;gBACL,GAAG,OAAO,CAAC,OAAO;gBAClB,GAAG,OAAO,CAAC,IAAI;gBACf,GAAG,OAAO,CAAC,IAAI;aAClB;SACJ;QACD,KAAK,EAAE;YACH,KAAK,EAAE,OAAO;YACd,YAAY,EAAE,KAAK;YACnB,UAAU,EAAE,KAAK;YACjB,QAAQ,EAAE,OAAO;YACjB,gBAAgB,EAAE,OAAO;YACzB,gBAAgB,EAAE,KAAK;YACvB,kBAAkB,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;YACvC,oBAAoB,EAAE,OAAO;YAC7B,kBAAkB,EAAE,KAAK;SAC5B;QACD,QAAQ,EAAE;YACN,KAAK,EAAE;gBACH,OAAO,EAAE,QAAQ;aACpB;SACJ;KACJ;IACD;QACI,KAAK,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;QAC9B,OAAO,EAAE;YACL,oBAAoB,EAAE,YAAY;SACrC;QACD,eAAe,EAAE;YACb,MAAM,EAAE,QAAQ;SACnB;QACD,KAAK,EAAE;YACH,mCAAmC,EAAE;gBACjC,OAAO;gBACP;oBACI,iBAAiB,EAAE,IAAI;oBACvB,iBAAiB,EAAE,IAAI;oBACvB,yBAAyB,EAAE,IAAI;iBAClC;aACJ;YACD,uCAAuC,EAAE,CAAC;YAC1C,+DAA+D;YAC/D,kEAAkE;YAClE,kCAAkC,EAAE,CAAC;YACrC,sCAAsC,EAAE,CAAC;YACzC,kDAAkD,EAAE,CAAC;YACrD,oCAAoC,EAAE,CAAC;SAC1C;KACJ;IACD;QACI,KAAK,EAAE,CAAC,MAAM,CAAC;QACf,OAAO,EAAE;YACL,oBAAoB,EAAE,YAAY;SACrC;QACD,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;KACvC;CACJ,CAAC,CAAA"}
|
package/eslint.config.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import globals from 'globals'
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import eslintConfig from 'eslint/config'
|
|
4
|
+
const { defineConfig } = eslintConfig
|
|
5
|
+
|
|
4
6
|
import prettierConfig from 'eslint-config-prettier/flat'
|
|
5
7
|
|
|
6
8
|
import esTypescript from '@typescript-eslint/eslint-plugin'
|
|
@@ -9,17 +11,6 @@ import esParser from '@typescript-eslint/parser'
|
|
|
9
11
|
import esImport from 'eslint-plugin-import'
|
|
10
12
|
import esReact from 'eslint-plugin-react'
|
|
11
13
|
|
|
12
|
-
const defaultFormattingRules = {
|
|
13
|
-
curly: 'error',
|
|
14
|
-
'no-console': 'off',
|
|
15
|
-
'no-undef': 'off',
|
|
16
|
-
'no-var': 'error',
|
|
17
|
-
'no-unreachable': 'error',
|
|
18
|
-
'no-unused-vars': 'off',
|
|
19
|
-
'object-shorthand': ['error', 'always'],
|
|
20
|
-
'react/jsx-no-undef': 'error',
|
|
21
|
-
'react/prop-types': 'off',
|
|
22
|
-
}
|
|
23
14
|
|
|
24
15
|
export default defineConfig([
|
|
25
16
|
prettierConfig,
|
|
@@ -38,8 +29,16 @@ export default defineConfig([
|
|
|
38
29
|
...globals.jest,
|
|
39
30
|
},
|
|
40
31
|
},
|
|
41
|
-
rules: {
|
|
42
|
-
|
|
32
|
+
rules: {
|
|
33
|
+
curly: 'error',
|
|
34
|
+
'no-console': 'off',
|
|
35
|
+
'no-undef': 'off',
|
|
36
|
+
'no-var': 'error',
|
|
37
|
+
'no-unreachable': 'error',
|
|
38
|
+
'no-unused-vars': 'off',
|
|
39
|
+
'object-shorthand': ['error', 'always'],
|
|
40
|
+
'react/jsx-no-undef': 'error',
|
|
41
|
+
'react/prop-types': 'off',
|
|
43
42
|
},
|
|
44
43
|
settings: {
|
|
45
44
|
react: {
|
package/package.json
CHANGED
package/src/eslint.config.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import globals from 'globals'
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import eslintConfig from 'eslint/config'
|
|
4
|
+
const { defineConfig } = eslintConfig
|
|
5
|
+
|
|
4
6
|
import prettierConfig from 'eslint-config-prettier/flat'
|
|
5
7
|
|
|
6
8
|
import esTypescript from '@typescript-eslint/eslint-plugin'
|
|
@@ -9,17 +11,6 @@ import esParser from '@typescript-eslint/parser'
|
|
|
9
11
|
import esImport from 'eslint-plugin-import'
|
|
10
12
|
import esReact from 'eslint-plugin-react'
|
|
11
13
|
|
|
12
|
-
const defaultFormattingRules = {
|
|
13
|
-
curly: 'error',
|
|
14
|
-
'no-console': 'off',
|
|
15
|
-
'no-undef': 'off',
|
|
16
|
-
'no-var': 'error',
|
|
17
|
-
'no-unreachable': 'error',
|
|
18
|
-
'no-unused-vars': 'off',
|
|
19
|
-
'object-shorthand': ['error', 'always'],
|
|
20
|
-
'react/jsx-no-undef': 'error',
|
|
21
|
-
'react/prop-types': 'off',
|
|
22
|
-
}
|
|
23
14
|
|
|
24
15
|
export default defineConfig([
|
|
25
16
|
prettierConfig,
|
|
@@ -38,8 +29,16 @@ export default defineConfig([
|
|
|
38
29
|
...globals.jest,
|
|
39
30
|
},
|
|
40
31
|
},
|
|
41
|
-
rules: {
|
|
42
|
-
|
|
32
|
+
rules: {
|
|
33
|
+
curly: 'error',
|
|
34
|
+
'no-console': 'off',
|
|
35
|
+
'no-undef': 'off',
|
|
36
|
+
'no-var': 'error',
|
|
37
|
+
'no-unreachable': 'error',
|
|
38
|
+
'no-unused-vars': 'off',
|
|
39
|
+
'object-shorthand': ['error', 'always'],
|
|
40
|
+
'react/jsx-no-undef': 'error',
|
|
41
|
+
'react/prop-types': 'off',
|
|
43
42
|
},
|
|
44
43
|
settings: {
|
|
45
44
|
react: {
|