@nest-boot/eslint-config 7.0.0 → 7.0.2

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @nest-boot/eslint-config
2
2
 
3
+ ## 7.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - d663833: fix: eslint
8
+
9
+ ## 7.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - b7bfd4b: fix: @typescript-eslint/no-misused-spread off
14
+
3
15
  ## 7.0.0
4
16
 
5
17
  ### Major Changes
package/eslint.config.mjs CHANGED
@@ -22,7 +22,7 @@ const config = [
22
22
  /** @type {import('eslint').Linter.Parser} */
23
23
  parser: tsParser,
24
24
  parserOptions: {
25
- project: ["tsconfig.json"],
25
+ projectService: true,
26
26
  },
27
27
  },
28
28
  plugins: {
@@ -44,24 +44,25 @@ const config = [
44
44
  "@typescript-eslint/no-unused-expressions": "off",
45
45
 
46
46
  // TypeScript 规则
47
- "@typescript-eslint/return-await": ["error", "always"],
48
- "@typescript-eslint/restrict-plus-operands": "error",
49
- "@typescript-eslint/no-unsafe-assignment": "off",
50
- "@typescript-eslint/no-unsafe-argument": "off",
51
- "@typescript-eslint/no-unsafe-member-access": "off",
52
- "@typescript-eslint/no-unsafe-call": "off",
53
- "@typescript-eslint/no-unsafe-return": "off",
54
- "@typescript-eslint/no-unnecessary-condition": "off",
55
- "@typescript-eslint/no-extraneous-class": "off",
56
- "@typescript-eslint/no-explicit-any": "off",
57
47
  "@typescript-eslint/no-empty-function": [
58
48
  "error",
59
49
  { allow: ["constructors"] },
60
50
  ],
51
+ "@typescript-eslint/no-explicit-any": "off",
52
+ "@typescript-eslint/no-extraneous-class": "off",
53
+ "@typescript-eslint/no-misused-spread": "off",
54
+ "@typescript-eslint/no-unnecessary-condition": "off",
55
+ "@typescript-eslint/no-unsafe-argument": "off",
56
+ "@typescript-eslint/no-unsafe-assignment": "off",
57
+ "@typescript-eslint/no-unsafe-call": "off",
58
+ "@typescript-eslint/no-unsafe-member-access": "off",
59
+ "@typescript-eslint/no-unsafe-return": "off",
61
60
  "@typescript-eslint/no-unused-vars": [
62
61
  "error",
63
62
  { argsIgnorePattern: "^_" },
64
63
  ],
64
+ "@typescript-eslint/restrict-plus-operands": "error",
65
+ "@typescript-eslint/return-await": ["error", "always"],
65
66
 
66
67
  // NestBoot 自定义规则
67
68
  "@nest-boot/entity-field-definite-assignment": "error",
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@nest-boot/eslint-config",
3
- "version": "7.0.0",
3
+ "version": "7.0.2",
4
4
  "main": "eslint.config.mjs",
5
5
  "types": "eslint.config.d.ts",
6
6
  "license": "MIT",
7
7
  "devDependencies": {
8
8
  "@eslint/eslintrc": "^3.3.1",
9
9
  "@eslint/js": "^9.36.0",
10
- "@nest-boot/eslint-plugin": "^7.0.0",
11
- "@nest-boot/tsconfig": "^7.0.0",
12
10
  "@typescript-eslint/eslint-plugin": "^8.44.1",
13
11
  "@typescript-eslint/parser": "^8.44.1",
14
12
  "eslint": "^9.36.0",
15
13
  "eslint-config-prettier": "^10.1.8",
16
14
  "eslint-plugin-simple-import-sort": "^12.1.1",
17
15
  "typescript": "^5.9.3",
18
- "typescript-eslint": "^8.46.2"
16
+ "typescript-eslint": "^8.46.2",
17
+ "@nest-boot/eslint-plugin": "^7.0.2",
18
+ "@nest-boot/tsconfig": "^7.0.0"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "@eslint/eslintrc": "^3.0.0",
@@ -27,7 +27,7 @@
27
27
  "eslint-plugin-simple-import-sort": "^12.0.0",
28
28
  "typescript": "^5.0.0",
29
29
  "typescript-eslint": "^8.0.0",
30
- "@nest-boot/eslint-plugin": "^7.0.07.0.0"
30
+ "@nest-boot/eslint-plugin": "^7.0.27.0.0"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"