@10stars/config 13.6.2 → 13.6.4

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.
@@ -154,6 +154,7 @@ export default defineConfig(
154
154
  "@typescript-eslint/no-empty-function": 0,
155
155
  "@typescript-eslint/no-unused-vars": 0,
156
156
  "@typescript-eslint/no-explicit-any": 0,
157
+ "@typescript-eslint/no-namespace": [0, { allowDeclarations: true }], // allow "declare namespace" in .d.ts files
157
158
  "@typescript-eslint/ban-types": 0,
158
159
  "@typescript-eslint/ban-ts-comment": 0,
159
160
  "@typescript-eslint/only-throw-error": 0,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "name": "@10stars/config",
7
- "version": "13.6.2",
7
+ "version": "13.6.4",
8
8
  "author": "10stars.dev <web@alexandrov.co> (https://alexandrov.co)",
9
9
  "license": "MIT",
10
10
  "bin": {
package/src/index.ts CHANGED
@@ -14,12 +14,8 @@ const exec = (cmd: string) => {
14
14
  execSync(cmd, { cwd, stdio: `inherit` }) // make execSync process to use the parent's: "stdin", "stdout", "stderr" streams
15
15
  }
16
16
 
17
- const getConfig = async (): Promise<Config> =>
18
- import(path.join(cwd, `10stars.config`)).catch(() => {
19
- throw new Error(
20
- `10stars.config.ts not found.\nYou need to place it in the root of the repository.`,
21
- )
22
- })
17
+ const getConfig = async (): Promise<Config | null> =>
18
+ import(path.join(cwd, `10stars.config`)).catch(() => null)
23
19
 
24
20
  const getESLintCommonCmd = async () => {
25
21
  const isMonorepo = await checkIsMonorepo(cwd)
@@ -42,7 +38,7 @@ const actions = {
42
38
  if (process.env.CI) return
43
39
 
44
40
  const config = await getConfig()
45
- if (config.linkPackages) await linkPackages(cwd, config.linkPackages)
41
+ if (config?.linkPackages) await linkPackages(cwd, config.linkPackages)
46
42
  },
47
43
  },
48
44
  format: {