mirror of
https://github.com/usememos/memos.git
synced 2025-02-19 12:50:41 +01:00
chore: update eslint config
This commit is contained in:
parent
b40060fd36
commit
7ddd4caf47
@ -15,7 +15,12 @@
|
|||||||
"plugins": ["react", "@typescript-eslint", "prettier"],
|
"plugins": ["react", "@typescript-eslint", "prettier"],
|
||||||
"ignorePatterns": ["node_modules", "dist", "public"],
|
"ignorePatterns": ["node_modules", "dist", "public"],
|
||||||
"rules": {
|
"rules": {
|
||||||
"prettier/prettier": "error",
|
"prettier/prettier": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"endOfLine": "auto"
|
||||||
|
}
|
||||||
|
],
|
||||||
"@typescript-eslint/no-empty-interface": ["off"],
|
"@typescript-eslint/no-empty-interface": ["off"],
|
||||||
"@typescript-eslint/no-explicit-any": ["off"],
|
"@typescript-eslint/no-explicit-any": ["off"],
|
||||||
"react/react-in-jsx-scope": "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": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.eslint": true
|
"source.fixAll.eslint": true
|
||||||
},
|
}
|
||||||
"editor.formatOnSave": true,
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user