Skip to content

Commit d73b4c1

Browse files
committed
chore: 🤖 add code format tool
1 parent 15f33d1 commit d73b4c1

15 files changed

+1856
-553
lines changed

‎.eslintrc

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"node": true
5+
},
6+
"extends": [
7+
"plugin:vue/essential",
8+
"plugin:prettier/recommended",
9+
"eslint:recommended"
10+
],
11+
"rules": {
12+
"prettier/prettier": "error",
13+
"no-console": "warn"
14+
},
15+
"parserOptions": {
16+
"parser": "babel-eslint"
17+
},
18+
"overrides": [
19+
{
20+
"files": [
21+
"**/__tests__/*.{j,t}s?(x)",
22+
"**/tests/unit/**/*.spec.{j,t}s?(x)"
23+
],
24+
"env": {
25+
"jest": true
26+
}
27+
}
28+
]
29+
}

‎.huskyrc.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
hooks:
2-
pre-commit:
3-
- npm run standard
2+
pre-commit: npm run lint-staged
43
commit-msg: commitlint -E HUSKY_GIT_PARAMS

‎babel.config.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
module.exports = {
2-
presets: [
3-
'@vue/cli-plugin-babel/preset'
4-
]
2+
presets: ['@vue/cli-plugin-babel/preset']
53
}

0 commit comments

Comments
 (0)