File tree Expand file tree Collapse file tree 2 files changed +42
-3
lines changed Expand file tree Collapse file tree 2 files changed +42
-3
lines changed Original file line number Diff line number Diff line change 1+ module . exports = {
2+ root : true ,
3+ env : {
4+ browser : true ,
5+ node : true
6+ } ,
7+ parserOptions : {
8+ parser : 'babel-eslint'
9+ } ,
10+ extends : [
11+ 'eslint:recommended' ,
12+ 'plugin:vue/recommended' ,
13+ 'plugin:prettier/recommended' ,
14+ 'prettier/vue'
15+ ] ,
16+ plugins : [ 'vue' , 'prettier' ] ,
17+ rules : {
18+ 'no-console' : [
19+ 'error' ,
20+ {
21+ allow : [ 'warn' , 'error' ]
22+ }
23+ ] ,
24+ 'no-debugger' : 'error' ,
25+ 'prettier/prettier' : 'error'
26+ }
27+ }
Original file line number Diff line number Diff line change 3939 "@babel/core": "^7.4.3",
4040 "@babel/plugin-transform-runtime": "^7.4.3",
4141 "@babel/preset-env": "^7.4.3",
42+ "babel-eslint": "^10.0.3",
4243 "babel-loader": "^8.0.5",
44+ "eslint": "^6.6.0",
45+ "eslint-config-prettier": "^6.5.0",
46+ "eslint-plugin-prettier": "^3.1.1",
47+ "eslint-plugin-vue": "^5.2.3",
4348 "file-loader": "^3.0.1",
4449 "github-release-notes": "^0.17.0",
4550 "glob": "^7.1.3",
6974 },
7075 "vue-sfc-cli": "{{cliVersion}}",
7176 "engines": {
72- "node": ">= 4.0 .0",
77+ "node": ">= 8.3 .0",
7378 "npm": ">= 3.0.0"
7479 },
7580 "husky": {
7681 "hooks": {
7782 "pre-commit": "lint-staged",
78- "post-commit": "git update-index --again"
83+ "post-commit": "git update-index --again",
84+ "pre-push": "yarn test"
7985 }
8086 },
8187 "lint-staged": {
82- "*.(js|md|json)": [
88+ "*.@(md|json)": [
89+ "prettier --write",
90+ "git add"
91+ ],
92+ "*.js": [
93+ "eslint --fix",
8394 "prettier --write",
8495 "git add"
8596 ],
8697 "*.vue": [
98+ "eslint --fix",
8799 "prettier --write",
88100 "stylelint --fix",
89101 "git add"
You can’t perform that action at this time.
0 commit comments