mirror of https://github.com/wg-easy/wg-easy
committed by
GitHub
38 changed files with 262 additions and 206 deletions
@ -0,0 +1,27 @@ |
|||||
|
// @ts-check
|
||||
|
|
||||
|
import eslintConfigPrettier from 'eslint-config-prettier'; |
||||
|
import withNuxt from './.nuxt/eslint.config.mjs'; |
||||
|
|
||||
|
export default withNuxt([ |
||||
|
{ |
||||
|
rules: { |
||||
|
'import/order': 'warn', |
||||
|
}, |
||||
|
}, |
||||
|
eslintConfigPrettier, |
||||
|
]).override('nuxt/typescript/rules', { |
||||
|
rules: { |
||||
|
'@typescript-eslint/restrict-template-expressions': [ |
||||
|
'error', |
||||
|
{ |
||||
|
allowAny: false, |
||||
|
allowBoolean: true, |
||||
|
allowNever: false, |
||||
|
allowNullish: false, |
||||
|
allowNumber: true, |
||||
|
allowRegExp: false, |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
|
}); |
@ -1,11 +0,0 @@ |
|||||
import eslintConfigPrettier from 'eslint-config-prettier'; |
|
||||
import withNuxt from './.nuxt/eslint.config.mjs'; |
|
||||
|
|
||||
export default withNuxt([ |
|
||||
{ |
|
||||
rules: { |
|
||||
'import/order': 'warn', |
|
||||
}, |
|
||||
}, |
|
||||
eslintConfigPrettier, |
|
||||
]); |
|
@ -0,0 +1,8 @@ |
|||||
|
{ |
||||
|
"compilerOptions": { |
||||
|
"noUncheckedIndexedAccess": true, |
||||
|
"useUnknownInCatchVariables": true, |
||||
|
"strictNullChecks": true, |
||||
|
"noFallthroughCasesInSwitch": true |
||||
|
} |
||||
|
} |
@ -1,3 +1,3 @@ |
|||||
{ |
{ |
||||
"extends": "../.nuxt/tsconfig.server.json" |
"extends": ["../.nuxt/tsconfig.server.json", "../override.tsconfig.json"] |
||||
} |
} |
||||
|
@ -1,4 +1,4 @@ |
|||||
{ |
{ |
||||
// https://nuxt.com/docs/guide/concepts/typescript |
// https://nuxt.com/docs/guide/concepts/typescript |
||||
"extends": "./.nuxt/tsconfig.json" |
"extends": ["./.nuxt/tsconfig.json", "./override.tsconfig.json"] |
||||
} |
} |
||||
|
Loading…
Reference in new issue