@mikey-pro/eslint-config 3.1.2 → 3.1.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/index.cjs +15 -20
- package/package.json +4 -1
package/index.cjs
CHANGED
|
@@ -49,18 +49,7 @@ module.exports = {
|
|
|
49
49
|
{
|
|
50
50
|
files: ['*.jsx'],
|
|
51
51
|
extends: ['plugin:react/recommended', 'plugin:react-hooks/recommended'],
|
|
52
|
-
plugins: [
|
|
53
|
-
'react',
|
|
54
|
-
'react-hooks',
|
|
55
|
-
[
|
|
56
|
-
'@babel/plugin-transform-react-jsx',
|
|
57
|
-
{
|
|
58
|
-
pragma: 'h',
|
|
59
|
-
pragmaFrag: 'Fragment',
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
],
|
|
63
|
-
|
|
52
|
+
plugins: ['react', 'react-hooks'],
|
|
64
53
|
parser: '@babel/eslint-parser',
|
|
65
54
|
parserOptions: {
|
|
66
55
|
requireConfigFile: false,
|
|
@@ -93,15 +82,18 @@ module.exports = {
|
|
|
93
82
|
allowArrowFunctions: true,
|
|
94
83
|
},
|
|
95
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,
|
|
96
92
|
'react/function-component-definition': 0,
|
|
97
93
|
'react/state-in-constructor': 0,
|
|
98
|
-
'react/jsx-no-comment-textnodes': 2,
|
|
99
94
|
'react/jsx-no-duplicate-props': 2,
|
|
100
95
|
'react/jsx-no-target-blank': 2,
|
|
101
|
-
'react/jsx-no-undef': 2,
|
|
102
96
|
'react/jsx-tag-spacing': [2, { beforeSelfClosing: 'always' }],
|
|
103
|
-
'react/jsx-uses-react': 2,
|
|
104
|
-
'react/jsx-uses-vars': 2,
|
|
105
97
|
'react/jsx-key': [2, { checkFragmentShorthand: true }],
|
|
106
98
|
'react/self-closing-comp': 2,
|
|
107
99
|
'react/prefer-es6-class': 2,
|
|
@@ -110,9 +102,7 @@ module.exports = {
|
|
|
110
102
|
'react/no-danger': 1,
|
|
111
103
|
'react/no-did-mount-set-state': 2,
|
|
112
104
|
'react/no-did-update-set-state': 2,
|
|
113
|
-
'react/no-find-dom-node': 2,
|
|
114
105
|
'react/no-is-mounted': 2,
|
|
115
|
-
'react/no-string-refs': 2,
|
|
116
106
|
'react-hooks/rules-of-hooks': 2,
|
|
117
107
|
'react-hooks/exhaustive-deps': 1,
|
|
118
108
|
},
|
|
@@ -161,7 +151,6 @@ module.exports = {
|
|
|
161
151
|
files: ['*.vue'],
|
|
162
152
|
parser: 'vue-eslint-parser',
|
|
163
153
|
extends: ['plugin:vue/vue3-recommended', '@vue/airbnb'],
|
|
164
|
-
parser: '@babel/eslint-parser',
|
|
165
154
|
parserOptions: {
|
|
166
155
|
requireConfigFile: false,
|
|
167
156
|
ecmaVersion: 'latest',
|
|
@@ -178,7 +167,7 @@ module.exports = {
|
|
|
178
167
|
],
|
|
179
168
|
],
|
|
180
169
|
plugins: [
|
|
181
|
-
'
|
|
170
|
+
'eslint-plugin-vue',
|
|
182
171
|
[
|
|
183
172
|
'@babel/plugin-transform-react-jsx',
|
|
184
173
|
{
|
|
@@ -285,6 +274,8 @@ module.exports = {
|
|
|
285
274
|
'error',
|
|
286
275
|
{ allow: ['eslint-disable', 'eslint-disable-next-line'] },
|
|
287
276
|
],
|
|
277
|
+
'keyword-spacing': 2,
|
|
278
|
+
'require-atomic-updates': 0,
|
|
288
279
|
'import/no-commonjs': 0,
|
|
289
280
|
'sort-imports': 0,
|
|
290
281
|
'constructor-super': 2,
|
|
@@ -401,6 +392,10 @@ module.exports = {
|
|
|
401
392
|
settings: {
|
|
402
393
|
'json/sort-package-json': 'pro',
|
|
403
394
|
polyfills: ['Promise'],
|
|
395
|
+
react: {
|
|
396
|
+
pragma: 'h',
|
|
397
|
+
version: 'preact',
|
|
398
|
+
},
|
|
404
399
|
},
|
|
405
400
|
parser: '@babel/eslint-parser',
|
|
406
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.6",
|
|
4
4
|
"description": "Mikey Pro ESLint configuration",
|
|
5
5
|
"main": "index.cjs",
|
|
6
6
|
"dependencies": {
|
|
@@ -75,6 +75,9 @@
|
|
|
75
75
|
"vue",
|
|
76
76
|
"svelte"
|
|
77
77
|
],
|
|
78
|
+
"browserslist": [
|
|
79
|
+
"defaults"
|
|
80
|
+
],
|
|
78
81
|
"contributors": [
|
|
79
82
|
"Mikl Wolfe <wolfe@mikl.io> (https://mikl.io)"
|
|
80
83
|
]
|