mirror of
https://github.com/usememos/memos.git
synced 2025-01-28 08:05:03 +08:00
chore: update eslint config
This commit is contained in:
parent
b40060fd36
commit
7ddd4caf47
2 changed files with 8 additions and 5 deletions
|
@ -15,7 +15,12 @@
|
|||
"plugins": ["react", "@typescript-eslint", "prettier"],
|
||||
"ignorePatterns": ["node_modules", "dist", "public"],
|
||||
"rules": {
|
||||
"prettier/prettier": "error",
|
||||
"prettier/prettier": [
|
||||
"error",
|
||||
{
|
||||
"endOfLine": "auto"
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/no-empty-interface": ["off"],
|
||||
"@typescript-eslint/no-explicit-any": ["off"],
|
||||
"react/react-in-jsx-scope": "off",
|
||||
|
|
6
web/.vscode/setting.json
vendored
6
web/.vscode/setting.json
vendored
|
@ -1,8 +1,6 @@
|
|||
{
|
||||
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "vue"],
|
||||
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": true
|
||||
},
|
||||
"editor.formatOnSave": true,
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue