@mikey-pro/eslint-config 4.6.0 → 4.7.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.js +3 -19
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -11,7 +11,7 @@ module.exports = {
11
11
  ],
12
12
  overrides: [
13
13
  {
14
- files: ['*.ts'],
14
+ files: ['*.ts', '*.tsx'],
15
15
  parser: '@typescript-eslint/parser',
16
16
  parserOptions: {
17
17
  tsconfigRootDir: __dirname,
@@ -39,22 +39,6 @@ module.exports = {
39
39
  'prettier/prettier': [1, { parser: 'typescript' }],
40
40
  },
41
41
  },
42
- {
43
- files: ['*.tsx', '*.jsx'],
44
- parserOptions: {
45
- extraFileExtensions: ['.vue', '.svelte'],
46
- },
47
- rules: {
48
- 'import/named': 0,
49
- 'import/namespace': 0,
50
- 'import/default': 0,
51
- 'import/no-named-as-default-member': 0,
52
- 'import/no-unresolved': 0,
53
- '@typescript-eslint/naming-convention': 0,
54
- '@typescript-eslint/indent': 0,
55
- 'prettier/prettier': [1, { parser: 'typescript' }],
56
- },
57
- },
58
42
  {
59
43
  files: ['*.css'],
60
44
  rules: {
@@ -196,7 +180,7 @@ module.exports = {
196
180
  },
197
181
  {
198
182
  files: ['*.json', '*.jsonc', '*rc'],
199
- extends: ['plugin:jsonc/all'],
183
+ extends: ['plugin:jsonc/recommended-with-json'],
200
184
  parser: 'jsonc-eslint-parser',
201
185
  plugins: ['json-format'],
202
186
  rules: {
@@ -205,7 +189,7 @@ module.exports = {
205
189
  },
206
190
  {
207
191
  files: ['*.json5'],
208
- extends: ['plugin:jsonc/all'],
192
+ extends: ['plugin:jsonc/recommended-with-json5'],
209
193
  parser: 'jsonc-eslint-parser',
210
194
  rules: {
211
195
  'prettier/prettier': [1, { parser: 'json5' }],
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "4.6.0",
3
+ "version": "4.7.0",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.js",
6
6
  "dependencies": {
7
- "@babel/core": "^7.17.4",
7
+ "@babel/core": "^7.17.5",
8
8
  "@babel/eslint-parser": "^7.17",
9
9
  "@babel/eslint-plugin": "^7.16",
10
10
  "@babel/plugin-transform-react-jsx": "^7.17.3",
@@ -21,7 +21,7 @@
21
21
  "eslint-plugin-css-modules": "^2.11",
22
22
  "eslint-plugin-disable-autofix": "^0.1.6",
23
23
  "eslint-plugin-json-format": "^2.0",
24
- "eslint-plugin-jsonc": "^2.1.0",
24
+ "eslint-plugin-jsonc": "^2.2.1",
25
25
  "eslint-plugin-md": "^1.0",
26
26
  "eslint-plugin-node": "^11.1.0",
27
27
  "eslint-plugin-only-warn": "^1.0.3",
@@ -30,7 +30,7 @@
30
30
  "eslint-plugin-sonarjs": "^0.11.0",
31
31
  "eslint-plugin-svelte3": "^3.4.0",
32
32
  "eslint-plugin-toml": "^0.3.0",
33
- "eslint-plugin-unicorn": "^40.1.0",
33
+ "eslint-plugin-unicorn": "^41.0.0",
34
34
  "eslint-plugin-vue": "^8.4",
35
35
  "eslint-plugin-yaml": "^0.5.0",
36
36
  "vue-eslint-parser": "^8.2"