@mikey-pro/eslint-config 2.3.2 → 2.5.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/index.cjs +7 -6
- package/package.json +10 -9
package/index.cjs
CHANGED
|
@@ -4,12 +4,13 @@ module.exports = {
|
|
|
4
4
|
'standard',
|
|
5
5
|
'eslint:recommended',
|
|
6
6
|
'plugin:unicorn/all',
|
|
7
|
-
'plugin:
|
|
8
|
-
'plugin:react-hooks/recommended',
|
|
7
|
+
'plugin:github/recommended',
|
|
9
8
|
'plugin:jsx-a11y/recommended',
|
|
10
9
|
'plugin:sonarjs/recommended',
|
|
11
10
|
'plugin:compat/recommended',
|
|
12
11
|
'plugin:css-modules/recommended',
|
|
12
|
+
'plugin:react/recommended',
|
|
13
|
+
'plugin:react-hooks/recommended',
|
|
13
14
|
'plugin:prettier/recommended',
|
|
14
15
|
],
|
|
15
16
|
overrides: [
|
|
@@ -99,10 +100,6 @@ module.exports = {
|
|
|
99
100
|
message:
|
|
100
101
|
'for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.',
|
|
101
102
|
},
|
|
102
|
-
// {
|
|
103
|
-
// selector: 'ForOfStatement',
|
|
104
|
-
// message: 'iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.',
|
|
105
|
-
// },
|
|
106
103
|
{
|
|
107
104
|
selector: 'LabeledStatement',
|
|
108
105
|
message:
|
|
@@ -213,6 +210,7 @@ module.exports = {
|
|
|
213
210
|
allowArrowFunctions: true,
|
|
214
211
|
},
|
|
215
212
|
],
|
|
213
|
+
'react/function-component-definition': 0,
|
|
216
214
|
'react/state-in-constructor': 0,
|
|
217
215
|
'react/jsx-no-comment-textnodes': 2,
|
|
218
216
|
'react/jsx-no-duplicate-props': 2,
|
|
@@ -235,6 +233,7 @@ module.exports = {
|
|
|
235
233
|
'react-hooks/rules-of-hooks': 2,
|
|
236
234
|
'react-hooks/exhaustive-deps': 1,
|
|
237
235
|
'unicorn/import-index': ['error', { ignoreImports: true }],
|
|
236
|
+
'filenames/match-regex': 0,
|
|
238
237
|
'unicorn/filename-case': [
|
|
239
238
|
'error',
|
|
240
239
|
{
|
|
@@ -259,6 +258,8 @@ module.exports = {
|
|
|
259
258
|
'react-hooks',
|
|
260
259
|
'unicorn',
|
|
261
260
|
'svelte3',
|
|
261
|
+
'sonarjs',
|
|
262
|
+
'github',
|
|
262
263
|
],
|
|
263
264
|
ignorePatterns: [
|
|
264
265
|
'!.*',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikey-pro/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "Mikey Pro ESLint configuration",
|
|
5
5
|
"main": "index.cjs",
|
|
6
6
|
"dependencies": {
|
|
@@ -9,32 +9,33 @@
|
|
|
9
9
|
"@babel/eslint-plugin": "^7.14",
|
|
10
10
|
"@babel/plugin-transform-react-jsx": "^7.16.0",
|
|
11
11
|
"@babel/preset-env": "^7.16",
|
|
12
|
-
"@html-eslint/eslint-plugin": "^0.
|
|
13
|
-
"@html-eslint/parser": "^0.
|
|
12
|
+
"@html-eslint/eslint-plugin": "^0.13.0",
|
|
13
|
+
"@html-eslint/parser": "^0.13.0",
|
|
14
14
|
"@vue/babel-plugin-jsx": "^1.1.1",
|
|
15
15
|
"@vue/eslint-config-airbnb": "^6.0",
|
|
16
16
|
"babel-preset-airbnb": "^5.0.0",
|
|
17
|
-
"eslint": "^8.
|
|
17
|
+
"eslint": "^8.3.0",
|
|
18
18
|
"eslint-config-airbnb": "^19.0",
|
|
19
19
|
"eslint-config-prettier": "^8.3",
|
|
20
|
-
"eslint-config-standard": "16.0.3",
|
|
20
|
+
"eslint-config-standard": "^16.0.3",
|
|
21
21
|
"eslint-import-resolver-alias": "^1.1",
|
|
22
22
|
"eslint-plugin-compat": "^4.0",
|
|
23
23
|
"eslint-plugin-css-modules": "^2.11",
|
|
24
24
|
"eslint-plugin-disable-autofix": "^0.1.6",
|
|
25
|
+
"eslint-plugin-github": "^4.3.5",
|
|
25
26
|
"eslint-plugin-import": "^2.25",
|
|
26
27
|
"eslint-plugin-json": "^3.1",
|
|
27
28
|
"eslint-plugin-json-format": "^2.0",
|
|
28
29
|
"eslint-plugin-jsx-a11y": "^6.5",
|
|
29
30
|
"eslint-plugin-md": "^1.0",
|
|
30
|
-
"eslint-plugin-node": "11.1.0",
|
|
31
|
+
"eslint-plugin-node": "^11.1.0",
|
|
31
32
|
"eslint-plugin-prettier": "^4.0",
|
|
32
|
-
"eslint-plugin-promise": "5.1.1",
|
|
33
|
+
"eslint-plugin-promise": "^5.1.1",
|
|
33
34
|
"eslint-plugin-react": "^7.27",
|
|
34
35
|
"eslint-plugin-react-hooks": "^4.3",
|
|
35
|
-
"eslint-plugin-
|
|
36
|
+
"eslint-plugin-sonarjs": "^0.10.0",
|
|
36
37
|
"eslint-plugin-svelte3": "^3.2.1",
|
|
37
|
-
"eslint-plugin-unicorn": "^
|
|
38
|
+
"eslint-plugin-unicorn": "^39.0.0",
|
|
38
39
|
"eslint-plugin-vue": "^8.1",
|
|
39
40
|
"vue-eslint-parser": "^8.0"
|
|
40
41
|
},
|