ADD: ESLint & Prettier

configured both
This commit is contained in:
Robert Kossessa
2024-01-22 16:18:35 +01:00
parent b3aec0c459
commit 4a9c57aa55
2 changed files with 1065 additions and 0 deletions

View File

@@ -33,16 +33,66 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@intlify/eslint-plugin-vue-i18n": "^2.0.0",
"@types/node": "^20.11.0",
"@vitejs/plugin-vue": "^4.5.2",
"autoprefixer": "^10.4.16",
"electron": "^13.0.0",
"electron-devtools-installer": "^3.1.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-vue": "^9.20.1",
"json-server": "^1.0.0-alpha.21",
"postcss": "^8.4.33",
"prettier": "3.2.4",
"tailwindcss": "^3.4.1",
"vite": "^5.0.10",
"vue-cli-plugin-electron-builder": "~2.1.1"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"eslint:recommended",
"plugin:vue/vue3-recommended",
"plugin:@intlify/vue-i18n/recommended",
"prettier"
],
"settings": {
"vue-i18n": {
"localeDir": "@/lang/*.{json,json5,yaml,yml}",
"messageSyntaxVersion": "^9.0.0"
}
},
"rules": {
"camelcase": "off",
"space-before-function-paren": "off",
"object-curly-spacing": "off",
"comma-dangle": "off",
"@intlify/vue-i18n/no-v-html": "off",
"@intlify/vue-i18n/no-dynamic-keys": "off",
"@intlify/vue-i18n/no-raw-text": [
"warn",
{
"ignorePattern": "^(([\\W\\d]+)|(http.*))|()$",
"ignoreNodes": [
"code"
]
}
],
"@intlify/vue-i18n/no-unused-keys": [
"error",
{
"extensions": [
".js",
".ts",
".vue"
]
}
]
}
},
"type": "module"
}