@mikey-pro/eslint-config 3.1.3 → 3.1.8
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 +15 -30
- package/package.json +5 -1
package/index.cjs
CHANGED
|
@@ -49,28 +49,7 @@ module.exports = {
|
|
|
49
49
|
{
|
|
50
50
|
files: ['*.jsx'],
|
|
51
51
|
extends: ['plugin:react/recommended', 'plugin:react-hooks/recommended'],
|
|
52
|
-
|
|
53
|
-
presets: [
|
|
54
|
-
[
|
|
55
|
-
'@babel/preset-env',
|
|
56
|
-
{
|
|
57
|
-
targets: {
|
|
58
|
-
node: 'current',
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
],
|
|
63
|
-
plugins: [
|
|
64
|
-
'@vue/babel-plugin-jsx',
|
|
65
|
-
[
|
|
66
|
-
'@babel/plugin-transform-react-jsx',
|
|
67
|
-
{
|
|
68
|
-
pragma: 'h',
|
|
69
|
-
pragmaFrag: 'Fragment',
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
],
|
|
73
|
-
},
|
|
52
|
+
plugins: ['react', 'react-hooks'],
|
|
74
53
|
parser: '@babel/eslint-parser',
|
|
75
54
|
parserOptions: {
|
|
76
55
|
requireConfigFile: false,
|
|
@@ -103,15 +82,18 @@ module.exports = {
|
|
|
103
82
|
allowArrowFunctions: true,
|
|
104
83
|
},
|
|
105
84
|
],
|
|
85
|
+
'react/no-string-refs': 2,
|
|
86
|
+
'react/no-find-dom-node': 2,
|
|
87
|
+
'react/jsx-no-comment-textnodes': 2,
|
|
88
|
+
'react/jsx-curly-spacing': 2,
|
|
89
|
+
'react/jsx-no-undef': 2,
|
|
90
|
+
'react/jsx-uses-react': 2,
|
|
91
|
+
'react/jsx-uses-vars': 2,
|
|
106
92
|
'react/function-component-definition': 0,
|
|
107
93
|
'react/state-in-constructor': 0,
|
|
108
|
-
'react/jsx-no-comment-textnodes': 2,
|
|
109
94
|
'react/jsx-no-duplicate-props': 2,
|
|
110
95
|
'react/jsx-no-target-blank': 2,
|
|
111
|
-
'react/jsx-no-undef': 2,
|
|
112
96
|
'react/jsx-tag-spacing': [2, { beforeSelfClosing: 'always' }],
|
|
113
|
-
'react/jsx-uses-react': 2,
|
|
114
|
-
'react/jsx-uses-vars': 2,
|
|
115
97
|
'react/jsx-key': [2, { checkFragmentShorthand: true }],
|
|
116
98
|
'react/self-closing-comp': 2,
|
|
117
99
|
'react/prefer-es6-class': 2,
|
|
@@ -120,9 +102,7 @@ module.exports = {
|
|
|
120
102
|
'react/no-danger': 1,
|
|
121
103
|
'react/no-did-mount-set-state': 2,
|
|
122
104
|
'react/no-did-update-set-state': 2,
|
|
123
|
-
'react/no-find-dom-node': 2,
|
|
124
105
|
'react/no-is-mounted': 2,
|
|
125
|
-
'react/no-string-refs': 2,
|
|
126
106
|
'react-hooks/rules-of-hooks': 2,
|
|
127
107
|
'react-hooks/exhaustive-deps': 1,
|
|
128
108
|
},
|
|
@@ -171,7 +151,6 @@ module.exports = {
|
|
|
171
151
|
files: ['*.vue'],
|
|
172
152
|
parser: 'vue-eslint-parser',
|
|
173
153
|
extends: ['plugin:vue/vue3-recommended', '@vue/airbnb'],
|
|
174
|
-
parser: '@babel/eslint-parser',
|
|
175
154
|
parserOptions: {
|
|
176
155
|
requireConfigFile: false,
|
|
177
156
|
ecmaVersion: 'latest',
|
|
@@ -188,7 +167,7 @@ module.exports = {
|
|
|
188
167
|
],
|
|
189
168
|
],
|
|
190
169
|
plugins: [
|
|
191
|
-
'
|
|
170
|
+
'eslint-plugin-vue',
|
|
192
171
|
[
|
|
193
172
|
'@babel/plugin-transform-react-jsx',
|
|
194
173
|
{
|
|
@@ -295,6 +274,8 @@ module.exports = {
|
|
|
295
274
|
'error',
|
|
296
275
|
{ allow: ['eslint-disable', 'eslint-disable-next-line'] },
|
|
297
276
|
],
|
|
277
|
+
'keyword-spacing': 2,
|
|
278
|
+
'require-atomic-updates': 0,
|
|
298
279
|
'import/no-commonjs': 0,
|
|
299
280
|
'sort-imports': 0,
|
|
300
281
|
'constructor-super': 2,
|
|
@@ -411,6 +392,10 @@ module.exports = {
|
|
|
411
392
|
settings: {
|
|
412
393
|
'json/sort-package-json': 'pro',
|
|
413
394
|
polyfills: ['Promise'],
|
|
395
|
+
react: {
|
|
396
|
+
pragma: 'h',
|
|
397
|
+
version: 'preact',
|
|
398
|
+
},
|
|
414
399
|
},
|
|
415
400
|
parser: '@babel/eslint-parser',
|
|
416
401
|
parserOptions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikey-pro/eslint-config",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.8",
|
|
4
4
|
"description": "Mikey Pro ESLint configuration",
|
|
5
5
|
"main": "index.cjs",
|
|
6
6
|
"dependencies": {
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"eslint-config-airbnb": "^19.0",
|
|
18
18
|
"eslint-config-prettier": "^8.3",
|
|
19
19
|
"eslint-config-standard": "^16.0.3",
|
|
20
|
+
"eslint-config-vue": "^2.0.2",
|
|
20
21
|
"eslint-plugin-compat": "^4.0",
|
|
21
22
|
"eslint-plugin-css-modules": "^2.11",
|
|
22
23
|
"eslint-plugin-disable-autofix": "^0.1.6",
|
|
@@ -77,5 +78,8 @@
|
|
|
77
78
|
],
|
|
78
79
|
"contributors": [
|
|
79
80
|
"Mikl Wolfe <wolfe@mikl.io> (https://mikl.io)"
|
|
81
|
+
],
|
|
82
|
+
"browserslist": [
|
|
83
|
+
"defaults"
|
|
80
84
|
]
|
|
81
85
|
}
|