chore: add eslint and fix lint errors
This commit is contained in:
+11
-3
@@ -21,8 +21,6 @@
|
||||
"apollo-link-http": "^1.5.15",
|
||||
"core-js": "3",
|
||||
"dayjs": "^1.8.19",
|
||||
"eslint": "^5.1.0",
|
||||
"eslint-plugin-vue": "^4.5.0",
|
||||
"graphql": "^14.4.2",
|
||||
"graphql-tag": "^2.10.1",
|
||||
"moment": "^2.24.0",
|
||||
@@ -39,7 +37,7 @@
|
||||
"dev": "nuxt",
|
||||
"build": "nuxt build",
|
||||
"generate": "nuxt generate",
|
||||
"lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
|
||||
"lint": "eslint --quiet --fix --ext .js,.vue --ignore-path .gitignore .",
|
||||
"precommit": "yarn lint",
|
||||
"prepush": "yarn test",
|
||||
"start": "node server/index.js",
|
||||
@@ -51,7 +49,17 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/runtime-corejs3": "^7.8.3",
|
||||
"babel-eslint": "^10.0.3",
|
||||
"cli-engine": "^4.7.6",
|
||||
"cypress": "^3.1.0",
|
||||
"eslint": "^6.8.0",
|
||||
"eslint-config-airbnb-base": "^14.0.0",
|
||||
"eslint-config-prettier": "^6.9.0",
|
||||
"eslint-loader": "^3.0.3",
|
||||
"eslint-plugin-import": "^2.20.0",
|
||||
"eslint-plugin-prettier": "^3.1.2",
|
||||
"eslint-plugin-vue": "^6.1.2",
|
||||
"prettier": "^1.19.1",
|
||||
"wait-on": "^3.2.0"
|
||||
},
|
||||
"snyk": true
|
||||
|
||||
Reference in New Issue
Block a user