@mikey-pro/eslint-config 3.1.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 +23 -13
  2. package/package.json +1 -1
package/index.cjs CHANGED
@@ -49,18 +49,28 @@ 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
+ 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
+ },
64
74
  parser: '@babel/eslint-parser',
65
75
  parserOptions: {
66
76
  requireConfigFile: false,
@@ -178,7 +188,7 @@ module.exports = {
178
188
  ],
179
189
  ],
180
190
  plugins: [
181
- '@vue/babel-plugin-jsx',
191
+ 'react', 'react-hooks',
182
192
  [
183
193
  '@babel/plugin-transform-react-jsx',
184
194
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.cjs",
6
6
  "dependencies": {