@ntnyq/eslint-config 2.0.0-beta.12 → 2.0.0-beta.13
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/dist/index.js +14 -4
- package/package.json +21 -21
package/dist/index.js
CHANGED
|
@@ -490,7 +490,12 @@ var unicorn = [
|
|
|
490
490
|
"unicorn/no-typeof-undefined": "error",
|
|
491
491
|
"unicorn/prefer-set-size": "error",
|
|
492
492
|
"unicorn/better-regex": "error",
|
|
493
|
+
"unicorn/prefer-regexp-test": "error",
|
|
494
|
+
"unicorn/prefer-top-level-await": "error",
|
|
495
|
+
"unicorn/no-static-only-class": "error",
|
|
496
|
+
"unicorn/no-zero-fractions": "error",
|
|
493
497
|
"unicorn/custom-error-definition": "error",
|
|
498
|
+
"unicorn/prefer-modern-math-apis": "error",
|
|
494
499
|
"unicorn/explicit-length-check": "error",
|
|
495
500
|
"unicorn/new-for-builtins": "error",
|
|
496
501
|
"unicorn/no-console-spaces": "error",
|
|
@@ -547,7 +552,6 @@ var ts = [
|
|
|
547
552
|
{
|
|
548
553
|
files: [GLOB_TS, GLOB_TSX],
|
|
549
554
|
languageOptions: {
|
|
550
|
-
// @ts-expect-error 2322
|
|
551
555
|
parser: tsParser,
|
|
552
556
|
parserOptions: {
|
|
553
557
|
sourceType: "module",
|
|
@@ -639,7 +643,6 @@ var vue = [
|
|
|
639
643
|
"@typescript-eslint": tsPlugin2
|
|
640
644
|
},
|
|
641
645
|
languageOptions: {
|
|
642
|
-
// @ts-expect-error 2322
|
|
643
646
|
parser: vueParser,
|
|
644
647
|
parserOptions: {
|
|
645
648
|
parser: "@typescript-eslint/parser",
|
|
@@ -671,7 +674,6 @@ var yml = [
|
|
|
671
674
|
{
|
|
672
675
|
files: [GLOB_YAML],
|
|
673
676
|
languageOptions: {
|
|
674
|
-
// @ts-expect-error 2322
|
|
675
677
|
parser: ymlParser
|
|
676
678
|
},
|
|
677
679
|
plugins: {
|
|
@@ -845,12 +847,19 @@ var pkgOrder = [
|
|
|
845
847
|
},
|
|
846
848
|
{
|
|
847
849
|
pathPattern: "^exports.*$",
|
|
848
|
-
order: ["types", "require", "
|
|
850
|
+
order: ["types", "import", "require", "default"]
|
|
849
851
|
},
|
|
850
852
|
{
|
|
851
853
|
pathPattern: "^scripts$",
|
|
852
854
|
order: { type: "asc" }
|
|
853
855
|
}
|
|
856
|
+
],
|
|
857
|
+
"jsonc/sort-array-values": [
|
|
858
|
+
"error",
|
|
859
|
+
{
|
|
860
|
+
pathPattern: "^files$",
|
|
861
|
+
order: { type: "asc" }
|
|
862
|
+
}
|
|
854
863
|
]
|
|
855
864
|
}
|
|
856
865
|
}
|
|
@@ -908,6 +917,7 @@ var markdown = [
|
|
|
908
917
|
"@typescript-eslint/no-redeclare": "off",
|
|
909
918
|
"@typescript-eslint/no-unused-vars": "off",
|
|
910
919
|
"@typescript-eslint/no-var-requires": "off",
|
|
920
|
+
"@typescript-eslint/no-extraneous-class": "off",
|
|
911
921
|
"@typescript-eslint/no-use-before-define": "off",
|
|
912
922
|
"unused-imports/no-unused-imports": "off",
|
|
913
923
|
"unused-imports/no-unused-vars": "off"
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
5
|
-
"packageManager": "pnpm@8.6.
|
|
4
|
+
"version": "2.0.0-beta.13",
|
|
5
|
+
"packageManager": "pnpm@8.6.12",
|
|
6
6
|
"description": "ESLint flat config of ntnyq",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"eslint",
|
|
@@ -30,41 +30,41 @@
|
|
|
30
30
|
"eslint": "^8.30.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@eslint/js": "^8.
|
|
34
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
35
|
-
"@typescript-eslint/parser": "^6.
|
|
33
|
+
"@eslint/js": "^8.47.0",
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^6.4.0",
|
|
35
|
+
"@typescript-eslint/parser": "^6.4.0",
|
|
36
36
|
"astro-eslint-parser": "^0.14.0",
|
|
37
|
-
"eslint-config-prettier": "^
|
|
38
|
-
"eslint-define-config": "^1.
|
|
39
|
-
"eslint-plugin-astro": "^0.
|
|
37
|
+
"eslint-config-prettier": "^9.0.0",
|
|
38
|
+
"eslint-define-config": "^1.23.0",
|
|
39
|
+
"eslint-plugin-astro": "^0.28.0",
|
|
40
40
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
41
|
-
"eslint-plugin-import": "^2.
|
|
41
|
+
"eslint-plugin-import": "^2.28.0",
|
|
42
42
|
"eslint-plugin-jsonc": "^2.9.0",
|
|
43
|
-
"eslint-plugin-markdown": "^3.0.
|
|
44
|
-
"eslint-plugin-prettier": "^5.0.0
|
|
45
|
-
"eslint-plugin-react": "^7.
|
|
43
|
+
"eslint-plugin-markdown": "^3.0.1",
|
|
44
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
45
|
+
"eslint-plugin-react": "^7.33.2",
|
|
46
46
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
47
|
-
"eslint-plugin-unicorn": "^
|
|
48
|
-
"eslint-plugin-vue": "^9.
|
|
47
|
+
"eslint-plugin-unicorn": "^48.0.1",
|
|
48
|
+
"eslint-plugin-vue": "^9.17.0",
|
|
49
49
|
"eslint-plugin-yml": "^1.8.0",
|
|
50
|
-
"globals": "^13.
|
|
50
|
+
"globals": "^13.21.0",
|
|
51
51
|
"jsonc-eslint-parser": "^2.3.0",
|
|
52
52
|
"local-pkg": "^0.4.3",
|
|
53
|
-
"prettier": "^3.0.
|
|
53
|
+
"prettier": "^3.0.2",
|
|
54
54
|
"vue-eslint-parser": "^9.3.1",
|
|
55
55
|
"yaml-eslint-parser": "^1.2.2"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@ntnyq/prettier-config": "^1.
|
|
59
|
-
"@types/node": "^20.
|
|
58
|
+
"@ntnyq/prettier-config": "^1.12.4",
|
|
59
|
+
"@types/node": "^20.5.0",
|
|
60
60
|
"bumpp": "^9.1.1",
|
|
61
|
-
"eslint": "^8.
|
|
61
|
+
"eslint": "^8.47.0",
|
|
62
62
|
"husky": "^8.0.3",
|
|
63
63
|
"nano-staged": "^0.8.0",
|
|
64
64
|
"npm-run-all": "^4.1.5",
|
|
65
|
-
"pnpm": "^8.6.
|
|
65
|
+
"pnpm": "^8.6.12",
|
|
66
66
|
"rimraf": "^5.0.1",
|
|
67
|
-
"tsup": "^7.
|
|
67
|
+
"tsup": "^7.2.0",
|
|
68
68
|
"typescript": "5.1.6"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|