aboutsummaryrefslogtreecommitdiff
path: root/packages/client
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-25 20:54:38 +0200
committerHampusM <hampus@hampusmat.com>2021-07-25 20:54:38 +0200
commite8392e65591b99f52c89cbec4554c87b19bde335 (patch)
tree18d5d7cddcd7f81e821dd2c5f6b3e0182b0153a9 /packages/client
parenta32365a7fea97fbf2a7b906ea77415ab744e7b43 (diff)
Organized Eslint stuff
Diffstat (limited to 'packages/client')
-rw-r--r--packages/client/.eslintrc.json41
-rw-r--r--packages/client/package.json7
2 files changed, 48 insertions, 0 deletions
diff --git a/packages/client/.eslintrc.json b/packages/client/.eslintrc.json
new file mode 100644
index 0000000..d60df09
--- /dev/null
+++ b/packages/client/.eslintrc.json
@@ -0,0 +1,41 @@
+{
+ "env": {
+ "node": true
+ },
+ "parser": "vue-eslint-parser",
+ "parserOptions": {
+ "parser": "@typescript-eslint/parser"
+ },
+ "extends": [
+ "plugin:vue/vue3-strongly-recommended",
+ "@vue/standard",
+ "@vue/typescript",
+ "base"
+ ],
+ "overrides": [
+ {
+ "files": ["*.ts"],
+ "extends": [
+ "plugin:@typescript-eslint/recommended"
+ ]
+ }
+ ],
+ "rules": {
+ "vue/max-attributes-per-line": [ "warn", {
+ "singleline": {
+ "max": 2,
+ "allowFirstLine": true
+ },
+ "multiline": {
+ "max": 2,
+ "allowFirstLine": false
+ }
+ } ],
+ "vue/html-closing-bracket-newline": [ "error", {
+ "singleline": "never",
+ "multiline": "never"
+ } ],
+ "vue/html-indent": [ "error", "tab" ],
+ "typescript-eslint/no-var-requires": "off"
+ }
+} \ No newline at end of file
diff --git a/packages/client/package.json b/packages/client/package.json
index 65496d4..a82dafd 100644
--- a/packages/client/package.json
+++ b/packages/client/package.json
@@ -32,10 +32,17 @@
"@vue/compiler-sfc": "^3.0.0",
"@vue/eslint-config-standard": "^6.0.0",
"@vue/eslint-config-typescript": "^7.0.0",
+ "eslint": "^7.31.0",
+ "eslint-config-base": "^1.0.0",
+ "eslint-plugin-import": "^2.23.4",
+ "eslint-plugin-node": "^11.1.0",
+ "eslint-plugin-promise": "^4.2.1",
+ "eslint-plugin-vue": "^7.14.0",
"sass": "^1.26.5",
"sass-loader": "^12.1.0",
"shared_types": "^1.0.0",
"typescript": "^4.3.5",
+ "vue-eslint-parser": "^7.9.0",
"webpack": "^5.46.0"
},
"license": "MIT"