@lark-apaas/fullstack-presets 1.0.11 → 1.0.12
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.
|
@@ -28,8 +28,12 @@ export declare const eslintPresets: {
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
rules: any;
|
|
31
|
-
} | import("typescript-eslint/dist/compatibility-types").CompatibleConfig
|
|
31
|
+
} | import("typescript-eslint/dist/compatibility-types").CompatibleConfig | {
|
|
32
|
+
ignores: string[];
|
|
33
|
+
})[];
|
|
32
34
|
server: ({
|
|
33
35
|
readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
|
|
34
|
-
} | import("typescript-eslint/dist/compatibility-types").CompatibleConfig
|
|
36
|
+
} | import("typescript-eslint/dist/compatibility-types").CompatibleConfig | {
|
|
37
|
+
ignores: string[];
|
|
38
|
+
})[];
|
|
35
39
|
};
|
|
@@ -9,15 +9,19 @@ const eslint_server_1 = __importDefault(require("./eslint-server"));
|
|
|
9
9
|
const js_1 = __importDefault(require("@eslint/js"));
|
|
10
10
|
const typescript_eslint_1 = __importDefault(require("typescript-eslint"));
|
|
11
11
|
const eslint_plugin_nestjs_typed_1 = __importDefault(require("@darraghor/eslint-plugin-nestjs-typed"));
|
|
12
|
+
const globalIgnoreServerPatterns = ['server/database/.introspect/**']; // 全局 eslint server ignore
|
|
13
|
+
const globalIgnoreClientPatterns = ['dist', 'node_modules', 'client/src/api/gen']; // 全局 eslint client Ignore
|
|
12
14
|
// 只导出纯净的规则配置,不包含基础配置
|
|
13
15
|
// 用户需要在项目配置中自己添加基础配置(eslintJs, tseslint, nestjs 等)
|
|
14
16
|
exports.eslintPresets = {
|
|
15
17
|
client: [
|
|
18
|
+
{ ignores: globalIgnoreClientPatterns },
|
|
16
19
|
js_1.default.configs.recommended,
|
|
17
20
|
...typescript_eslint_1.default.configs.recommended,
|
|
18
21
|
eslint_client_1.default
|
|
19
22
|
],
|
|
20
23
|
server: [
|
|
24
|
+
{ ignores: globalIgnoreServerPatterns },
|
|
21
25
|
js_1.default.configs.recommended,
|
|
22
26
|
...typescript_eslint_1.default.configs.recommended,
|
|
23
27
|
...eslint_plugin_nestjs_typed_1.default.configs.flatRecommended,
|