Skip to content

Commit

Permalink
chore: [eslint] update base config
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Feb 18, 2023
1 parent 2f90da1 commit a9a5758
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
10 changes: 8 additions & 2 deletions .eslintrc.base.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ const config = {
}
},
{
files: ['*.d.ts'],
files: ['*.d.mts', '*.d.ts'],
rules: {
'@typescript-eslint/ban-types': 0,
'@typescript-eslint/triple-slash-reference': 0,
Expand Down Expand Up @@ -992,6 +992,12 @@ const config = {
'yml/spaced-comment': 2
}
},
{
files: ['**/__mocks__/**'],
rules: {
'@typescript-eslint/require-await': 0
}
},
{
files: ['**/__tests__/*.spec.ts', '**/__tests__/*.spec-d.ts'],
globals: {
Expand Down Expand Up @@ -1054,7 +1060,7 @@ const config = {
}
},
{
files: ['**/typings/**/*.d.ts', '*-env.d.ts'],
files: ['**/typings/**/*.d.mts', '**/typings/**/*.d.ts', '*-env.d.ts'],
rules: {
'jsdoc/require-file-overview': 0,
'unicorn/filename-case': 0
Expand Down
4 changes: 2 additions & 2 deletions src/utils/__snapshots__/load-tsconfig.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ exports[`unit:utils/loadTsconfig > should return TSConfig object if tsconfig fil
"checkJs": false,
"declaration": true,
"declarationMap": true,
"emitDecoratorMetadata": true,
"emitDecoratorMetadata": false,
"esModuleInterop": true,
"exactOptionalPropertyTypes": true,
"experimentalDecorators": true,
"experimentalDecorators": false,
"forceConsistentCasingInFileNames": true,
"lib": [
"es2020",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"checkJs": false,
"declaration": true,
"declarationMap": true,
"emitDecoratorMetadata": true,
"emitDecoratorMetadata": false,
"esModuleInterop": true,
"exactOptionalPropertyTypes": true,
"experimentalDecorators": true,
"experimentalDecorators": false,
"forceConsistentCasingInFileNames": true,
"lib": ["dom", "dom.iterable", "es2020"],
"module": "esnext",
Expand Down

0 comments on commit a9a5758

Please sign in to comment.