@mikey-pro/eslint-config 2.4.0 → 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 +4 -6
  2. package/package.json +4 -3
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:
@@ -261,6 +258,7 @@ module.exports = {
261
258
  'unicorn',
262
259
  'svelte3',
263
260
  'sonarjs',
261
+ 'github',
264
262
  ],
265
263
  ignorePatterns: [
266
264
  '!.*',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.cjs",
6
6
  "dependencies": {
@@ -9,8 +9,8 @@
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
15
  "@vue/eslint-config-airbnb": "^6.0",
16
16
  "babel-preset-airbnb": "^5.0.0",
@@ -22,6 +22,7 @@
22
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",