@lark-apaas/fullstack-presets 1.1.2-alpha.loose.1 → 1.1.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.
@@ -9,8 +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
+ const testFileIgnorePatterns = [
13
+ '**/__tests__/**',
14
+ '**/*.test.js',
15
+ '**/*.test.jsx',
16
+ '**/*.test.ts',
17
+ '**/*.test.tsx',
18
+ '**/*.spec.js',
19
+ '**/*.spec.jsx',
20
+ '**/*.spec.ts',
21
+ '**/*.spec.tsx',
22
+ ];
23
+ const globalIgnoreServerPatterns = ['server/database/.introspect/**', ...testFileIgnorePatterns]; // 全局 eslint server ignore
24
+ const globalIgnoreClientPatterns = ['dist', 'node_modules', 'client/src/api/gen', ...testFileIgnorePatterns]; // 全局 eslint client Ignore
14
25
  // 只导出纯净的规则配置,不包含基础配置
15
26
  // 用户需要在项目配置中自己添加基础配置(eslintJs, tseslint, nestjs 等)
16
27
  exports.eslintPresets = {
@@ -9,8 +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
+ const testFileIgnorePatterns = [
13
+ '**/__tests__/**',
14
+ '**/*.test.js',
15
+ '**/*.test.jsx',
16
+ '**/*.test.ts',
17
+ '**/*.test.tsx',
18
+ '**/*.spec.js',
19
+ '**/*.spec.jsx',
20
+ '**/*.spec.ts',
21
+ '**/*.spec.tsx',
22
+ ];
23
+ const globalIgnoreServerPatterns = ['server/database/.introspect/**', ...testFileIgnorePatterns]; // 全局 eslint server ignore
24
+ const globalIgnoreClientPatterns = ['dist', 'node_modules', 'client/src/api/gen', ...testFileIgnorePatterns]; // 全局 eslint client Ignore
14
25
  // 只导出纯净的规则配置,不包含基础配置
15
26
  // 用户需要在项目配置中自己添加基础配置(eslintJs, tseslint, nestjs 等)
16
27
  exports.eslintPresets = {
@@ -8,6 +8,7 @@
8
8
 
9
9
  /* Bundler mode */
10
10
  "moduleResolution": "bundler",
11
+ "esModuleInterop": true,
11
12
  "allowImportingTsExtensions": true,
12
13
  "isolatedModules": true,
13
14
  "moduleDetection": "force",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-presets",
3
- "version": "1.1.2-alpha.loose.1",
3
+ "version": "1.1.2",
4
4
  "files": [
5
5
  "lib"
6
6
  ],