Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: update eslint config

boojack7ddd4caf47d3
diff --git a/web/.eslintrc.json b/web/.eslintrc.json
index b144ee76f..061334277 100644
--- a/web/.eslintrc.json
+++ b/web/.eslintrc.json
@@ -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",
diff --git a/web/.vscode/setting.json b/web/.vscode/setting.json
index 6c71edb30..a604d6df3 100644
--- a/web/.vscode/setting.json
+++ b/web/.vscode/setting.json
@@ -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"
+ }
}