@mikey-pro/eslint-config 3.1.1 → 3.1.2

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 +14 -3
  2. package/package.json +1 -1
package/index.cjs CHANGED
@@ -49,7 +49,18 @@ module.exports = {
49
49
  {
50
50
  files: ['*.jsx'],
51
51
  extends: ['plugin:react/recommended', 'plugin:react-hooks/recommended'],
52
- plugins: ['react', 'react-hooks'],
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
+
53
64
  parser: '@babel/eslint-parser',
54
65
  parserOptions: {
55
66
  requireConfigFile: false,
@@ -69,7 +80,7 @@ module.exports = {
69
80
  'airbnb',
70
81
  ],
71
82
  },
72
- },
83
+ },
73
84
  rules: {
74
85
  'react/no-deprecated': 2,
75
86
  'react/react-in-jsx-scope': 0,
@@ -177,7 +188,7 @@ module.exports = {
177
188
  ],
178
189
  ],
179
190
  },
180
- },
191
+ },
181
192
  rules: {
182
193
  'vue/html-self-closing': [
183
194
  2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.cjs",
6
6
  "dependencies": {