@daopk/eslint-config 0.5.0 → 0.5.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.
@@ -1,6 +1,6 @@
1
1
  import { n as Options, t as LinterConfig } from "../types-BBjqzb35.mjs";
2
2
 
3
3
  //#region src/presets/nestjs.d.ts
4
- declare function presetNestjs(options?: Options): Promise<LinterConfig[]>;
4
+ declare function presetNestjs(options?: Options, ...userConfigs: LinterConfig[]): Promise<LinterConfig[]>;
5
5
  //#endregion
6
6
  export { presetNestjs };
@@ -1,19 +1,19 @@
1
1
  import { t as daopk } from "../src-BEal04_4.mjs";
2
2
 
3
3
  //#region src/presets/nestjs.ts
4
- async function presetNestjs(options = {}) {
4
+ async function presetNestjs(options = {}, ...userConfigs) {
5
5
  return daopk({
6
6
  stylistic: {
7
7
  semi: true,
8
8
  jsx: false,
9
9
  ...options.stylistic
10
10
  },
11
- rules: {
12
- "typescript/consistent-type-imports": ["warn", { prefer: "no-type-imports" }],
13
- ...options.rules
14
- },
15
11
  ...options
16
- });
12
+ }, {
13
+ name: "daopk/typescript/nestjs",
14
+ files: ["**/*.ts"],
15
+ rules: { "typescript/consistent-type-imports": ["warn", { prefer: "no-type-imports" }] }
16
+ }, ...userConfigs);
17
17
  }
18
18
 
19
19
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@daopk/eslint-config",
3
3
  "type": "module",
4
- "version": "0.5.0",
4
+ "version": "0.5.2",
5
5
  "license": "ISC",
6
6
  "repository": "github:daopk/eslint-config",
7
7
  "exports": {
@@ -28,7 +28,8 @@
28
28
  "eslint-plugin-unused-imports": "^4.3.0",
29
29
  "eslint-plugin-vue": "^10.5.1",
30
30
  "globals": "^16.5.0",
31
- "local-pkg": "^1.1.2"
31
+ "local-pkg": "^1.1.2",
32
+ "vue-eslint-parser": "^10.2.0"
32
33
  },
33
34
  "devDependencies": {
34
35
  "@eslint/config-inspector": "^1.3.0",