@kirklin/eslint-config 1.1.1 → 2.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/bin/index.js +0 -0
- package/dist/cli.cjs +5 -5
- package/dist/cli.js +5 -5
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +25 -23
package/bin/index.js
CHANGED
|
File without changes
|
package/dist/cli.cjs
CHANGED
|
@@ -46,7 +46,7 @@ var import_parse_gitignore = __toESM(require("parse-gitignore"), 1);
|
|
|
46
46
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
47
47
|
|
|
48
48
|
// package.json
|
|
49
|
-
var version = "
|
|
49
|
+
var version = "2.0.0";
|
|
50
50
|
var devDependencies = {
|
|
51
51
|
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
52
52
|
"@antfu/ni": "^0.21.12",
|
|
@@ -54,13 +54,13 @@ var devDependencies = {
|
|
|
54
54
|
"@stylistic/eslint-plugin-migrate": "^1.5.1",
|
|
55
55
|
"@types/eslint": "^8.56.0",
|
|
56
56
|
"@types/fs-extra": "^11.0.4",
|
|
57
|
-
"@types/node": "^20.10.
|
|
57
|
+
"@types/node": "^20.10.6",
|
|
58
58
|
"@types/prompts": "^2.4.9",
|
|
59
59
|
"@types/yargs": "^17.0.32",
|
|
60
|
-
"@unocss/eslint-plugin": "^0.58.
|
|
60
|
+
"@unocss/eslint-plugin": "^0.58.2",
|
|
61
61
|
bumpp: "^9.2.1",
|
|
62
62
|
eslint: "npm:eslint-ts-patch@^8.56.0-0",
|
|
63
|
-
"eslint-flat-config-viewer": "^0.1.
|
|
63
|
+
"eslint-flat-config-viewer": "^0.1.4",
|
|
64
64
|
"eslint-plugin-format": "^0.1.0",
|
|
65
65
|
"eslint-plugin-react": "^7.33.2",
|
|
66
66
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
@@ -78,7 +78,7 @@ var devDependencies = {
|
|
|
78
78
|
tsup: "^8.0.1",
|
|
79
79
|
typescript: "^5.3.3",
|
|
80
80
|
vitest: "^1.1.0",
|
|
81
|
-
vue: "^3.3
|
|
81
|
+
vue: "^3.4.3"
|
|
82
82
|
};
|
|
83
83
|
|
|
84
84
|
// src/cli/constants.ts
|
package/dist/cli.js
CHANGED
|
@@ -17,7 +17,7 @@ import parse from "parse-gitignore";
|
|
|
17
17
|
import c from "picocolors";
|
|
18
18
|
|
|
19
19
|
// package.json
|
|
20
|
-
var version = "
|
|
20
|
+
var version = "2.0.0";
|
|
21
21
|
var devDependencies = {
|
|
22
22
|
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
23
23
|
"@antfu/ni": "^0.21.12",
|
|
@@ -25,13 +25,13 @@ var devDependencies = {
|
|
|
25
25
|
"@stylistic/eslint-plugin-migrate": "^1.5.1",
|
|
26
26
|
"@types/eslint": "^8.56.0",
|
|
27
27
|
"@types/fs-extra": "^11.0.4",
|
|
28
|
-
"@types/node": "^20.10.
|
|
28
|
+
"@types/node": "^20.10.6",
|
|
29
29
|
"@types/prompts": "^2.4.9",
|
|
30
30
|
"@types/yargs": "^17.0.32",
|
|
31
|
-
"@unocss/eslint-plugin": "^0.58.
|
|
31
|
+
"@unocss/eslint-plugin": "^0.58.2",
|
|
32
32
|
bumpp: "^9.2.1",
|
|
33
33
|
eslint: "npm:eslint-ts-patch@^8.56.0-0",
|
|
34
|
-
"eslint-flat-config-viewer": "^0.1.
|
|
34
|
+
"eslint-flat-config-viewer": "^0.1.4",
|
|
35
35
|
"eslint-plugin-format": "^0.1.0",
|
|
36
36
|
"eslint-plugin-react": "^7.33.2",
|
|
37
37
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
@@ -49,7 +49,7 @@ var devDependencies = {
|
|
|
49
49
|
tsup: "^8.0.1",
|
|
50
50
|
typescript: "^5.3.3",
|
|
51
51
|
vitest: "^1.1.0",
|
|
52
|
-
vue: "^3.3
|
|
52
|
+
vue: "^3.4.3"
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
// src/cli/constants.ts
|
package/dist/index.cjs
CHANGED
|
@@ -225,7 +225,7 @@ async function imports(options = {}) {
|
|
|
225
225
|
"import/no-webpack-loader-syntax": "error",
|
|
226
226
|
"import/order": "error",
|
|
227
227
|
"kirklin/import-dedupe": "error",
|
|
228
|
-
|
|
228
|
+
"kirklin/no-import-dist": "error",
|
|
229
229
|
"kirklin/no-import-node-modules-by-path": "error",
|
|
230
230
|
...stylistic2 ? {
|
|
231
231
|
"import/newline-after-import": ["error", { considerComments: true, count: 1 }]
|
|
@@ -236,7 +236,7 @@ async function imports(options = {}) {
|
|
|
236
236
|
files: ["**/bin/**/*", `**/bin.${GLOB_SRC_EXT}`],
|
|
237
237
|
name: "kirklin:imports:bin",
|
|
238
238
|
rules: {
|
|
239
|
-
|
|
239
|
+
"kirklin/no-import-dist": "off",
|
|
240
240
|
"kirklin/no-import-node-modules-by-path": "off"
|
|
241
241
|
}
|
|
242
242
|
}
|
package/dist/index.js
CHANGED
|
@@ -132,7 +132,7 @@ async function imports(options = {}) {
|
|
|
132
132
|
"import/no-webpack-loader-syntax": "error",
|
|
133
133
|
"import/order": "error",
|
|
134
134
|
"kirklin/import-dedupe": "error",
|
|
135
|
-
|
|
135
|
+
"kirklin/no-import-dist": "error",
|
|
136
136
|
"kirklin/no-import-node-modules-by-path": "error",
|
|
137
137
|
...stylistic2 ? {
|
|
138
138
|
"import/newline-after-import": ["error", { considerComments: true, count: 1 }]
|
|
@@ -143,7 +143,7 @@ async function imports(options = {}) {
|
|
|
143
143
|
files: ["**/bin/**/*", `**/bin.${GLOB_SRC_EXT}`],
|
|
144
144
|
name: "kirklin:imports:bin",
|
|
145
145
|
rules: {
|
|
146
|
-
|
|
146
|
+
"kirklin/no-import-dist": "off",
|
|
147
147
|
"kirklin/no-import-node-modules-by-path": "off"
|
|
148
148
|
}
|
|
149
149
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kirklin/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
5
|
-
"packageManager": "pnpm@8.
|
|
4
|
+
"version": "2.0.0",
|
|
5
|
+
"packageManager": "pnpm@8.13.1",
|
|
6
6
|
"description": "Kirk Lin's ESLint config",
|
|
7
7
|
"author": "Kirk Lin (https://github.com/kirklin/)",
|
|
8
8
|
"license": "MIT",
|
|
@@ -24,6 +24,19 @@
|
|
|
24
24
|
"bin",
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "tsup --format esm,cjs --clean --dts",
|
|
29
|
+
"stub": "tsup --format esm",
|
|
30
|
+
"dev": "tsup --format esm,cjs --watch & eslint-flat-config-viewer",
|
|
31
|
+
"watch": "tsup --format esm,cjs --watch",
|
|
32
|
+
"lint": "eslint .",
|
|
33
|
+
"lint:fix": "eslint . --fix",
|
|
34
|
+
"prepack": "nr build",
|
|
35
|
+
"release": "bumpp && pnpm publish",
|
|
36
|
+
"test": "vitest",
|
|
37
|
+
"typecheck": "tsc --noEmit",
|
|
38
|
+
"prepare": "simple-git-hooks"
|
|
39
|
+
},
|
|
27
40
|
"peerDependencies": {
|
|
28
41
|
"@unocss/eslint-plugin": ">=0.50.0",
|
|
29
42
|
"eslint": ">=8.40.0",
|
|
@@ -60,7 +73,7 @@
|
|
|
60
73
|
"dependencies": {
|
|
61
74
|
"@antfu/eslint-define-config": "^1.23.0-2",
|
|
62
75
|
"@antfu/install-pkg": "^0.3.1",
|
|
63
|
-
"@eslint-types/jsdoc": "46.
|
|
76
|
+
"@eslint-types/jsdoc": "46.9.1",
|
|
64
77
|
"@eslint-types/typescript-eslint": "^6.16.0",
|
|
65
78
|
"@eslint-types/unicorn": "^50.0.1",
|
|
66
79
|
"@stylistic/eslint-plugin": "^1.5.1",
|
|
@@ -70,11 +83,11 @@
|
|
|
70
83
|
"eslint-merge-processors": "^0.1.0",
|
|
71
84
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
72
85
|
"eslint-plugin-i": "^2.29.1",
|
|
73
|
-
"eslint-plugin-jsdoc": "^46.
|
|
86
|
+
"eslint-plugin-jsdoc": "^46.10.1",
|
|
74
87
|
"eslint-plugin-jsonc": "^2.11.2",
|
|
75
|
-
"eslint-plugin-kirklin": "^1.
|
|
88
|
+
"eslint-plugin-kirklin": "^1.1.0",
|
|
76
89
|
"eslint-plugin-markdown": "^3.0.1",
|
|
77
|
-
"eslint-plugin-n": "^16.
|
|
90
|
+
"eslint-plugin-n": "^16.6.0",
|
|
78
91
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
79
92
|
"eslint-plugin-perfectionist": "^2.5.0",
|
|
80
93
|
"eslint-plugin-toml": "^0.8.0",
|
|
@@ -98,16 +111,17 @@
|
|
|
98
111
|
"devDependencies": {
|
|
99
112
|
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
100
113
|
"@antfu/ni": "^0.21.12",
|
|
114
|
+
"@kirklin/eslint-config": "workspace:*",
|
|
101
115
|
"@stylistic/eslint-plugin-migrate": "^1.5.1",
|
|
102
116
|
"@types/eslint": "^8.56.0",
|
|
103
117
|
"@types/fs-extra": "^11.0.4",
|
|
104
|
-
"@types/node": "^20.10.
|
|
118
|
+
"@types/node": "^20.10.6",
|
|
105
119
|
"@types/prompts": "^2.4.9",
|
|
106
120
|
"@types/yargs": "^17.0.32",
|
|
107
|
-
"@unocss/eslint-plugin": "^0.58.
|
|
121
|
+
"@unocss/eslint-plugin": "^0.58.2",
|
|
108
122
|
"bumpp": "^9.2.1",
|
|
109
123
|
"eslint": "npm:eslint-ts-patch@^8.56.0-0",
|
|
110
|
-
"eslint-flat-config-viewer": "^0.1.
|
|
124
|
+
"eslint-flat-config-viewer": "^0.1.4",
|
|
111
125
|
"eslint-plugin-format": "^0.1.0",
|
|
112
126
|
"eslint-plugin-react": "^7.33.2",
|
|
113
127
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
@@ -125,24 +139,12 @@
|
|
|
125
139
|
"tsup": "^8.0.1",
|
|
126
140
|
"typescript": "^5.3.3",
|
|
127
141
|
"vitest": "^1.1.0",
|
|
128
|
-
"vue": "^3.3
|
|
129
|
-
"@kirklin/eslint-config": "1.1.1"
|
|
142
|
+
"vue": "^3.4.3"
|
|
130
143
|
},
|
|
131
144
|
"simple-git-hooks": {
|
|
132
145
|
"pre-commit": "pnpm lint-staged"
|
|
133
146
|
},
|
|
134
147
|
"lint-staged": {
|
|
135
148
|
"*": "eslint --fix"
|
|
136
|
-
},
|
|
137
|
-
"scripts": {
|
|
138
|
-
"build": "tsup --format esm,cjs --clean --dts",
|
|
139
|
-
"stub": "tsup --format esm",
|
|
140
|
-
"dev": "tsup --format esm,cjs --watch & eslint-flat-config-viewer",
|
|
141
|
-
"watch": "tsup --format esm,cjs --watch",
|
|
142
|
-
"lint": "eslint .",
|
|
143
|
-
"lint:fix": "eslint . --fix",
|
|
144
|
-
"release": "bumpp && pnpm publish",
|
|
145
|
-
"test": "vitest",
|
|
146
|
-
"typecheck": "tsc --noEmit"
|
|
147
149
|
}
|
|
148
|
-
}
|
|
150
|
+
}
|