Skip to content

Commit

Permalink
Disable import/no-relative-parent-imports in spec files 🃏
Browse files Browse the repository at this point in the history
  • Loading branch information
01taylop committed Jun 21, 2024
1 parent dbf3659 commit 9ff8517
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/eslint/build-config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { commonOverrides } from './overrides'
import ImportRules from './rules/import'
import InclusiveLanguageRules from './rules/inclusive-language'

Expand All @@ -10,6 +11,9 @@ const buildConfig = () => ({
...ImportRules,
...InclusiveLanguageRules,
},
overrides: [
commonOverrides,
],
})

export default buildConfig
10 changes: 10 additions & 0 deletions config/eslint/overrides.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const commonOverrides = [{
files: ['*.spec.*'],
rules: {
'import/no-relative-parent-imports': 0,
},
}]

export {
commonOverrides,
}

0 comments on commit 9ff8517

Please sign in to comment.