@mikey-pro/eslint-config 3.2.8 → 3.3.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.
@@ -1,6 +1,5 @@
1
1
  module.exports = {
2
2
  extends: [
3
- 'airbnb',
4
3
  'standard',
5
4
  'eslint:recommended',
6
5
  'plugin:unicorn/all',
@@ -27,7 +26,6 @@ module.exports = {
27
26
  },
28
27
  plugins: ['@typescript-eslint'],
29
28
  extends: [
30
- 'airbnb-typescript',
31
29
  'plugin:@typescript-eslint/recommended',
32
30
  'plugin:@typescript-eslint/recommended-requiring-type-checking',
33
31
  ],
@@ -45,7 +43,6 @@ module.exports = {
45
43
  files: ['*.tsx'],
46
44
  parser: '@typescript-eslint/parser',
47
45
  extends: [
48
- 'airbnb-typescript',
49
46
  'plugin:react/recommended',
50
47
  'plugin:react-hooks/recommended',
51
48
  'plugin:@typescript-eslint/recommended',
@@ -160,7 +157,6 @@ module.exports = {
160
157
  },
161
158
  ],
162
159
  '@babel/preset-react',
163
- 'airbnb',
164
160
  ],
165
161
  },
166
162
  },
@@ -244,7 +240,7 @@ module.exports = {
244
240
  {
245
241
  files: ['*.vue'],
246
242
  parser: 'vue-eslint-parser',
247
- extends: ['plugin:vue/vue3-recommended', '@vue/airbnb'],
243
+ extends: ['plugin:vue/vue3-recommended'],
248
244
  parserOptions: {
249
245
  requireConfigFile: false,
250
246
  ecmaVersion: 'latest',
@@ -374,6 +370,13 @@ module.exports = {
374
370
  'error',
375
371
  { allow: ['eslint-disable', 'eslint-disable-next-line'] },
376
372
  ],
373
+ 'prefer-destructuring': [
374
+ 'error',
375
+ {
376
+ object: true,
377
+ array: false,
378
+ },
379
+ ],
377
380
  'keyword-spacing': 2,
378
381
  'require-atomic-updates': 0,
379
382
  'import/no-commonjs': 0,
@@ -514,7 +517,6 @@ module.exports = {
514
517
  },
515
518
  },
516
519
  ],
517
- 'airbnb',
518
520
  ],
519
521
  },
520
522
  },
package/package.json CHANGED
@@ -1,23 +1,19 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "3.2.8",
3
+ "version": "3.3.0",
4
4
  "description": "Mikey Pro ESLint configuration",
5
- "main": "index.cjs",
5
+ "main": "index.js",
6
6
  "dependencies": {
7
- "@babel/core": "^7.16.0",
7
+ "@babel/core": "^7.16.7",
8
8
  "@babel/eslint-parser": "^7.16",
9
- "@babel/eslint-plugin": "^7.14",
10
- "@babel/plugin-transform-react-jsx": "^7.16.0",
9
+ "@babel/eslint-plugin": "^7.16",
10
+ "@babel/plugin-transform-react-jsx": "^7.16.7",
11
11
  "@babel/preset-env": "^7.16",
12
12
  "@html-eslint/eslint-plugin": "^0.13.0",
13
13
  "@html-eslint/parser": "^0.13.0",
14
- "@typescript-eslint/eslint-plugin": "^5.5.0",
15
- "@typescript-eslint/parser": "^5.5.0",
14
+ "@typescript-eslint/eslint-plugin": "^5.8.1",
15
+ "@typescript-eslint/parser": "^5.8.1",
16
16
  "@vue/babel-plugin-jsx": "^1.1.1",
17
- "@vue/eslint-config-airbnb": "^6.0",
18
- "babel-preset-airbnb": "^5.0.0",
19
- "eslint-config-airbnb": "^19.0",
20
- "eslint-config-airbnb-typescript": "^16.1.0",
21
17
  "eslint-config-prettier": "^8.3",
22
18
  "eslint-config-standard": "^16.0.3",
23
19
  "eslint-import-resolver-typescript": "^2.5.0",
@@ -32,13 +28,13 @@
32
28
  "eslint-plugin-md": "^1.0",
33
29
  "eslint-plugin-node": "^11.1.0",
34
30
  "eslint-plugin-prettier": "^4.0",
35
- "eslint-plugin-promise": "^5.2.0",
36
- "eslint-plugin-react": "^7.27",
31
+ "eslint-plugin-promise": "^6.0.0",
32
+ "eslint-plugin-react": "^7.28",
37
33
  "eslint-plugin-react-hooks": "^4.3",
38
34
  "eslint-plugin-sonarjs": "^0.11.0",
39
35
  "eslint-plugin-svelte3": "^3.2.1",
40
36
  "eslint-plugin-toml": "^0.3.0",
41
- "eslint-plugin-unicorn": "^39.0.0",
37
+ "eslint-plugin-unicorn": "^40.0.0",
42
38
  "eslint-plugin-vue": "^8.2",
43
39
  "eslint-plugin-yaml": "^0.5.0",
44
40
  "vue-eslint-parser": "^8.0"
@@ -47,7 +43,7 @@
47
43
  "eslint": ">=8.3.0"
48
44
  },
49
45
  "files": [
50
- "index.cjs",
46
+ "index.js",
51
47
  "README.md",
52
48
  "LICENSE"
53
49
  ],