@mikey-pro/eslint-config 3.4.1 → 4.1.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.js +3 -33
  2. package/package.json +8 -8
package/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  module.exports = {
2
2
  extends: [
3
- 'standard',
3
+ 'react-app',
4
+ 'react-app/jest',
4
5
  'eslint:recommended',
5
6
  'plugin:unicorn/all',
6
- 'plugin:jsx-a11y/recommended',
7
7
  'plugin:sonarjs/recommended',
8
8
  'plugin:compat/recommended',
9
9
  'plugin:css-modules/recommended',
@@ -12,22 +12,9 @@ module.exports = {
12
12
  overrides: [
13
13
  {
14
14
  files: ['*.ts'],
15
- parser: '@typescript-eslint/parser',
16
15
  parserOptions: {
17
- tsconfigRootDir: __dirname,
18
- project: ['../../../tsconfig.json'],
19
16
  extraFileExtensions: ['.vue', '.svelte'],
20
- sourceType: 'module',
21
- ecmaVersion: 'latest',
22
- ecmaFeatures: {
23
- jsx: true,
24
- },
25
17
  },
26
- plugins: ['@typescript-eslint'],
27
- extends: [
28
- 'plugin:@typescript-eslint/recommended',
29
- 'plugin:@typescript-eslint/recommended-requiring-type-checking',
30
- ],
31
18
  rules: {
32
19
  'import/named': 0,
33
20
  'import/namespace': 0,
@@ -41,23 +28,8 @@ module.exports = {
41
28
  },
42
29
  {
43
30
  files: ['*.tsx'],
44
- parser: '@typescript-eslint/parser',
45
- extends: [
46
- 'plugin:react/recommended',
47
- 'plugin:react-hooks/recommended',
48
- 'plugin:@typescript-eslint/recommended',
49
- 'plugin:@typescript-eslint/recommended-requiring-type-checking',
50
- ],
51
- plugins: ['@typescript-eslint', 'react', 'react-hooks'],
52
31
  parserOptions: {
53
- tsconfigRootDir: __dirname,
54
- project: ['../../../tsconfig.json'],
55
32
  extraFileExtensions: ['.vue', '.svelte'],
56
- sourceType: 'module',
57
- ecmaVersion: 'latest',
58
- ecmaFeatures: {
59
- jsx: true,
60
- },
61
33
  },
62
34
  rules: {
63
35
  'import/named': 0,
@@ -140,8 +112,6 @@ module.exports = {
140
112
  },
141
113
  {
142
114
  files: ['*.jsx'],
143
- extends: ['plugin:react/recommended', 'plugin:react-hooks/recommended'],
144
- plugins: ['react', 'react-hooks'],
145
115
  parser: '@babel/eslint-parser',
146
116
  parserOptions: {
147
117
  requireConfigFile: false,
@@ -470,7 +440,6 @@ module.exports = {
470
440
  'prettier/prettier': [2, { parser: 'babel' }],
471
441
  },
472
442
  plugins: [
473
- 'import',
474
443
  'prettier',
475
444
  'css-modules',
476
445
  'disable-autofix',
@@ -513,6 +482,7 @@ module.exports = {
513
482
  },
514
483
  },
515
484
  ],
485
+ '@babel/preset-react',
516
486
  ],
517
487
  },
518
488
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "3.4.1",
3
+ "version": "4.1.1",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.js",
6
6
  "dependencies": {
@@ -9,13 +9,13 @@
9
9
  "@babel/eslint-plugin": "^7.16",
10
10
  "@babel/plugin-transform-react-jsx": "^7.16.7",
11
11
  "@babel/preset-env": "^7.16",
12
- "@html-eslint/eslint-plugin": "^0.13.0",
13
- "@html-eslint/parser": "^0.13.0",
14
- "@typescript-eslint/eslint-plugin": "^5.9.1",
15
- "@typescript-eslint/parser": "^5.9.1",
12
+ "@html-eslint/eslint-plugin": "^0.13.1",
13
+ "@html-eslint/parser": "^0.13.1",
14
+ "@typescript-eslint/eslint-plugin": "^5.10.0",
15
+ "@typescript-eslint/parser": "^5.10.0",
16
16
  "@vue/babel-plugin-jsx": "^1.1.1",
17
17
  "eslint-config-prettier": "^8.3",
18
- "eslint-config-standard": "^16.0.3",
18
+ "eslint-config-react-app": "^7.0.0",
19
19
  "eslint-import-resolver-typescript": "^2.5.0",
20
20
  "eslint-plugin-compat": "^4.0",
21
21
  "eslint-plugin-css-modules": "^2.11",
@@ -31,9 +31,9 @@
31
31
  "eslint-plugin-react": "^7.28",
32
32
  "eslint-plugin-react-hooks": "^4.3",
33
33
  "eslint-plugin-sonarjs": "^0.11.0",
34
- "eslint-plugin-svelte3": "^3.3.0",
34
+ "eslint-plugin-svelte3": "^3.4.0",
35
35
  "eslint-plugin-toml": "^0.3.0",
36
- "eslint-plugin-unicorn": "^40.0.0",
36
+ "eslint-plugin-unicorn": "^40.1.0",
37
37
  "eslint-plugin-vue": "^8.3",
38
38
  "eslint-plugin-yaml": "^0.5.0",
39
39
  "vue-eslint-parser": "^8.0"