@mikey-pro/eslint-config 3.1.1 → 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 +16 -10
  2. package/package.json +1 -1
package/index.cjs CHANGED
@@ -69,7 +69,7 @@ module.exports = {
69
69
  'airbnb',
70
70
  ],
71
71
  },
72
- },
72
+ },
73
73
  rules: {
74
74
  'react/no-deprecated': 2,
75
75
  'react/react-in-jsx-scope': 0,
@@ -82,15 +82,18 @@ module.exports = {
82
82
  allowArrowFunctions: true,
83
83
  },
84
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,
85
92
  'react/function-component-definition': 0,
86
93
  'react/state-in-constructor': 0,
87
- 'react/jsx-no-comment-textnodes': 2,
88
94
  'react/jsx-no-duplicate-props': 2,
89
95
  'react/jsx-no-target-blank': 2,
90
- 'react/jsx-no-undef': 2,
91
96
  'react/jsx-tag-spacing': [2, { beforeSelfClosing: 'always' }],
92
- 'react/jsx-uses-react': 2,
93
- 'react/jsx-uses-vars': 2,
94
97
  'react/jsx-key': [2, { checkFragmentShorthand: true }],
95
98
  'react/self-closing-comp': 2,
96
99
  'react/prefer-es6-class': 2,
@@ -99,9 +102,7 @@ module.exports = {
99
102
  'react/no-danger': 1,
100
103
  'react/no-did-mount-set-state': 2,
101
104
  'react/no-did-update-set-state': 2,
102
- 'react/no-find-dom-node': 2,
103
105
  'react/no-is-mounted': 2,
104
- 'react/no-string-refs': 2,
105
106
  'react-hooks/rules-of-hooks': 2,
106
107
  'react-hooks/exhaustive-deps': 1,
107
108
  },
@@ -150,7 +151,6 @@ module.exports = {
150
151
  files: ['*.vue'],
151
152
  parser: 'vue-eslint-parser',
152
153
  extends: ['plugin:vue/vue3-recommended', '@vue/airbnb'],
153
- parser: '@babel/eslint-parser',
154
154
  parserOptions: {
155
155
  requireConfigFile: false,
156
156
  ecmaVersion: 'latest',
@@ -167,7 +167,7 @@ module.exports = {
167
167
  ],
168
168
  ],
169
169
  plugins: [
170
- '@vue/babel-plugin-jsx',
170
+ 'eslint-plugin-vue',
171
171
  [
172
172
  '@babel/plugin-transform-react-jsx',
173
173
  {
@@ -177,7 +177,7 @@ module.exports = {
177
177
  ],
178
178
  ],
179
179
  },
180
- },
180
+ },
181
181
  rules: {
182
182
  'vue/html-self-closing': [
183
183
  2,
@@ -274,6 +274,8 @@ module.exports = {
274
274
  'error',
275
275
  { allow: ['eslint-disable', 'eslint-disable-next-line'] },
276
276
  ],
277
+ 'keyword-spacing': 2,
278
+ 'require-atomic-updates': 0,
277
279
  'import/no-commonjs': 0,
278
280
  'sort-imports': 0,
279
281
  'constructor-super': 2,
@@ -390,6 +392,10 @@ module.exports = {
390
392
  settings: {
391
393
  'json/sort-package-json': 'pro',
392
394
  polyfills: ['Promise'],
395
+ react: {
396
+ pragma: 'h',
397
+ version: 'preact',
398
+ },
393
399
  },
394
400
  parser: '@babel/eslint-parser',
395
401
  parserOptions: {
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.5",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.cjs",
6
6
  "dependencies": {