@mikey-pro/eslint-config 3.0.2 → 3.1.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.cjs +48 -11
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -50,6 +50,26 @@ module.exports = {
|
|
|
50
50
|
files: ['*.jsx'],
|
|
51
51
|
extends: ['plugin:react/recommended', 'plugin:react-hooks/recommended'],
|
|
52
52
|
plugins: ['react', 'react-hooks'],
|
|
53
|
+
parser: '@babel/eslint-parser',
|
|
54
|
+
parserOptions: {
|
|
55
|
+
requireConfigFile: false,
|
|
56
|
+
ecmaVersion: 'latest',
|
|
57
|
+
sourceType: 'module',
|
|
58
|
+
babelOptions: {
|
|
59
|
+
presets: [
|
|
60
|
+
[
|
|
61
|
+
'@babel/preset-env',
|
|
62
|
+
{
|
|
63
|
+
targets: {
|
|
64
|
+
node: 'current',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
'@babel/preset-react',
|
|
69
|
+
'airbnb',
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
},
|
|
53
73
|
rules: {
|
|
54
74
|
'react/no-deprecated': 2,
|
|
55
75
|
'react/react-in-jsx-scope': 0,
|
|
@@ -130,6 +150,34 @@ module.exports = {
|
|
|
130
150
|
files: ['*.vue'],
|
|
131
151
|
parser: 'vue-eslint-parser',
|
|
132
152
|
extends: ['plugin:vue/vue3-recommended', '@vue/airbnb'],
|
|
153
|
+
parser: '@babel/eslint-parser',
|
|
154
|
+
parserOptions: {
|
|
155
|
+
requireConfigFile: false,
|
|
156
|
+
ecmaVersion: 'latest',
|
|
157
|
+
sourceType: 'module',
|
|
158
|
+
babelOptions: {
|
|
159
|
+
presets: [
|
|
160
|
+
[
|
|
161
|
+
'@babel/preset-env',
|
|
162
|
+
{
|
|
163
|
+
targets: {
|
|
164
|
+
node: 'current',
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
],
|
|
169
|
+
plugins: [
|
|
170
|
+
'@vue/babel-plugin-jsx',
|
|
171
|
+
[
|
|
172
|
+
'@babel/plugin-transform-react-jsx',
|
|
173
|
+
{
|
|
174
|
+
pragma: 'h',
|
|
175
|
+
pragmaFrag: 'Fragment',
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
],
|
|
179
|
+
},
|
|
180
|
+
},
|
|
133
181
|
rules: {
|
|
134
182
|
'vue/html-self-closing': [
|
|
135
183
|
2,
|
|
@@ -358,19 +406,8 @@ module.exports = {
|
|
|
358
406
|
},
|
|
359
407
|
},
|
|
360
408
|
],
|
|
361
|
-
'@babel/preset-react',
|
|
362
409
|
'airbnb',
|
|
363
410
|
],
|
|
364
|
-
plugins: [
|
|
365
|
-
'@vue/babel-plugin-jsx',
|
|
366
|
-
[
|
|
367
|
-
'@babel/plugin-transform-react-jsx',
|
|
368
|
-
{
|
|
369
|
-
pragma: 'h',
|
|
370
|
-
pragmaFrag: 'Fragment',
|
|
371
|
-
},
|
|
372
|
-
],
|
|
373
|
-
],
|
|
374
411
|
},
|
|
375
412
|
},
|
|
376
413
|
};
|