@mikey-pro/eslint-config 4.4.1 → 4.5.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/index.js +8 -42
- package/package.json +7 -7
package/index.js
CHANGED
|
@@ -38,7 +38,7 @@ module.exports = {
|
|
|
38
38
|
},
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
files: ['*.tsx'],
|
|
41
|
+
files: ['*.tsx', '*.jsx'],
|
|
42
42
|
extends: ['react-app', 'react-app/jest'],
|
|
43
43
|
parserOptions: {
|
|
44
44
|
extraFileExtensions: ['.vue', '.svelte'],
|
|
@@ -75,7 +75,6 @@ module.exports = {
|
|
|
75
75
|
'react/jsx-no-target-blank': 1,
|
|
76
76
|
'react/jsx-tag-spacing': [1, { beforeSelfClosing: 'always' }],
|
|
77
77
|
'react/jsx-key': [1, { checkFragmentShorthand: true }],
|
|
78
|
-
'react/self-closing-comp': 1,
|
|
79
78
|
'react/prefer-es6-class': 1,
|
|
80
79
|
'react/prefer-stateless-function': 1,
|
|
81
80
|
'react/require-render-return': 1,
|
|
@@ -85,6 +84,13 @@ module.exports = {
|
|
|
85
84
|
'react/no-is-mounted': 1,
|
|
86
85
|
'react-hooks/rules-of-hooks': 1,
|
|
87
86
|
'react-hooks/exhaustive-deps': 1,
|
|
87
|
+
'react/self-closing-comp': [
|
|
88
|
+
'error',
|
|
89
|
+
{
|
|
90
|
+
component: true,
|
|
91
|
+
html: false,
|
|
92
|
+
},
|
|
93
|
+
],
|
|
88
94
|
'prettier/prettier': [1, { parser: 'typescript' }],
|
|
89
95
|
},
|
|
90
96
|
},
|
|
@@ -122,46 +128,6 @@ module.exports = {
|
|
|
122
128
|
'prettier/prettier': 0,
|
|
123
129
|
},
|
|
124
130
|
},
|
|
125
|
-
{
|
|
126
|
-
files: ['*.jsx'],
|
|
127
|
-
extends: ['react-app', 'react-app/jest'],
|
|
128
|
-
rules: {
|
|
129
|
-
'react/no-deprecated': 1,
|
|
130
|
-
'react/react-in-jsx-scope': 0,
|
|
131
|
-
'react/display-name': [1, { ignoreTranspilerName: false }],
|
|
132
|
-
'react/jsx-no-bind': [
|
|
133
|
-
1,
|
|
134
|
-
{
|
|
135
|
-
ignoreRefs: true,
|
|
136
|
-
allowFunctions: true,
|
|
137
|
-
allowArrowFunctions: true,
|
|
138
|
-
},
|
|
139
|
-
],
|
|
140
|
-
'react/no-string-refs': 1,
|
|
141
|
-
'react/no-find-dom-node': 1,
|
|
142
|
-
'react/jsx-no-comment-textnodes': 1,
|
|
143
|
-
'react/jsx-curly-spacing': 1,
|
|
144
|
-
'react/jsx-no-undef': 1,
|
|
145
|
-
'react/jsx-uses-react': 1,
|
|
146
|
-
'react/jsx-uses-vars': 1,
|
|
147
|
-
'react/function-component-definition': 0,
|
|
148
|
-
'react/state-in-constructor': 0,
|
|
149
|
-
'react/jsx-no-duplicate-props': 1,
|
|
150
|
-
'react/jsx-no-target-blank': 1,
|
|
151
|
-
'react/jsx-tag-spacing': [1, { beforeSelfClosing: 'always' }],
|
|
152
|
-
'react/jsx-key': [1, { checkFragmentShorthand: true }],
|
|
153
|
-
'react/self-closing-comp': 1,
|
|
154
|
-
'react/prefer-es6-class': 1,
|
|
155
|
-
'react/prefer-stateless-function': 1,
|
|
156
|
-
'react/require-render-return': 1,
|
|
157
|
-
'react/no-danger': 1,
|
|
158
|
-
'react/no-did-mount-set-state': 1,
|
|
159
|
-
'react/no-did-update-set-state': 1,
|
|
160
|
-
'react/no-is-mounted': 1,
|
|
161
|
-
'react-hooks/rules-of-hooks': 1,
|
|
162
|
-
'react-hooks/exhaustive-deps': 1,
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
131
|
{
|
|
166
132
|
files: ['*.md'],
|
|
167
133
|
parser: 'markdown-eslint-parser',
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikey-pro/eslint-config",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"description": "Mikey Pro ESLint configuration",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@babel/core": "^7.16.
|
|
7
|
+
"@babel/core": "^7.16.12",
|
|
8
8
|
"@babel/eslint-parser": "^7.16",
|
|
9
9
|
"@babel/eslint-plugin": "^7.16",
|
|
10
10
|
"@babel/plugin-transform-react-jsx": "^7.16.7",
|
|
11
11
|
"@babel/preset-env": "^7.16",
|
|
12
12
|
"@html-eslint/eslint-plugin": "^0.13.1",
|
|
13
13
|
"@html-eslint/parser": "^0.13.1",
|
|
14
|
-
"@typescript-eslint/eslint-plugin": "^5.10.
|
|
15
|
-
"@typescript-eslint/parser": "^5.10.
|
|
14
|
+
"@typescript-eslint/eslint-plugin": "^5.10.1",
|
|
15
|
+
"@typescript-eslint/parser": "^5.10.1",
|
|
16
16
|
"@vue/babel-plugin-jsx": "^1.1.1",
|
|
17
17
|
"eslint-config-prettier": "^8.3",
|
|
18
18
|
"eslint-config-react-app": "^7.0.0",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"eslint-plugin-css-modules": "^2.11",
|
|
22
22
|
"eslint-plugin-disable-autofix": "^0.1.6",
|
|
23
23
|
"eslint-plugin-json-format": "^2.0",
|
|
24
|
-
"eslint-plugin-jsonc": "^2.
|
|
24
|
+
"eslint-plugin-jsonc": "^2.1.0",
|
|
25
25
|
"eslint-plugin-md": "^1.0",
|
|
26
26
|
"eslint-plugin-node": "^11.1.0",
|
|
27
27
|
"eslint-plugin-only-warn": "^1.0.3",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"eslint-plugin-svelte3": "^3.4.0",
|
|
32
32
|
"eslint-plugin-toml": "^0.3.0",
|
|
33
33
|
"eslint-plugin-unicorn": "^40.1.0",
|
|
34
|
-
"eslint-plugin-vue": "^8.
|
|
34
|
+
"eslint-plugin-vue": "^8.4",
|
|
35
35
|
"eslint-plugin-yaml": "^0.5.0",
|
|
36
|
-
"vue-eslint-parser": "^8.
|
|
36
|
+
"vue-eslint-parser": "^8.2"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"eslint": ">=8.3.0"
|