@mikey-pro/eslint-config 2.3.1 → 2.5.0

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 +6 -6
  2. package/package.json +10 -9
package/index.cjs CHANGED
@@ -4,12 +4,13 @@ module.exports = {
4
4
  'standard',
5
5
  'eslint:recommended',
6
6
  'plugin:unicorn/all',
7
- 'plugin:react/recommended',
8
- 'plugin:react-hooks/recommended',
7
+ 'plugin:github/recommended',
9
8
  'plugin:jsx-a11y/recommended',
10
9
  'plugin:sonarjs/recommended',
11
10
  'plugin:compat/recommended',
12
11
  'plugin:css-modules/recommended',
12
+ 'plugin:react/recommended',
13
+ 'plugin:react-hooks/recommended',
13
14
  'plugin:prettier/recommended',
14
15
  ],
15
16
  overrides: [
@@ -99,10 +100,6 @@ module.exports = {
99
100
  message:
100
101
  'for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.',
101
102
  },
102
- // {
103
- // selector: 'ForOfStatement',
104
- // message: 'iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.',
105
- // },
106
103
  {
107
104
  selector: 'LabeledStatement',
108
105
  message:
@@ -213,6 +210,7 @@ module.exports = {
213
210
  allowArrowFunctions: true,
214
211
  },
215
212
  ],
213
+ 'react/function-component-definition': 0,
216
214
  'react/state-in-constructor': 0,
217
215
  'react/jsx-no-comment-textnodes': 2,
218
216
  'react/jsx-no-duplicate-props': 2,
@@ -259,6 +257,8 @@ module.exports = {
259
257
  'react-hooks',
260
258
  'unicorn',
261
259
  'svelte3',
260
+ 'sonarjs',
261
+ 'github',
262
262
  ],
263
263
  ignorePatterns: [
264
264
  '!.*',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "2.3.1",
3
+ "version": "2.5.0",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.cjs",
6
6
  "dependencies": {
@@ -9,19 +9,20 @@
9
9
  "@babel/eslint-plugin": "^7.14",
10
10
  "@babel/plugin-transform-react-jsx": "^7.16.0",
11
11
  "@babel/preset-env": "^7.16",
12
- "@html-eslint/eslint-plugin": "^0.12.0",
13
- "@html-eslint/parser": "^0.12.0",
12
+ "@html-eslint/eslint-plugin": "^0.13.0",
13
+ "@html-eslint/parser": "^0.13.0",
14
14
  "@vue/babel-plugin-jsx": "^1.1.1",
15
- "@vue/eslint-config-airbnb": "^5.3",
15
+ "@vue/eslint-config-airbnb": "^6.0",
16
16
  "babel-preset-airbnb": "^5.0.0",
17
- "eslint": "^8.2.0",
17
+ "eslint": "^8.3.0",
18
18
  "eslint-config-airbnb": "^19.0",
19
19
  "eslint-config-prettier": "^8.3",
20
20
  "eslint-config-standard": "16.0.3",
21
21
  "eslint-import-resolver-alias": "^1.1",
22
- "eslint-plugin-compat": "^3.13",
22
+ "eslint-plugin-compat": "^4.0",
23
23
  "eslint-plugin-css-modules": "^2.11",
24
24
  "eslint-plugin-disable-autofix": "^0.1.6",
25
+ "eslint-plugin-github": "^4.3.5",
25
26
  "eslint-plugin-import": "^2.25",
26
27
  "eslint-plugin-json": "^3.1",
27
28
  "eslint-plugin-json-format": "^2.0",
@@ -32,10 +33,10 @@
32
33
  "eslint-plugin-promise": "5.1.1",
33
34
  "eslint-plugin-react": "^7.27",
34
35
  "eslint-plugin-react-hooks": "^4.3",
35
- "eslint-plugin-sonar": "^0.6.1",
36
+ "eslint-plugin-sonarjs": "^0.10.0",
36
37
  "eslint-plugin-svelte3": "^3.2.1",
37
- "eslint-plugin-unicorn": "^38.0.1",
38
- "eslint-plugin-vue": "^8.0",
38
+ "eslint-plugin-unicorn": "^39.0.0",
39
+ "eslint-plugin-vue": "^8.1",
39
40
  "vue-eslint-parser": "^8.0"
40
41
  },
41
42
  "files": [