@lincy/eslint-config 6.1.0 → 6.3.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/dist/index.cjs +228 -166
- package/dist/index.d.cts +29 -5
- package/dist/{index.d.ts → index.d.mts} +30 -6
- package/dist/{index.js → index.mjs} +190 -150
- package/package.json +91 -81
- package/dist/chunk-DWy1uDak.cjs +0 -39
- package/dist/lib-CEKTiw7V.js +0 -11176
- package/dist/lib-DS4wQk2J.cjs +0 -11153
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lincy/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.3.0",
|
|
5
|
+
"packageManager": "pnpm@10.26.1",
|
|
5
6
|
"description": "LinCenYing's ESLint config",
|
|
6
7
|
"author": "LinCenYing <lincenying@gmail.com> (https://github.com/lincenying/)",
|
|
7
8
|
"license": "MIT",
|
|
@@ -11,16 +12,31 @@
|
|
|
11
12
|
],
|
|
12
13
|
"exports": {
|
|
13
14
|
".": {
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
}
|
|
15
|
+
"require": "./dist/index.cjs",
|
|
16
|
+
"import": "./dist/index.mjs"
|
|
17
|
+
},
|
|
18
|
+
"./package.json": "./package.json"
|
|
17
19
|
},
|
|
18
20
|
"main": "./dist/index.cjs",
|
|
19
|
-
"module": "./dist/index.
|
|
20
|
-
"types": "./dist/index.d.
|
|
21
|
+
"module": "./dist/index.mjs",
|
|
22
|
+
"types": "./dist/index.d.cts",
|
|
21
23
|
"files": [
|
|
22
24
|
"dist"
|
|
23
25
|
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "nr typegen && tsdown --format esm,cjs --clean --dts",
|
|
28
|
+
"stub": "tsdown src/index.ts --format esm",
|
|
29
|
+
"watch": "tsdown --format esm,cjs --watch",
|
|
30
|
+
"postpublish": "simple-open-url https://npmmirror.com/package/@lincy/eslint-config",
|
|
31
|
+
"prepublishOnly": "nr build",
|
|
32
|
+
"release": "bumpp && pnpm publish -r --access public",
|
|
33
|
+
"test": "vitest",
|
|
34
|
+
"typegen": "tsx scripts/typegen.ts",
|
|
35
|
+
"lint": "pnpm run stub && eslint .",
|
|
36
|
+
"lint:fix": "eslint . --fix",
|
|
37
|
+
"lint:ts": "tsc --noEmit",
|
|
38
|
+
"prepare[-del]": "npx simple-git-hooks"
|
|
39
|
+
},
|
|
24
40
|
"peerDependencies": {
|
|
25
41
|
"@eslint-react/eslint-plugin": "^2.3.5",
|
|
26
42
|
"@next/eslint-plugin-next": ">=15.0.0",
|
|
@@ -55,70 +71,76 @@
|
|
|
55
71
|
}
|
|
56
72
|
},
|
|
57
73
|
"dependencies": {
|
|
58
|
-
"@antfu/install-pkg": "
|
|
59
|
-
"@clack/prompts": "
|
|
60
|
-
"@eslint-community/eslint-plugin-eslint-comments": "
|
|
61
|
-
"@eslint/markdown": "
|
|
62
|
-
"@stylistic/eslint-plugin": "
|
|
63
|
-
"@typescript-eslint/eslint-plugin": "
|
|
64
|
-
"@typescript-eslint/parser": "
|
|
65
|
-
"@vitest/eslint-plugin": "
|
|
66
|
-
"eslint-config-flat-gitignore": "
|
|
67
|
-
"eslint-flat-config-utils": "
|
|
68
|
-
"eslint-merge-processors": "
|
|
69
|
-
"eslint-parser-plain": "
|
|
70
|
-
"eslint-plugin-antfu": "
|
|
71
|
-
"eslint-plugin-
|
|
72
|
-
"eslint-plugin-
|
|
73
|
-
"eslint-plugin-
|
|
74
|
-
"eslint-plugin-
|
|
75
|
-
"eslint-plugin-
|
|
76
|
-
"eslint-plugin-
|
|
77
|
-
"eslint-plugin-
|
|
78
|
-
"eslint-plugin-
|
|
79
|
-
"eslint-plugin-
|
|
80
|
-
"eslint-plugin-
|
|
81
|
-
"eslint-plugin-
|
|
82
|
-
"eslint-plugin-
|
|
83
|
-
"eslint-plugin-
|
|
84
|
-
"eslint-
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
74
|
+
"@antfu/install-pkg": "catalog:prod",
|
|
75
|
+
"@clack/prompts": "catalog:prod",
|
|
76
|
+
"@eslint-community/eslint-plugin-eslint-comments": "catalog:prod",
|
|
77
|
+
"@eslint/markdown": "catalog:prod",
|
|
78
|
+
"@stylistic/eslint-plugin": "catalog:prod",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "catalog:prod",
|
|
80
|
+
"@typescript-eslint/parser": "catalog:prod",
|
|
81
|
+
"@vitest/eslint-plugin": "catalog:prod",
|
|
82
|
+
"eslint-config-flat-gitignore": "catalog:prod",
|
|
83
|
+
"eslint-flat-config-utils": "catalog:prod",
|
|
84
|
+
"eslint-merge-processors": "catalog:prod",
|
|
85
|
+
"eslint-parser-plain": "catalog:prod",
|
|
86
|
+
"eslint-plugin-antfu": "catalog:prod",
|
|
87
|
+
"eslint-plugin-erasable-syntax-only": "catalog:prod",
|
|
88
|
+
"eslint-plugin-import-lite": "catalog:prod",
|
|
89
|
+
"eslint-plugin-jsdoc": "catalog:prod",
|
|
90
|
+
"eslint-plugin-jsonc": "catalog:prod",
|
|
91
|
+
"eslint-plugin-n": "catalog:prod",
|
|
92
|
+
"eslint-plugin-no-only-tests": "catalog:prod",
|
|
93
|
+
"eslint-plugin-perfectionist": "catalog:prod",
|
|
94
|
+
"eslint-plugin-pnpm": "catalog:prod",
|
|
95
|
+
"eslint-plugin-regexp": "catalog:prod",
|
|
96
|
+
"eslint-plugin-toml": "catalog:prod",
|
|
97
|
+
"eslint-plugin-unicorn": "catalog:prod",
|
|
98
|
+
"eslint-plugin-unused-imports": "catalog:prod",
|
|
99
|
+
"eslint-plugin-vue": "catalog:prod",
|
|
100
|
+
"eslint-plugin-yml": "catalog:prod",
|
|
101
|
+
"eslint-processor-vue-blocks": "catalog:prod",
|
|
102
|
+
"globals": "catalog:prod",
|
|
103
|
+
"jsonc-eslint-parser": "catalog:prod",
|
|
104
|
+
"local-pkg": "catalog:prod",
|
|
105
|
+
"toml-eslint-parser": "catalog:prod",
|
|
106
|
+
"vue-eslint-parser": "catalog:prod",
|
|
107
|
+
"yaml-eslint-parser": "catalog:prod"
|
|
91
108
|
},
|
|
92
109
|
"devDependencies": {
|
|
93
|
-
"@antfu/ni": "
|
|
94
|
-
"@eslint-react/eslint-plugin": "
|
|
95
|
-
"@eslint/config-inspector": "
|
|
96
|
-
"@
|
|
97
|
-
"@
|
|
98
|
-
"@
|
|
99
|
-
"@
|
|
100
|
-
"@types/
|
|
101
|
-
"@
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"eslint
|
|
105
|
-
"eslint-plugin-format": "
|
|
106
|
-
"eslint-plugin-react-hooks": "
|
|
107
|
-
"eslint-plugin-react-refresh": "
|
|
108
|
-
"eslint-typegen": "
|
|
109
|
-
"esno": "
|
|
110
|
-
"execa": "
|
|
111
|
-
"find-up-simple": "
|
|
112
|
-
"lint-staged": "
|
|
113
|
-
"prettier": "
|
|
114
|
-
"react": "
|
|
115
|
-
"simple-open-url": "
|
|
116
|
-
"tinyglobby": "
|
|
117
|
-
"tsdown": "
|
|
118
|
-
"typescript": "
|
|
119
|
-
"vitest": "
|
|
120
|
-
"vue": "
|
|
121
|
-
|
|
110
|
+
"@antfu/ni": "catalog:dev",
|
|
111
|
+
"@eslint-react/eslint-plugin": "catalog:peer",
|
|
112
|
+
"@eslint/config-inspector": "catalog:dev",
|
|
113
|
+
"@lincy/eslint-config": "workspace:*",
|
|
114
|
+
"@next/eslint-plugin-next": "catalog:peer",
|
|
115
|
+
"@prettier/plugin-xml": "catalog:peer",
|
|
116
|
+
"@stylistic/eslint-plugin-migrate": "catalog:dev",
|
|
117
|
+
"@types/node": "catalog:dev",
|
|
118
|
+
"@types/react": "catalog:dev",
|
|
119
|
+
"@unocss/eslint-plugin": "catalog:peer",
|
|
120
|
+
"bumpp": "catalog:dev",
|
|
121
|
+
"eslint": "catalog:peer",
|
|
122
|
+
"eslint-plugin-format": "catalog:peer",
|
|
123
|
+
"eslint-plugin-react-hooks": "catalog:peer",
|
|
124
|
+
"eslint-plugin-react-refresh": "catalog:peer",
|
|
125
|
+
"eslint-typegen": "catalog:dev",
|
|
126
|
+
"esno": "catalog:dev",
|
|
127
|
+
"execa": "catalog:test",
|
|
128
|
+
"find-up-simple": "catalog:inline",
|
|
129
|
+
"lint-staged": "catalog:dev",
|
|
130
|
+
"prettier": "catalog:dev",
|
|
131
|
+
"react": "catalog:dev",
|
|
132
|
+
"simple-open-url": "catalog:dev",
|
|
133
|
+
"tinyglobby": "catalog:test",
|
|
134
|
+
"tsdown": "catalog:dev",
|
|
135
|
+
"typescript": "catalog:dev",
|
|
136
|
+
"vitest": "catalog:test",
|
|
137
|
+
"vue": "catalog:peer"
|
|
138
|
+
},
|
|
139
|
+
"resolutions": {
|
|
140
|
+
"@eslint-community/eslint-utils": "catalog:peer",
|
|
141
|
+
"@typescript-eslint/utils": "catalog:peer",
|
|
142
|
+
"eslint": "catalog:peer",
|
|
143
|
+
"tsx": "catalog:peer"
|
|
122
144
|
},
|
|
123
145
|
"simple-git-hooks[-del]": {
|
|
124
146
|
"pre-commit": "npx lint-staged"
|
|
@@ -128,17 +150,5 @@
|
|
|
128
150
|
},
|
|
129
151
|
"publishConfig": {
|
|
130
152
|
"registry": "https://registry.npmjs.org/"
|
|
131
|
-
},
|
|
132
|
-
"scripts": {
|
|
133
|
-
"build": "nr typegen && tsdown --format esm,cjs --clean --dts",
|
|
134
|
-
"stub": "tsdown src/index.ts --format esm",
|
|
135
|
-
"watch": "tsdown --format esm,cjs --watch",
|
|
136
|
-
"release": "bumpp && pnpm publish -r --access public",
|
|
137
|
-
"test": "vitest",
|
|
138
|
-
"typegen": "tsx scripts/typegen.ts",
|
|
139
|
-
"lint": "pnpm run stub && eslint .",
|
|
140
|
-
"lint:fix": "eslint . --fix",
|
|
141
|
-
"lint:ts": "tsc --noEmit",
|
|
142
|
-
"prepare[-del]": "npx simple-git-hooks"
|
|
143
153
|
}
|
|
144
|
-
}
|
|
154
|
+
}
|
package/dist/chunk-DWy1uDak.cjs
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
13
|
-
key = keys[i];
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
-
get: ((k) => from[k]).bind(null, key),
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
22
|
-
value: mod,
|
|
23
|
-
enumerable: true
|
|
24
|
-
}) : target, mod));
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
|
|
28
|
-
Object.defineProperty(exports, '__commonJS', {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function () {
|
|
31
|
-
return __commonJS;
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
Object.defineProperty(exports, '__toESM', {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
get: function () {
|
|
37
|
-
return __toESM;
|
|
38
|
-
}
|
|
39
|
-
});
|