@1stg/eslint-config 4.1.4 → 5.0.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.
- package/CHANGELOG.md +22 -0
- package/overrides.js +45 -8
- package/package.json +16 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 5.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#98](https://github.com/1stG/configs/pull/98) [`9c2c16d`](https://github.com/1stG/configs/commit/9c2c16d635f490b7c8980e17a39fd7ecd53de008) Thanks [@JounQin](https://github.com/JounQin)! - feat!: use official eslint-plugin-prettier and eslint-plugin-svelte v2
|
|
8
|
+
|
|
9
|
+
### Minor Changes
|
|
10
|
+
|
|
11
|
+
- [#98](https://github.com/1stG/configs/pull/98) [`9c2c16d`](https://github.com/1stG/configs/commit/9c2c16d635f490b7c8980e17a39fd7ecd53de008) Thanks [@JounQin](https://github.com/JounQin)! - feat: enable jsonc/toml/yml plugins
|
|
12
|
+
|
|
13
|
+
## 4.3.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [`62a9421`](https://github.com/1stG/configs/commit/62a9421e6a2b0fb206b6292a070c8b3b04fe384e) Thanks [@JounQin](https://github.com/JounQin)! - feat: use @rxts/eslint-plugin-prettier instead
|
|
18
|
+
|
|
19
|
+
## 4.2.0
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- [`af649e7`](https://github.com/1stG/configs/commit/af649e731f49166389a6ec4b177a5497c4477028) Thanks [@JounQin](https://github.com/JounQin)! - feat: bump deps, update node engine setting
|
|
24
|
+
|
|
3
25
|
## 4.1.4
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/overrides.js
CHANGED
|
@@ -9,7 +9,6 @@ const {
|
|
|
9
9
|
isVueAvailable,
|
|
10
10
|
tryFile,
|
|
11
11
|
tryPkg,
|
|
12
|
-
tryRequirePkg,
|
|
13
12
|
} = require('@pkgr/utils')
|
|
14
13
|
|
|
15
14
|
const { magicNumbers } = require('./_util')
|
|
@@ -355,10 +354,8 @@ exports.vue = [
|
|
|
355
354
|
|
|
356
355
|
const svelteBase = {
|
|
357
356
|
files: '*.svelte',
|
|
358
|
-
|
|
359
|
-
processor: 'svelte/svelte',
|
|
357
|
+
extends: ['plugin:svelte/recommended'],
|
|
360
358
|
rules: {
|
|
361
|
-
'prettier/prettier': 0, // https://github.com/sveltejs/eslint-plugin-svelte3/issues/16,
|
|
362
359
|
'sonar/label-position': 0,
|
|
363
360
|
'sonar/no-labels': 0,
|
|
364
361
|
},
|
|
@@ -371,10 +368,6 @@ exports.svelte = isTsAvailable
|
|
|
371
368
|
parserOptions: {
|
|
372
369
|
extraFileExtensions: ['.svelte'],
|
|
373
370
|
},
|
|
374
|
-
settings: {
|
|
375
|
-
...tsBase.settings,
|
|
376
|
-
'svelte/typescript': tryRequirePkg('typescript'),
|
|
377
|
-
},
|
|
378
371
|
}
|
|
379
372
|
: {
|
|
380
373
|
...jsBase,
|
|
@@ -493,6 +486,45 @@ exports.config = exports.configs = {
|
|
|
493
486
|
rules: nonSourceRules,
|
|
494
487
|
}
|
|
495
488
|
|
|
489
|
+
exports.json = {
|
|
490
|
+
files: '*.json',
|
|
491
|
+
extends: [
|
|
492
|
+
// eslint-disable-next-line sonarjs/no-duplicate-string
|
|
493
|
+
'plugin:jsonc/auto-config',
|
|
494
|
+
'plugin:jsonc/recommended-with-json',
|
|
495
|
+
// eslint-disable-next-line sonarjs/no-duplicate-string
|
|
496
|
+
'plugin:jsonc/prettier',
|
|
497
|
+
],
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
exports.jsonc = {
|
|
501
|
+
files: '*.jsonc',
|
|
502
|
+
extends: [
|
|
503
|
+
'plugin:jsonc/auto-config',
|
|
504
|
+
'plugin:jsonc/recommended-with-jsonc',
|
|
505
|
+
'plugin:jsonc/prettier',
|
|
506
|
+
],
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
exports.json5 = {
|
|
510
|
+
files: '*.json5',
|
|
511
|
+
extends: [
|
|
512
|
+
'plugin:jsonc/auto-config',
|
|
513
|
+
'plugin:jsonc/recommended-with-json5',
|
|
514
|
+
'plugin:jsonc/prettier',
|
|
515
|
+
],
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
exports.toml = {
|
|
519
|
+
files: '*.toml',
|
|
520
|
+
extends: ['plugin:toml/recommended'],
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
exports.yml = exports.yaml = {
|
|
524
|
+
files: ['*.yml', '*.yaml'],
|
|
525
|
+
extends: ['plugin:yml/recommended', 'plugin:yml/prettier'],
|
|
526
|
+
}
|
|
527
|
+
|
|
496
528
|
exports.overrides = []
|
|
497
529
|
// eslint-disable-next-line unicorn/prefer-spread
|
|
498
530
|
.concat(
|
|
@@ -512,5 +544,10 @@ exports.overrides = []
|
|
|
512
544
|
exports.stories,
|
|
513
545
|
exports.configs,
|
|
514
546
|
exports.dTs,
|
|
547
|
+
exports.json,
|
|
548
|
+
exports.jsonc,
|
|
549
|
+
exports.json5,
|
|
550
|
+
exports.toml,
|
|
551
|
+
exports.yaml,
|
|
515
552
|
)
|
|
516
553
|
.filter(Boolean)
|
package/package.json
CHANGED
|
@@ -1,50 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1stg/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Personal but Shareable ESLint Configuration for all 1stG.me projects.",
|
|
5
5
|
"repository": "git+https://github.com/1stG/configs.git",
|
|
6
6
|
"homepage": "https://github.com/1stG/configs/tree/master/packages/eslint-config",
|
|
7
7
|
"author": "JounQin <admin@1stg.me>",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"engines": {
|
|
10
|
-
"node": ">=
|
|
10
|
+
"node": "^12.20 || ^14.18.0 || >=16.0.0"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"eslint": ">=6.0.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@angular-eslint/eslint-plugin": "^
|
|
17
|
-
"@angular-eslint/eslint-plugin-template": "^
|
|
18
|
-
"@angular-eslint/template-parser": "^
|
|
16
|
+
"@angular-eslint/eslint-plugin": "^14.0.0",
|
|
17
|
+
"@angular-eslint/eslint-plugin-template": "^14.0.0",
|
|
18
|
+
"@angular-eslint/template-parser": "^14.0.0",
|
|
19
19
|
"@babel/eslint-parser": "^7.18.2",
|
|
20
20
|
"@babel/eslint-plugin": "^7.17.7",
|
|
21
21
|
"@pkgr/utils": "^2.2.0",
|
|
22
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
23
|
-
"@typescript-eslint/parser": "^5.
|
|
22
|
+
"@typescript-eslint/eslint-plugin": "^5.30.0",
|
|
23
|
+
"@typescript-eslint/parser": "^5.30.0",
|
|
24
24
|
"angular-eslint-template-parser": "^0.1.1",
|
|
25
25
|
"eslint-config-prettier": "^8.5.0",
|
|
26
26
|
"eslint-config-standard": "^17.0.0",
|
|
27
27
|
"eslint-config-standard-jsx": "^11.0.0",
|
|
28
28
|
"eslint-config-standard-react": "^11.0.1",
|
|
29
29
|
"eslint-formatter-friendly": "^7.0.0",
|
|
30
|
-
"eslint-import-resolver-typescript": "^
|
|
30
|
+
"eslint-import-resolver-typescript": "^3.1.1",
|
|
31
31
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
32
32
|
"eslint-plugin-import": "^2.26.0",
|
|
33
33
|
"eslint-plugin-jest": "^26.5.3",
|
|
34
34
|
"eslint-plugin-jsdoc": "^39.3.3",
|
|
35
|
+
"eslint-plugin-jsonc": "^2.3.0",
|
|
35
36
|
"eslint-plugin-markup": "^0.9.0",
|
|
36
|
-
"eslint-plugin-mdx": "^2.0.
|
|
37
|
+
"eslint-plugin-mdx": "^2.0.1",
|
|
37
38
|
"eslint-plugin-n": "^15.2.3",
|
|
38
|
-
"eslint-plugin-prettier": "^4.
|
|
39
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
39
40
|
"eslint-plugin-promise": "^6.0.0",
|
|
40
|
-
"eslint-plugin-react": "^7.30.
|
|
41
|
+
"eslint-plugin-react": "^7.30.1",
|
|
41
42
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
42
43
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
43
44
|
"eslint-plugin-sonar": "^0.8.0",
|
|
44
45
|
"eslint-plugin-sonarjs": "^0.13.0",
|
|
45
|
-
"eslint-plugin-svelte": "^
|
|
46
|
+
"eslint-plugin-svelte": "^2.0.0",
|
|
47
|
+
"eslint-plugin-toml": "^0.3.1",
|
|
46
48
|
"eslint-plugin-unicorn": "^42.0.0",
|
|
47
|
-
"eslint-plugin-vue": "^9.1.1"
|
|
49
|
+
"eslint-plugin-vue": "^9.1.1",
|
|
50
|
+
"eslint-plugin-yml": "^1.0.0"
|
|
48
51
|
},
|
|
49
52
|
"publishConfig": {
|
|
50
53
|
"access": "public"
|