diff options
| author | Shinigami <[email protected]> | 2025-06-29 22:56:41 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-29 22:56:41 +0200 |
| commit | a53d5a338d2ca25cba8b76abe085492771ef0bac (patch) | |
| tree | df32f0e45cb1cb6d8d81461991bbf1160de0b021 /eslint.config.ts | |
| parent | c7086b21b82d417a1dc2d47ce3bbc26362bb856b (diff) | |
| download | faker-a53d5a338d2ca25cba8b76abe085492771ef0bac.tar.xz faker-a53d5a338d2ca25cba8b76abe085492771ef0bac.zip | |
test: extract cjs require tests to .spec.cts (#3436)
Diffstat (limited to 'eslint.config.ts')
| -rw-r--r-- | eslint.config.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/eslint.config.ts b/eslint.config.ts index cc0fc72a..26eec55a 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -256,7 +256,7 @@ const config: ReturnType<typeof tseslint.config> = tseslint.config( }, { name: 'test/**/*.ts overrides', - files: ['test/**/*.spec.ts', 'test/**/*.spec.d.ts'], + files: ['test/**/*.spec.ts', 'test/**/*.spec.cts', 'test/**/*.spec.d.ts'], plugins: { vitest: eslintPluginVitest, }, @@ -285,6 +285,13 @@ const config: ReturnType<typeof tseslint.config> = tseslint.config( typecheck: true, }, }, + }, + { + files: ['test/**/*.spec.cts'], + rules: { + '@typescript-eslint/no-require-imports': 'off', + 'unicorn/prefer-module': 'off', + }, } //#endregion ); |
