enforce switch statement exhaustiveness in linter (#941)
remove padding from windsurf logos
This commit is contained in:
committed by
GitHub
parent
720a572c1f
commit
7136085d52
@@ -19,6 +19,7 @@ module.exports = {
|
||||
parserOptions: {
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'module',
|
||||
project: './tsconfig.json',
|
||||
},
|
||||
rules: {
|
||||
'react-refresh/only-export-components': 'off',
|
||||
@@ -32,6 +33,7 @@ module.exports = {
|
||||
},
|
||||
],
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
'@typescript-eslint/switch-exhaustiveness-check': 'error',
|
||||
// i18n rule - only active when LINT_I18N=true
|
||||
'i18next/no-literal-string': i18nCheck
|
||||
? [
|
||||
@@ -64,5 +66,15 @@ module.exports = {
|
||||
'i18next/no-literal-string': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
// Disable type-aware linting for config files
|
||||
files: ['*.config.{ts,js,cjs,mjs}', '.eslintrc.cjs'],
|
||||
parserOptions: {
|
||||
project: null,
|
||||
},
|
||||
rules: {
|
||||
'@typescript-eslint/switch-exhaustiveness-check': 'off',
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user