@aiou/eslint-config 0.11.2 → 1.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/README.md +24 -22
- package/dist/index.cjs +4366 -0
- package/dist/index.mjs +4364 -0
- package/dts/configs/comments.d.ts +2 -0
- package/dts/configs/ignores.d.ts +2 -0
- package/dts/configs/imports.d.ts +2 -0
- package/dts/configs/javascript.d.ts +2 -0
- package/dts/configs/jsonc.d.ts +2 -0
- package/dts/configs/markdown.d.ts +2 -0
- package/dts/configs/next.d.ts +2 -0
- package/dts/configs/progress.d.ts +2 -0
- package/dts/configs/react.d.ts +2 -0
- package/dts/configs/tailwindcss.d.ts +2 -0
- package/dts/configs/typescript.d.ts +2 -0
- package/dts/configs/unicorn.d.ts +2 -0
- package/dts/configs/yml.d.ts +2 -0
- package/dts/globs.d.ts +15 -0
- package/dts/index.d.ts +2 -0
- package/package.json +64 -6
- package/index.js +0 -8
package/dts/globs.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const GLOB_SCRIPT_EXT = "?([cm])[jt]s?(x)";
|
|
2
|
+
export declare const GLOB_TEST_SCRIPT = "**/*.{spec,test}.?([cm])[jt]s?(x)";
|
|
3
|
+
export declare const GLOB_TEST_DIRS = "**/{test,tests,__test__,__tests__}/**";
|
|
4
|
+
export declare const GLOB_DTS = "**/*.d.ts";
|
|
5
|
+
export declare const GLOB_TS = "**/*.?([cm])ts";
|
|
6
|
+
export declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
7
|
+
export declare const GLOB_JS = "**/*.?([cm])js";
|
|
8
|
+
export declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
9
|
+
export declare const GLOB_JSON = "**/*.json";
|
|
10
|
+
export declare const GLOB_JSON5 = "**/*.json5";
|
|
11
|
+
export declare const GLOB_JSONC = "**/*.jsonc";
|
|
12
|
+
export declare const GLOB_MARKDOWN = "**/*.md";
|
|
13
|
+
export declare const GLOB_VUE = "**/*.vue";
|
|
14
|
+
export declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
15
|
+
export declare const GLOB_WORKFLOW_YAML = "**/.github/**/*.y?(a)ml";
|
package/dts/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiou/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "eslint config for aiou template",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=16"
|
|
9
|
+
},
|
|
7
10
|
"author": "JW <jiangweixian1994@gmail.com> (https://github.com/jiangweixian/)",
|
|
8
11
|
"files": [
|
|
9
|
-
"
|
|
12
|
+
"dist",
|
|
13
|
+
"dts"
|
|
10
14
|
],
|
|
11
|
-
"
|
|
15
|
+
"exports": {
|
|
16
|
+
"./package.json": "./package.json",
|
|
17
|
+
".": {
|
|
18
|
+
"import": "./dist/index.mjs",
|
|
19
|
+
"require": "./dist/index.cjs"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"main": "dist/index.cjs",
|
|
23
|
+
"module": "dist/index.mjs",
|
|
24
|
+
"types": "dts/index.d.ts",
|
|
12
25
|
"publishConfig": {
|
|
13
26
|
"access": "public"
|
|
14
27
|
},
|
|
@@ -16,11 +29,56 @@
|
|
|
16
29
|
"eslint": ">=7.4.0 || ^8"
|
|
17
30
|
},
|
|
18
31
|
"dependencies": {
|
|
19
|
-
"@
|
|
20
|
-
"@
|
|
32
|
+
"@next/eslint-plugin-next": "^13.1.4",
|
|
33
|
+
"@typescript-eslint/eslint-plugin": "^6.9.0",
|
|
34
|
+
"@typescript-eslint/parser": "^6.9.0",
|
|
35
|
+
"eslint-define-config": "^1.24.1",
|
|
36
|
+
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
37
|
+
"eslint-plugin-etc": "^2.0.3",
|
|
38
|
+
"eslint-plugin-i": "^2.28.1",
|
|
39
|
+
"eslint-plugin-import-newlines": "^1.3.0",
|
|
40
|
+
"eslint-plugin-jsonc": "^2.5.0",
|
|
41
|
+
"eslint-plugin-markdown": "^3.0.0",
|
|
42
|
+
"eslint-plugin-n": "^16.2.0",
|
|
43
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
44
|
+
"eslint-plugin-react": "^7.31.10",
|
|
45
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
46
|
+
"eslint-plugin-react-refresh": "^0.4.3",
|
|
47
|
+
"eslint-plugin-regexp": "^2.1.1",
|
|
48
|
+
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
49
|
+
"eslint-plugin-ssr-friendly": "^1.2.0",
|
|
50
|
+
"eslint-plugin-tailwindcss": "^3.8.0",
|
|
51
|
+
"eslint-plugin-unicorn": "^48.0.1",
|
|
52
|
+
"eslint-plugin-unused-imports": "^3.0.0",
|
|
53
|
+
"eslint-plugin-yml": "^1.10.0",
|
|
54
|
+
"globals": "^13.23.0",
|
|
55
|
+
"jsonc-eslint-parser": "^2.4.0",
|
|
56
|
+
"local-pkg": "^0.4.3",
|
|
57
|
+
"yaml-eslint-parser": "^1.2.2",
|
|
58
|
+
"@aiou/eslint-ignore": "0.4.0",
|
|
21
59
|
"@aiou/eslint-plugin-progress": "0.3.1"
|
|
22
60
|
},
|
|
23
61
|
"devDependencies": {
|
|
24
|
-
"
|
|
62
|
+
"@rollup/plugin-alias": "4.0.3",
|
|
63
|
+
"@rollup/plugin-commonjs": "24.0.1",
|
|
64
|
+
"@rollup/plugin-json": "^6.0.1",
|
|
65
|
+
"@rollup/plugin-node-resolve": "15.0.1",
|
|
66
|
+
"@types/lodash-es": "^4.17.10",
|
|
67
|
+
"@types/node": "^20.8.7",
|
|
68
|
+
"eslint": "^8.26.0",
|
|
69
|
+
"eslint-config-standard": "17.1.0",
|
|
70
|
+
"lodash-es": "^4.17.21",
|
|
71
|
+
"publish-police": "^0.2.1",
|
|
72
|
+
"rollup": "3.19.1",
|
|
73
|
+
"rollup-plugin-condition-exports": "1.3.1",
|
|
74
|
+
"rollup-plugin-esbuild": "^5.0.0",
|
|
75
|
+
"rollup-plugin-filesize": "9.1.2",
|
|
76
|
+
"rollup-plugin-node-externals": "5.1.2"
|
|
77
|
+
},
|
|
78
|
+
"scripts": {
|
|
79
|
+
"dev": "rollup -c -w",
|
|
80
|
+
"build": "pnpm run build:lib && pnpm run build:dts",
|
|
81
|
+
"build:lib": "rollup -c",
|
|
82
|
+
"build:dts": "tsc -p tsconfig.dts.json"
|
|
25
83
|
}
|
|
26
84
|
}
|