@pob/eslint-config 65.3.0 → 65.4.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.
- package/CHANGELOG.md +1998 -0
- package/lib/languages/json.js +3 -3
- package/lib/plugins/unicorn.js +12 -0
- package/package.json +18 -17
package/lib/languages/json.js
CHANGED
|
@@ -9,7 +9,7 @@ export default [
|
|
|
9
9
|
|
|
10
10
|
// lint JSON files
|
|
11
11
|
{
|
|
12
|
-
name: "@pob/eslint-config/base/languages/json/json",
|
|
12
|
+
// name: "@pob/eslint-config/base/languages/json/json",
|
|
13
13
|
files: ["**/*.json"],
|
|
14
14
|
language: "json/json",
|
|
15
15
|
// @ts-ignore
|
|
@@ -18,7 +18,7 @@ export default [
|
|
|
18
18
|
|
|
19
19
|
// lint JSONC files
|
|
20
20
|
{
|
|
21
|
-
name: "@pob/eslint-config/base/languages/json/jsonc",
|
|
21
|
+
// name: "@pob/eslint-config/base/languages/json/jsonc",
|
|
22
22
|
files: ["**/*.jsonc", "**/tsconfig.json", ".vscode/*.json"],
|
|
23
23
|
language: "json/jsonc",
|
|
24
24
|
languageOptions: {
|
|
@@ -30,7 +30,7 @@ export default [
|
|
|
30
30
|
|
|
31
31
|
// lint JSON5 files
|
|
32
32
|
{
|
|
33
|
-
name: "@pob/eslint-config/base/languages/json/json5",
|
|
33
|
+
// name: "@pob/eslint-config/base/languages/json/json5",
|
|
34
34
|
files: ["**/*.json5"],
|
|
35
35
|
language: "json/json5",
|
|
36
36
|
// @ts-ignore
|
package/lib/plugins/unicorn.js
CHANGED
|
@@ -372,6 +372,18 @@ export default [
|
|
|
372
372
|
|
|
373
373
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-response-static-json.md
|
|
374
374
|
"unicorn/prefer-response-static-json": "error",
|
|
375
|
+
|
|
376
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-template-literal-escape.md
|
|
377
|
+
"unicorn/consistent-template-literal-escape": "error",
|
|
378
|
+
|
|
379
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-iterator-to-array.md
|
|
380
|
+
"unicorn/no-useless-iterator-to-array": "error",
|
|
381
|
+
|
|
382
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-simple-condition-first.md
|
|
383
|
+
"unicorn/prefer-simple-condition-first": "off",
|
|
384
|
+
|
|
385
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/switch-case-break-position.md
|
|
386
|
+
"unicorn/switch-case-break-position": "error",
|
|
375
387
|
},
|
|
376
388
|
},
|
|
377
389
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pob/eslint-config",
|
|
3
|
-
"version": "65.
|
|
3
|
+
"version": "65.4.1",
|
|
4
4
|
"description": "eslint config files",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
],
|
|
36
36
|
"scripts": {
|
|
37
37
|
"lint": "yarn run lint:eslint",
|
|
38
|
-
"lint:eslint": "yarn ../.. run eslint --quiet '@pob/eslint-config'"
|
|
38
|
+
"lint:eslint": "yarn '../..' run eslint --quiet '@pob/eslint-config'"
|
|
39
39
|
},
|
|
40
40
|
"pob": {},
|
|
41
41
|
"prettier": "@pob/root/prettier-config",
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"eslint": "^9.39.1 || ^10.0.2",
|
|
44
|
-
"typescript": ">=5.0.0 <
|
|
44
|
+
"typescript": ">=5.0.0 <7.0.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependenciesMeta": {
|
|
47
47
|
"typescript": {
|
|
@@ -51,25 +51,26 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@eslint/js": "^10.0.1",
|
|
53
53
|
"@eslint/json": "^1.0.1",
|
|
54
|
-
"@pob/eslint-plugin": "65.
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
56
|
-
"@typescript-eslint/parser": "^8.
|
|
54
|
+
"@pob/eslint-plugin": "65.4.1",
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^8.59.1",
|
|
56
|
+
"@typescript-eslint/parser": "^8.59.1",
|
|
57
57
|
"confusing-browser-globals": "^1.0.11",
|
|
58
58
|
"eslint-plugin-import-x": "^4.16.2",
|
|
59
59
|
"eslint-plugin-n": "^17.24.0",
|
|
60
|
-
"eslint-plugin-regexp": "^3.
|
|
61
|
-
"eslint-plugin-unicorn": "^
|
|
62
|
-
"typescript-eslint": "^8.
|
|
60
|
+
"eslint-plugin-regexp": "^3.1.0",
|
|
61
|
+
"eslint-plugin-unicorn": "^64.0.0",
|
|
62
|
+
"typescript-eslint": "^8.59.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@
|
|
66
|
-
"@typescript-eslint/
|
|
67
|
-
"eslint": "
|
|
65
|
+
"@types/node": "24.10.1",
|
|
66
|
+
"@typescript-eslint/eslint-plugin": "8.59.1",
|
|
67
|
+
"@typescript-eslint/parser": "8.59.1",
|
|
68
|
+
"eslint": "10.2.1",
|
|
68
69
|
"eslint-plugin-import-x": "4.16.2",
|
|
69
70
|
"eslint-plugin-n": "17.24.0",
|
|
70
|
-
"eslint-plugin-regexp": "3.
|
|
71
|
-
"eslint-plugin-unicorn": "
|
|
72
|
-
"typescript": "
|
|
73
|
-
"typescript-eslint": "8.
|
|
71
|
+
"eslint-plugin-regexp": "3.1.0",
|
|
72
|
+
"eslint-plugin-unicorn": "64.0.0",
|
|
73
|
+
"typescript": "6.0.3",
|
|
74
|
+
"typescript-eslint": "8.59.1"
|
|
74
75
|
}
|
|
75
|
-
}
|
|
76
|
+
}
|