@mikey-pro/eslint-config 3.0.0 → 3.0.1

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 +33 -42
  2. package/package.json +1 -3
package/index.cjs CHANGED
@@ -51,15 +51,39 @@ module.exports = {
51
51
  extends: ['plugin:react/recommended', 'plugin:react-hooks/recommended'],
52
52
  plugins: ['react', 'react-hooks'],
53
53
  rules: {
54
- 'spaced-comment': 0,
55
- '@html-eslint/indent': 0,
56
- '@html-eslint/no-extra-spacing-attrs': 0,
57
- '@html-eslint/require-closing-tags': 0,
58
- 'disable-autofix/@html-eslint/require-closing-tags': [
59
- 2,
60
- { selfClosing: 'always' },
61
- ],
62
- 'prettier/prettier': [2, { parser: 'html' }],
54
+ 'react/no-deprecated': 2,
55
+ 'react/react-in-jsx-scope': 0,
56
+ 'react/display-name': [1, { ignoreTranspilerName: false }],
57
+ 'react/jsx-no-bind': [
58
+ 1,
59
+ {
60
+ ignoreRefs: true,
61
+ allowFunctions: true,
62
+ allowArrowFunctions: true,
63
+ },
64
+ ],
65
+ 'react/function-component-definition': 0,
66
+ 'react/state-in-constructor': 0,
67
+ 'react/jsx-no-comment-textnodes': 2,
68
+ 'react/jsx-no-duplicate-props': 2,
69
+ 'react/jsx-no-target-blank': 2,
70
+ 'react/jsx-no-undef': 2,
71
+ 'react/jsx-tag-spacing': [2, { beforeSelfClosing: 'always' }],
72
+ 'react/jsx-uses-react': 2,
73
+ 'react/jsx-uses-vars': 2,
74
+ 'react/jsx-key': [2, { checkFragmentShorthand: true }],
75
+ 'react/self-closing-comp': 2,
76
+ 'react/prefer-es6-class': 2,
77
+ 'react/prefer-stateless-function': 1,
78
+ 'react/require-render-return': 2,
79
+ 'react/no-danger': 1,
80
+ 'react/no-did-mount-set-state': 2,
81
+ 'react/no-did-update-set-state': 2,
82
+ 'react/no-find-dom-node': 2,
83
+ 'react/no-is-mounted': 2,
84
+ 'react/no-string-refs': 2,
85
+ 'react-hooks/rules-of-hooks': 2,
86
+ 'react-hooks/exhaustive-deps': 1,
63
87
  },
64
88
  },
65
89
  {
@@ -281,39 +305,6 @@ module.exports = {
281
305
  },
282
306
  },
283
307
  ],
284
- 'react/no-deprecated': 2,
285
- 'react/react-in-jsx-scope': 0,
286
- 'react/display-name': [1, { ignoreTranspilerName: false }],
287
- 'react/jsx-no-bind': [
288
- 1,
289
- {
290
- ignoreRefs: true,
291
- allowFunctions: true,
292
- allowArrowFunctions: true,
293
- },
294
- ],
295
- 'react/function-component-definition': 0,
296
- 'react/state-in-constructor': 0,
297
- 'react/jsx-no-comment-textnodes': 2,
298
- 'react/jsx-no-duplicate-props': 2,
299
- 'react/jsx-no-target-blank': 2,
300
- 'react/jsx-no-undef': 2,
301
- 'react/jsx-tag-spacing': [2, { beforeSelfClosing: 'always' }],
302
- 'react/jsx-uses-react': 2,
303
- 'react/jsx-uses-vars': 2,
304
- 'react/jsx-key': [2, { checkFragmentShorthand: true }],
305
- 'react/self-closing-comp': 2,
306
- 'react/prefer-es6-class': 2,
307
- 'react/prefer-stateless-function': 1,
308
- 'react/require-render-return': 2,
309
- 'react/no-danger': 1,
310
- 'react/no-did-mount-set-state': 2,
311
- 'react/no-did-update-set-state': 2,
312
- 'react/no-find-dom-node': 2,
313
- 'react/no-is-mounted': 2,
314
- 'react/no-string-refs': 2,
315
- 'react-hooks/rules-of-hooks': 2,
316
- 'react-hooks/exhaustive-deps': 1,
317
308
  'unicorn/import-index': [2, { ignoreImports: true }],
318
309
  'filenames/match-regex': 0,
319
310
  'unicorn/filename-case': [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.cjs",
6
6
  "dependencies": {
@@ -17,13 +17,11 @@
17
17
  "eslint-config-airbnb": "^19.0",
18
18
  "eslint-config-prettier": "^8.3",
19
19
  "eslint-config-standard": "^16.0.3",
20
- "eslint-import-resolver-alias": "^1.1",
21
20
  "eslint-plugin-compat": "^4.0",
22
21
  "eslint-plugin-css-modules": "^2.11",
23
22
  "eslint-plugin-disable-autofix": "^0.1.6",
24
23
  "eslint-plugin-github": "^4.3.5",
25
24
  "eslint-plugin-import": "^2.25",
26
- "eslint-plugin-json": "^3.1",
27
25
  "eslint-plugin-json-format": "^2.0",
28
26
  "eslint-plugin-jsonc": "^2.0.0",
29
27
  "eslint-plugin-jsx-a11y": "^6.5",