@mikey-pro/eslint-config 3.0.2 → 3.1.3

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.
Files changed (2) hide show
  1. package/index.cjs +71 -13
  2. package/package.json +1 -1
package/index.cjs CHANGED
@@ -43,13 +43,54 @@ module.exports = {
43
43
  parser: 'toml-eslint-parser',
44
44
  extends: ['plugin:toml/standard'],
45
45
  rules: {
46
- 'prettier/prettier': [2],
46
+ 'prettier/prettier': 0,
47
47
  },
48
48
  },
49
49
  {
50
50
  files: ['*.jsx'],
51
51
  extends: ['plugin:react/recommended', 'plugin:react-hooks/recommended'],
52
- plugins: ['react', 'react-hooks'],
52
+ babelOptions: {
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
+ },
74
+ parser: '@babel/eslint-parser',
75
+ parserOptions: {
76
+ requireConfigFile: false,
77
+ ecmaVersion: 'latest',
78
+ sourceType: 'module',
79
+ babelOptions: {
80
+ presets: [
81
+ [
82
+ '@babel/preset-env',
83
+ {
84
+ targets: {
85
+ node: 'current',
86
+ },
87
+ },
88
+ ],
89
+ '@babel/preset-react',
90
+ 'airbnb',
91
+ ],
92
+ },
93
+ },
53
94
  rules: {
54
95
  'react/no-deprecated': 2,
55
96
  'react/react-in-jsx-scope': 0,
@@ -130,6 +171,34 @@ module.exports = {
130
171
  files: ['*.vue'],
131
172
  parser: 'vue-eslint-parser',
132
173
  extends: ['plugin:vue/vue3-recommended', '@vue/airbnb'],
174
+ parser: '@babel/eslint-parser',
175
+ parserOptions: {
176
+ requireConfigFile: false,
177
+ ecmaVersion: 'latest',
178
+ sourceType: 'module',
179
+ babelOptions: {
180
+ presets: [
181
+ [
182
+ '@babel/preset-env',
183
+ {
184
+ targets: {
185
+ node: 'current',
186
+ },
187
+ },
188
+ ],
189
+ ],
190
+ plugins: [
191
+ 'react', 'react-hooks',
192
+ [
193
+ '@babel/plugin-transform-react-jsx',
194
+ {
195
+ pragma: 'h',
196
+ pragmaFrag: 'Fragment',
197
+ },
198
+ ],
199
+ ],
200
+ },
201
+ },
133
202
  rules: {
134
203
  'vue/html-self-closing': [
135
204
  2,
@@ -358,19 +427,8 @@ module.exports = {
358
427
  },
359
428
  },
360
429
  ],
361
- '@babel/preset-react',
362
430
  'airbnb',
363
431
  ],
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
432
  },
375
433
  },
376
434
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "3.0.2",
3
+ "version": "3.1.3",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.cjs",
6
6
  "dependencies": {