mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
update linter rules
This commit is contained in:
parent
bf1cddae9d
commit
249eaf89f8
2 changed files with 3 additions and 1 deletions
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
|
@ -18,7 +18,7 @@
|
||||||
{ "directory": "./", "changeProcessCWD": true },
|
{ "directory": "./", "changeProcessCWD": true },
|
||||||
{ "directory": "./server", "changeProcessCWD": true }
|
{ "directory": "./server", "changeProcessCWD": true }
|
||||||
],
|
],
|
||||||
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
|
"typescript.tsserver.experimental.enableProjectDiagnostics": false,
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.eslint": "explicit",
|
"source.fixAll.eslint": "explicit",
|
||||||
"source.fixAll.stylelint": "explicit",
|
"source.fixAll.stylelint": "explicit",
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ export default tseslint.config(
|
||||||
...eslintPluginReactRefresh.configs.vite.rules,
|
...eslintPluginReactRefresh.configs.vite.rules,
|
||||||
'@typescript-eslint/explicit-function-return-type': 'off',
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
||||||
'@typescript-eslint/no-duplicate-enum-values': 'off',
|
'@typescript-eslint/no-duplicate-enum-values': 'off',
|
||||||
|
'@typescript-eslint/no-explicit-any': 'off',
|
||||||
'@typescript-eslint/no-unused-vars': 'warn',
|
'@typescript-eslint/no-unused-vars': 'warn',
|
||||||
curly: ['error', 'all'],
|
curly: ['error', 'all'],
|
||||||
indent: [
|
indent: [
|
||||||
|
|
@ -42,6 +43,7 @@ export default tseslint.config(
|
||||||
'no-unused-vars': 'off',
|
'no-unused-vars': 'off',
|
||||||
'no-use-before-define': 'off',
|
'no-use-before-define': 'off',
|
||||||
quotes: ['error', 'single'],
|
quotes: ['error', 'single'],
|
||||||
|
'react/display-name': 'off',
|
||||||
semi: ['error', 'always'],
|
semi: ['error', 'always'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue