@nest-boot/eslint-config 7.0.0-beta.2 → 7.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/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @nest-boot/eslint-config
2
2
 
3
+ ## 7.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 14895ac: ESLint 升级到 v9
8
+
9
+ ### Patch Changes
10
+
11
+ - 20f3262: fix: 重构 eslint-plugin 和移除 queue 模块
12
+ - b5e6548: 重新发布版本
13
+ - f9c03c3: 修复 ESLint
14
+ - Updated dependencies [20f3262]
15
+ - Updated dependencies [b5e6548]
16
+ - Updated dependencies [f9c03c3]
17
+ - Updated dependencies [14895ac]
18
+ - @nest-boot/eslint-plugin@7.0.0
19
+
20
+ ## 7.0.0-beta.3
21
+
22
+ ### Patch Changes
23
+
24
+ - f9c03c3: 修复 ESLint
25
+ - Updated dependencies [f9c03c3]
26
+ - @nest-boot/eslint-plugin@7.0.0-beta.3
27
+
3
28
  ## 7.0.0-beta.2
4
29
 
5
30
  ### Patch Changes
@@ -1,5 +1,3 @@
1
- import { Linter } from "eslint";
2
-
1
+ import type { Linter } from "eslint";
3
2
  declare const config: Linter.Config[];
4
-
5
3
  export default config;
@@ -1,46 +1,29 @@
1
- const js = require("@eslint/js");
2
- const tsParser = require("@typescript-eslint/parser");
3
- const tseslint = require("typescript-eslint");
4
- const nestBootPlugin = require("@nest-boot/eslint-plugin");
5
- const simpleImportSort = require("eslint-plugin-simple-import-sort");
6
- const prettierConfig = require("eslint-config-prettier");
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
- module.exports = [
9
+ const config = [
15
10
  js.configs.recommended,
16
11
 
17
- // 使用 FlatCompat 包装 Standard 配置
18
- ...compat.extends("standard"),
19
-
20
12
  // TypeScript 严格类型检查配置
21
- ...tseslint.configs.strictTypeChecked,
22
- ...tseslint.configs.stylisticTypeChecked,
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
- sourceType: "module",
31
25
  project: ["tsconfig.json"],
32
26
  },
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",
43
- },
44
27
  },
45
28
  plugins: {
46
29
  "@nest-boot": nestBootPlugin,
@@ -90,6 +73,6 @@ module.exports = [
90
73
  "@nest-boot/import-mikro-orm": "error",
91
74
  },
92
75
  },
93
-
94
- prettierConfig,
95
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.2",
4
- "main": "index.js",
5
- "types": "index.d.ts",
3
+ "version": "7.0.0",
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
9
  "@eslint/js": "^9.36.0",
10
- "@nest-boot/eslint-plugin": "^7.0.0-beta.2",
10
+ "@nest-boot/eslint-plugin": "^7.0.0",
11
+ "@nest-boot/tsconfig": "^7.0.0",
11
12
  "@typescript-eslint/eslint-plugin": "^8.44.1",
12
13
  "@typescript-eslint/parser": "^8.44.1",
13
14
  "eslint": "^9.36.0",
14
15
  "eslint-config-prettier": "^10.1.8",
15
- "eslint-config-standard": "^17.1.0",
16
- "eslint-plugin-import": "^2.32.0",
17
- "eslint-plugin-n": "^17.23.1",
18
- "eslint-plugin-promise": "^7.2.1",
19
16
  "eslint-plugin-simple-import-sort": "^12.1.1",
20
- "typescript": "^5.9.2",
21
- "typescript-eslint": "^8.44.1"
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.27.0.0-beta.2"
30
+ "@nest-boot/eslint-plugin": "^7.0.07.0.0"
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
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "@nest-boot/tsconfig/library.json"
3
+ }