Skip to content

Commit

Permalink
feat(eslint-config): disable @typescript-eslint/prefer-nullish-coales…
Browse files Browse the repository at this point in the history
…cing
  • Loading branch information
dangreen committed Feb 9, 2022
1 parent 34955ac commit f438810
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
21 changes: 8 additions & 13 deletions jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,13 @@
"<rootDir>/packages/.*/dist/"
],
"transform": {
"^.+\\.(t|j)sx?$": "@swc/jest"
"^.+\\.(t|j)sx?$": ["@swc/jest", {
"env": {
"targets": {
"node": 14
}
}
}]
},
"collectCoverage": true,
"collectCoverageFrom": [
"packages/(scripts)/**/*.{js,jsx,ts,tsx}",
"!packages/**/cli.*",
"!packages/*/dist/**/*",
"!**/*.d.ts",
"!**/node_modules/**"
],
"coverageReporters": [
"lcovonly",
"text"
]
"collectCoverage": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
'@typescript-eslint/no-unnecessary-qualifier': 'error',
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
'@typescript-eslint/prefer-includes': 'error',
'@typescript-eslint/prefer-nullish-coalescing': 'error',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/prefer-readonly': 'error',
'@typescript-eslint/prefer-readonly-parameter-types': 'off',
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
Expand Down

0 comments on commit f438810

Please sign in to comment.