Skip to content

Commit f9f8c85

Browse files
committed
feat: add global default ignores
1 parent 362fa8a commit f9f8c85

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

  • packages/eslint-config-recommended/src

packages/eslint-config-recommended/src/index.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ import eslintPluginSimpleImportSort from 'eslint-plugin-simple-import-sort'
77
import eslintPluginUnusedImports from 'eslint-plugin-unused-imports'
88
import eslintTs from 'typescript-eslint'
99

10+
export const DEFAULT_IGNORES: readonly string[] = [
11+
'node_modules/**',
12+
'dist/**',
13+
'out-tsc/**',
14+
'.angular/**',
15+
'cdk.out/**',
16+
'cypress/reports/**',
17+
]
18+
1019
/**
1120
* define the shiftcode eslint config for typescript.
1221
* the function wraps given configs with some common settings and adds prettier rules at the end.
@@ -33,6 +42,10 @@ import eslintTs from 'typescript-eslint'
3342
*/
3443
export function defineScTsConfig(...configs: Parameters<typeof defineConfig>): ReturnType<typeof defineConfig> {
3544
return defineConfig(
45+
{
46+
ignores: [...DEFAULT_IGNORES],
47+
},
48+
3649
{
3750
files: ['**/*.{ts,mts,cts,js,mjs,cjs}'],
3851
extends: [eslint.configs.recommended],

0 commit comments

Comments
 (0)