chore: 🤖 add code format tool
This commit is contained in:
35
package.json
35
package.json
@@ -9,6 +9,7 @@
|
||||
"test:unit": "vue-cli-service test:unit --watch",
|
||||
"test:coverage": "vue-cli-service test:unit --coverage",
|
||||
"lint": "vue-cli-service lint",
|
||||
"lint-staged": "lint-staged",
|
||||
"commit": "npx git-cz",
|
||||
"prepublish": "npm run build"
|
||||
},
|
||||
@@ -23,38 +24,22 @@
|
||||
"babel-eslint": "^10.0.3",
|
||||
"core-js": "^3.4.3",
|
||||
"eslint": "^5.16.0",
|
||||
"eslint-config-prettier": "^6.10.0",
|
||||
"eslint-plugin-prettier": "^3.1.2",
|
||||
"eslint-plugin-vue": "^5.0.0",
|
||||
"husky": "^4.2.1",
|
||||
"jest-serializer-vue": "^2.0.2",
|
||||
"less": "^3.10.3",
|
||||
"less-loader": "^5.0.0",
|
||||
"lint-staged": "^10.0.4",
|
||||
"prettier": "^1.19.1",
|
||||
"prettier-eslint-cli": "^5.0.0",
|
||||
"vue": "^2.6.10",
|
||||
"vue-template-compiler": "^2.6.10"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"root": true,
|
||||
"env": {
|
||||
"node": true
|
||||
},
|
||||
"extends": [
|
||||
"plugin:vue/essential",
|
||||
"eslint:recommended"
|
||||
],
|
||||
"rules": {
|
||||
"no-console": "warn"
|
||||
},
|
||||
"parserOptions": {
|
||||
"parser": "babel-eslint"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": [
|
||||
"**/__tests__/*.{j,t}s?(x)",
|
||||
"**/tests/unit/**/*.spec.{j,t}s?(x)"
|
||||
],
|
||||
"env": {
|
||||
"jest": true
|
||||
}
|
||||
}
|
||||
"lint-staged": {
|
||||
"**/**.{js,json,pcss,md,vue}": [
|
||||
"prettier --write"
|
||||
]
|
||||
},
|
||||
"browserslist": [
|
||||
|
Reference in New Issue
Block a user