@egy186/eslint-config 0.82.1 → 0.83.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.
- package/modules.js +2 -0
- package/package.json +8 -8
- package/react.js +2 -1
package/modules.js
CHANGED
|
@@ -4,6 +4,7 @@ module.exports = {
|
|
|
4
4
|
parserOptions: { sourceType: 'module' },
|
|
5
5
|
plugins: ['import'],
|
|
6
6
|
rules: {
|
|
7
|
+
'import/consistent-type-specifier-style': 'error',
|
|
7
8
|
'import/default': 'error',
|
|
8
9
|
'import/dynamic-import-chunkname': 'error',
|
|
9
10
|
'import/export': 'error',
|
|
@@ -24,6 +25,7 @@ module.exports = {
|
|
|
24
25
|
'import/no-deprecated': 'error',
|
|
25
26
|
'import/no-duplicates': 'error',
|
|
26
27
|
'import/no-dynamic-require': 'error',
|
|
28
|
+
'import/no-empty-named-blocks': 'error',
|
|
27
29
|
'import/no-extraneous-dependencies': 'off',
|
|
28
30
|
'import/no-import-module-exports': 'error',
|
|
29
31
|
'import/no-internal-modules': 'off',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egy186/eslint-config",
|
|
3
3
|
"description": "Eslint shareable config",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.83.0",
|
|
5
5
|
"author": "egy186",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/egy186/eslint-config/issues"
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
"lodash": "^4.17.21"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@typescript-eslint/eslint-plugin": "
|
|
14
|
-
"@typescript-eslint/parser": "
|
|
13
|
+
"@typescript-eslint/eslint-plugin": "^5.48.1",
|
|
14
|
+
"@typescript-eslint/parser": "^5.48.1",
|
|
15
15
|
"eslint": "~8.31.0",
|
|
16
|
-
"eslint-plugin-import": "~2.
|
|
17
|
-
"eslint-plugin-jest": "
|
|
16
|
+
"eslint-plugin-import": "~2.27.4",
|
|
17
|
+
"eslint-plugin-jest": "^27.2.1",
|
|
18
18
|
"eslint-plugin-jsdoc": "~39.6.4",
|
|
19
19
|
"eslint-plugin-node": "~11.1.0",
|
|
20
|
-
"eslint-plugin-react": "~7.
|
|
20
|
+
"eslint-plugin-react": "~7.32.0",
|
|
21
21
|
"eslint-plugin-react-hooks": "~4.6.0",
|
|
22
22
|
"husky": "^8.0.1",
|
|
23
23
|
"require-dir": "^1.2.0",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"@typescript-eslint/eslint-plugin": "^5.42.0",
|
|
49
49
|
"@typescript-eslint/parser": "^5.42.0",
|
|
50
50
|
"eslint": "^8.27.0",
|
|
51
|
-
"eslint-plugin-import": "^2.
|
|
51
|
+
"eslint-plugin-import": "^2.27.4",
|
|
52
52
|
"eslint-plugin-jest": "^27.2.0",
|
|
53
53
|
"eslint-plugin-jsdoc": "^39.5.0",
|
|
54
54
|
"eslint-plugin-node": "^11.1.0",
|
|
55
|
-
"eslint-plugin-react": "^7.
|
|
55
|
+
"eslint-plugin-react": "^7.32.0",
|
|
56
56
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
57
57
|
"typescript": "^4.4.4"
|
|
58
58
|
},
|
package/react.js
CHANGED
|
@@ -84,7 +84,6 @@ module.exports = {
|
|
|
84
84
|
'react/jsx-pascal-case': 'error',
|
|
85
85
|
'react/jsx-props-no-multi-spaces': 'error',
|
|
86
86
|
'react/jsx-props-no-spreading': 'off',
|
|
87
|
-
'react/jsx-sort-default-props': 'error',
|
|
88
87
|
'react/jsx-sort-props': 'error',
|
|
89
88
|
'react/jsx-tag-spacing': ['error', { beforeClosing: 'never' }],
|
|
90
89
|
'react/jsx-uses-react': 'error',
|
|
@@ -106,6 +105,7 @@ module.exports = {
|
|
|
106
105
|
'react/no-is-mounted': 'error',
|
|
107
106
|
'react/no-multi-comp': 'error',
|
|
108
107
|
'react/no-namespace': 'error',
|
|
108
|
+
'react/no-object-type-as-default-prop': 'error',
|
|
109
109
|
'react/no-redundant-should-component-update': 'error',
|
|
110
110
|
'react/no-render-return-value': 'error',
|
|
111
111
|
'react/no-set-state': 'warn',
|
|
@@ -142,6 +142,7 @@ module.exports = {
|
|
|
142
142
|
]
|
|
143
143
|
}
|
|
144
144
|
],
|
|
145
|
+
'react/sort-default-props': 'error',
|
|
145
146
|
'react/sort-prop-types': 'error',
|
|
146
147
|
'react/state-in-constructor': 'error',
|
|
147
148
|
'react/static-property-placement': 'error',
|