@mikey-pro/eslint-config 3.1.4 → 3.1.5

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 -17
  2. package/package.json +1 -1
package/index.cjs CHANGED
@@ -68,15 +68,6 @@ module.exports = {
68
68
  '@babel/preset-react',
69
69
  'airbnb',
70
70
  ],
71
- plugins: [
72
- [
73
- '@babel/plugin-transform-react-jsx',
74
- {
75
- pragma: 'h',
76
- pragmaFrag: 'Fragment',
77
- },
78
- ],
79
- ],
80
71
  },
81
72
  },
82
73
  rules: {
@@ -91,15 +82,18 @@ module.exports = {
91
82
  allowArrowFunctions: true,
92
83
  },
93
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,
94
92
  'react/function-component-definition': 0,
95
93
  'react/state-in-constructor': 0,
96
- 'react/jsx-no-comment-textnodes': 2,
97
94
  'react/jsx-no-duplicate-props': 2,
98
95
  'react/jsx-no-target-blank': 2,
99
- 'react/jsx-no-undef': 2,
100
96
  'react/jsx-tag-spacing': [2, { beforeSelfClosing: 'always' }],
101
- 'react/jsx-uses-react': 2,
102
- 'react/jsx-uses-vars': 2,
103
97
  'react/jsx-key': [2, { checkFragmentShorthand: true }],
104
98
  'react/self-closing-comp': 2,
105
99
  'react/prefer-es6-class': 2,
@@ -108,9 +102,7 @@ module.exports = {
108
102
  'react/no-danger': 1,
109
103
  'react/no-did-mount-set-state': 2,
110
104
  'react/no-did-update-set-state': 2,
111
- 'react/no-find-dom-node': 2,
112
105
  'react/no-is-mounted': 2,
113
- 'react/no-string-refs': 2,
114
106
  'react-hooks/rules-of-hooks': 2,
115
107
  'react-hooks/exhaustive-deps': 1,
116
108
  },
@@ -159,7 +151,6 @@ module.exports = {
159
151
  files: ['*.vue'],
160
152
  parser: 'vue-eslint-parser',
161
153
  extends: ['plugin:vue/vue3-recommended', '@vue/airbnb'],
162
- parser: '@babel/eslint-parser',
163
154
  parserOptions: {
164
155
  requireConfigFile: false,
165
156
  ecmaVersion: 'latest',
@@ -176,7 +167,7 @@ module.exports = {
176
167
  ],
177
168
  ],
178
169
  plugins: [
179
- 'react', 'react-hooks',
170
+ 'eslint-plugin-vue',
180
171
  [
181
172
  '@babel/plugin-transform-react-jsx',
182
173
  {
@@ -283,6 +274,8 @@ module.exports = {
283
274
  'error',
284
275
  { allow: ['eslint-disable', 'eslint-disable-next-line'] },
285
276
  ],
277
+ 'keyword-spacing': 2,
278
+ 'require-atomic-updates': 0,
286
279
  'import/no-commonjs': 0,
287
280
  'sort-imports': 0,
288
281
  'constructor-super': 2,
@@ -399,6 +392,10 @@ module.exports = {
399
392
  settings: {
400
393
  'json/sort-package-json': 'pro',
401
394
  polyfills: ['Promise'],
395
+ react: {
396
+ pragma: 'h',
397
+ version: 'preact',
398
+ },
402
399
  },
403
400
  parser: '@babel/eslint-parser',
404
401
  parserOptions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.cjs",
6
6
  "dependencies": {