@nest-boot/eslint-config 7.0.0-beta.1 → 7.0.0-beta.3
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/CHANGELOG.md +16 -0
- package/{index.d.ts → eslint.config.d.ts} +1 -3
- package/{index.js → eslint.config.mjs} +23 -38
- package/package.json +14 -21
- package/tsconfig.json +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @nest-boot/eslint-config
|
|
2
2
|
|
|
3
|
+
## 7.0.0-beta.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f9c03c3: 修复 ESLint
|
|
8
|
+
- Updated dependencies [f9c03c3]
|
|
9
|
+
- @nest-boot/eslint-plugin@7.0.0-beta.3
|
|
10
|
+
|
|
11
|
+
## 7.0.0-beta.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 20f3262: fix: 重构 eslint-plugin 和移除 queue 模块
|
|
16
|
+
- Updated dependencies [20f3262]
|
|
17
|
+
- @nest-boot/eslint-plugin@7.0.0-beta.2
|
|
18
|
+
|
|
3
19
|
## 7.0.0-beta.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -1,45 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const { FlatCompat } = require("@eslint/eslintrc");
|
|
8
|
-
|
|
9
|
-
const compat = new FlatCompat({
|
|
10
|
-
baseDirectory: __dirname,
|
|
11
|
-
});
|
|
1
|
+
import js from "@eslint/js";
|
|
2
|
+
import nestBootPlugin from "@nest-boot/eslint-plugin";
|
|
3
|
+
import tsParser from "@typescript-eslint/parser";
|
|
4
|
+
import prettierConfig from "eslint-config-prettier";
|
|
5
|
+
import simpleImportSort from "eslint-plugin-simple-import-sort";
|
|
6
|
+
import tsEslint from "typescript-eslint";
|
|
12
7
|
|
|
13
8
|
/** @type {import('eslint').Linter.Config[]} */
|
|
14
|
-
|
|
9
|
+
const config = [
|
|
15
10
|
js.configs.recommended,
|
|
16
11
|
|
|
17
|
-
// 使用 FlatCompat 包装 Standard 配置
|
|
18
|
-
...compat.extends("standard"),
|
|
19
|
-
|
|
20
12
|
// TypeScript 严格类型检查配置
|
|
21
|
-
...
|
|
22
|
-
...
|
|
13
|
+
...tsEslint.configs.strictTypeChecked,
|
|
14
|
+
...tsEslint.configs.stylisticTypeChecked,
|
|
15
|
+
|
|
16
|
+
// // Prettier 配置
|
|
17
|
+
prettierConfig,
|
|
23
18
|
|
|
24
19
|
// TypeScript 和插件配置
|
|
25
20
|
{
|
|
26
|
-
files: ["**/*.{ts,tsx,js,jsx}"],
|
|
27
21
|
languageOptions: {
|
|
22
|
+
/** @type {import('eslint').Linter.Parser} */
|
|
28
23
|
parser: tsParser,
|
|
29
24
|
parserOptions: {
|
|
30
|
-
|
|
31
|
-
project: true,
|
|
32
|
-
},
|
|
33
|
-
globals: {
|
|
34
|
-
process: "readonly",
|
|
35
|
-
Buffer: "readonly",
|
|
36
|
-
__dirname: "readonly",
|
|
37
|
-
__filename: "readonly",
|
|
38
|
-
module: "readonly",
|
|
39
|
-
require: "readonly",
|
|
40
|
-
exports: "readonly",
|
|
41
|
-
global: "readonly",
|
|
42
|
-
console: "readonly",
|
|
25
|
+
project: ["tsconfig.json"],
|
|
43
26
|
},
|
|
44
27
|
},
|
|
45
28
|
plugins: {
|
|
@@ -81,13 +64,15 @@ module.exports = [
|
|
|
81
64
|
],
|
|
82
65
|
|
|
83
66
|
// NestBoot 自定义规则
|
|
84
|
-
"@nest-boot/entity-
|
|
85
|
-
"@nest-boot/entity-property-
|
|
86
|
-
"@nest-boot/
|
|
87
|
-
"@nest-boot/graphql-field-
|
|
88
|
-
"@nest-boot/
|
|
67
|
+
"@nest-boot/entity-field-definite-assignment": "error",
|
|
68
|
+
"@nest-boot/entity-property-config-from-types": "error",
|
|
69
|
+
"@nest-boot/graphql-field-definite-assignment": "error",
|
|
70
|
+
"@nest-boot/graphql-field-config-from-types": "error",
|
|
71
|
+
"@nest-boot/import-bullmq": "error",
|
|
72
|
+
"@nest-boot/import-graphql": "error",
|
|
73
|
+
"@nest-boot/import-mikro-orm": "error",
|
|
89
74
|
},
|
|
90
75
|
},
|
|
91
|
-
|
|
92
|
-
prettierConfig,
|
|
93
76
|
];
|
|
77
|
+
|
|
78
|
+
export default config;
|
package/package.json
CHANGED
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nest-boot/eslint-config",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
4
|
-
"main": "
|
|
5
|
-
"types": "
|
|
3
|
+
"version": "7.0.0-beta.3",
|
|
4
|
+
"main": "eslint.config.mjs",
|
|
5
|
+
"types": "eslint.config.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"devDependencies": {
|
|
8
8
|
"@eslint/eslintrc": "^3.3.1",
|
|
9
|
-
"@eslint/js": "^9.
|
|
10
|
-
"@nest-boot/eslint-plugin": "^7.0.0-beta.
|
|
11
|
-
"@
|
|
12
|
-
"@typescript-eslint/
|
|
13
|
-
"eslint": "^
|
|
14
|
-
"eslint
|
|
15
|
-
"eslint-config-
|
|
16
|
-
"eslint-plugin-import": "^2.31.0",
|
|
17
|
-
"eslint-plugin-n": "^17.19.0",
|
|
18
|
-
"eslint-plugin-promise": "^7.2.1",
|
|
9
|
+
"@eslint/js": "^9.36.0",
|
|
10
|
+
"@nest-boot/eslint-plugin": "^7.0.0-beta.3",
|
|
11
|
+
"@nest-boot/tsconfig": "^7.0.0-beta.1",
|
|
12
|
+
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
|
13
|
+
"@typescript-eslint/parser": "^8.44.1",
|
|
14
|
+
"eslint": "^9.36.0",
|
|
15
|
+
"eslint-config-prettier": "^10.1.8",
|
|
19
16
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
20
|
-
"typescript": "^5.
|
|
21
|
-
"typescript-eslint": "^8.
|
|
17
|
+
"typescript": "^5.9.3",
|
|
18
|
+
"typescript-eslint": "^8.46.2"
|
|
22
19
|
},
|
|
23
20
|
"peerDependencies": {
|
|
24
21
|
"@eslint/eslintrc": "^3.0.0",
|
|
@@ -27,14 +24,10 @@
|
|
|
27
24
|
"@typescript-eslint/parser": "^8.0.0",
|
|
28
25
|
"eslint": "^9.0.0",
|
|
29
26
|
"eslint-config-prettier": "^10.0.0",
|
|
30
|
-
"eslint-config-standard": "^17.0.0",
|
|
31
|
-
"eslint-plugin-import": "^2.0.0",
|
|
32
|
-
"eslint-plugin-n": "^17.0.0",
|
|
33
|
-
"eslint-plugin-promise": "^7.0.0",
|
|
34
27
|
"eslint-plugin-simple-import-sort": "^12.0.0",
|
|
35
28
|
"typescript": "^5.0.0",
|
|
36
29
|
"typescript-eslint": "^8.0.0",
|
|
37
|
-
"@nest-boot/eslint-plugin": "^7.0.0-beta.
|
|
30
|
+
"@nest-boot/eslint-plugin": "^7.0.0-beta.37.0.0-beta.3"
|
|
38
31
|
},
|
|
39
32
|
"publishConfig": {
|
|
40
33
|
"access": "public"
|
|
@@ -43,6 +36,6 @@
|
|
|
43
36
|
"extends": "../../package.json"
|
|
44
37
|
},
|
|
45
38
|
"scripts": {
|
|
46
|
-
"clean": "rm -rf node_modules"
|
|
39
|
+
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
|
47
40
|
}
|
|
48
41
|
}
|
package/tsconfig.json
ADDED