@jiakun-zhao/eslint-config 3.1.0 → 4.0.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/README.md +0 -2
- package/dist/index.d.mts +13776 -2
- package/dist/index.d.ts +13776 -2
- package/dist/index.mjs +984 -20
- package/package.json +40 -15
- package/dist/index.cjs +0 -33
- package/dist/index.d.cts +0 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jiakun-zhao/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.1",
|
|
5
5
|
"description": "Jiakun's ESLint config.",
|
|
6
6
|
"author": "Jiakun Zhao <hi@zhaojiakun.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -11,41 +11,66 @@
|
|
|
11
11
|
],
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"types": "./dist/index.d.ts",
|
|
15
14
|
"import": "./dist/index.mjs",
|
|
16
|
-
"
|
|
15
|
+
"types": "./dist/index.d.ts"
|
|
17
16
|
}
|
|
18
17
|
},
|
|
19
|
-
"main": "./dist/index.
|
|
18
|
+
"main": "./dist/index.mjs",
|
|
20
19
|
"module": "./dist/index.mjs",
|
|
21
20
|
"types": "./dist/index.d.ts",
|
|
22
21
|
"files": [
|
|
23
22
|
"dist"
|
|
24
23
|
],
|
|
25
24
|
"peerDependencies": {
|
|
26
|
-
"eslint": "
|
|
27
|
-
"eslint-plugin-astro": "^
|
|
25
|
+
"eslint": "^9.0.0",
|
|
26
|
+
"eslint-plugin-astro": "^1.3.1",
|
|
27
|
+
"eslint-plugin-vue": "^10.0.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependenciesMeta": {
|
|
30
30
|
"eslint-plugin-astro": {
|
|
31
31
|
"optional": true
|
|
32
|
+
},
|
|
33
|
+
"eslint-plugin-vue": {
|
|
34
|
+
"optional": true
|
|
32
35
|
}
|
|
33
36
|
},
|
|
34
37
|
"dependencies": {
|
|
35
|
-
"@
|
|
36
|
-
"
|
|
38
|
+
"@stylistic/eslint-plugin": "^4.2.0",
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "^8.30.1",
|
|
40
|
+
"eslint-config-flat-gitignore": "^2.1.0",
|
|
41
|
+
"eslint-flat-config-utils": "^2.0.1",
|
|
42
|
+
"eslint-plugin-antfu": "^3.1.1",
|
|
43
|
+
"eslint-plugin-command": "^3.2.0",
|
|
44
|
+
"eslint-plugin-import-x": "^4.10.5",
|
|
45
|
+
"eslint-plugin-jsonc": "^2.20.0",
|
|
46
|
+
"eslint-plugin-perfectionist": "^4.11.0",
|
|
47
|
+
"eslint-plugin-regexp": "^2.7.0",
|
|
48
|
+
"eslint-plugin-unicorn": "^58.0.0",
|
|
49
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
50
|
+
"globals": "^16.0.0"
|
|
37
51
|
},
|
|
38
52
|
"devDependencies": {
|
|
39
|
-
"@
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"typescript": "^
|
|
44
|
-
"
|
|
53
|
+
"@eslint/config-inspector": "^1.0.2",
|
|
54
|
+
"@eslint/core": "^0.13.0",
|
|
55
|
+
"@jiakun-zhao/utils": "^1.3.1",
|
|
56
|
+
"@types/node": "^22.14.1",
|
|
57
|
+
"@typescript-eslint/types": "^8.30.1",
|
|
58
|
+
"bumpp": "^10.1.0",
|
|
59
|
+
"eslint": "^9.24.0",
|
|
60
|
+
"eslint-plugin-astro": "^1.3.1",
|
|
61
|
+
"eslint-plugin-vue": "^10.0.0",
|
|
62
|
+
"eslint-typegen": "^2.1.0",
|
|
63
|
+
"eslint-vitest-rule-tester": "^2.2.0",
|
|
64
|
+
"tsx": "^4.19.3",
|
|
65
|
+
"typescript": "^5.8.3",
|
|
66
|
+
"unbuild": "^3.5.0",
|
|
67
|
+
"vitest": "^3.1.1"
|
|
45
68
|
},
|
|
46
69
|
"scripts": {
|
|
47
70
|
"build": "unbuild",
|
|
71
|
+
"dev": "config-inspector --open=false",
|
|
48
72
|
"release": "bumpp && pnpm publish && npx cnpm sync @jiakun-zhao/eslint-config",
|
|
49
|
-
"stub": "unbuild --stub"
|
|
73
|
+
"stub": "unbuild --stub",
|
|
74
|
+
"test": "vitest"
|
|
50
75
|
}
|
|
51
76
|
}
|
package/dist/index.cjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const antfu = require('@antfu/eslint-config');
|
|
4
|
-
const localPkg = require('local-pkg');
|
|
5
|
-
|
|
6
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
7
|
-
|
|
8
|
-
const antfu__default = /*#__PURE__*/_interopDefaultCompat(antfu);
|
|
9
|
-
|
|
10
|
-
const index = antfu__default({
|
|
11
|
-
stylistic: {
|
|
12
|
-
overrides: {
|
|
13
|
-
"no-console": "warn",
|
|
14
|
-
// typescript
|
|
15
|
-
"ts/ban-ts-comment": "off",
|
|
16
|
-
// unused-imports
|
|
17
|
-
"unused-imports/no-unused-imports": "warn",
|
|
18
|
-
// jsx
|
|
19
|
-
"style/jsx-quotes": ["off", "prefer-single"],
|
|
20
|
-
"style/jsx-one-expression-per-line": "off"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
vue: {
|
|
24
|
-
overrides: {
|
|
25
|
-
"vue/html-self-closing": "off",
|
|
26
|
-
"vue/singleline-html-element-content-newline": "off",
|
|
27
|
-
"vue/static-class-names-order": "warn"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
astro: localPkg.isPackageExists("eslint-plugin-astro")
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
module.exports = index;
|
package/dist/index.d.cts
DELETED