Skip to content

Commit f01e8e8

Browse files
authored
chore(prettier): match with vue-next (#348)
* chore(prettier): match with vue-next * add lint script
1 parent d7048d4 commit f01e8e8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"scripts": {
2828
"start": "cross-env TARGET=es rollup -c -w",
2929
"build": "rollup -c",
30+
"lint": "prettier --write --parser typescript \"{src,test,test-dts}/*.ts?(x)\" && prettier --write \"{src,test}/*.js\"",
3031
"test": "cross-env NODE_ENV=test jest",
3132
"test-dts": "tsc -p ./test-dts/tsconfig.json && npm run build && tsc -p ./test-dts/tsconfig.build.json",
3233
"release": "bash scripts/release.sh"
@@ -70,7 +71,7 @@
7071
"prettier --write",
7172
"git add"
7273
],
73-
"*.ts": [
74+
"*.ts?(x)": [
7475
"prettier --parser=typescript --write",
7576
"git add"
7677
]
@@ -96,8 +97,8 @@
9697
"preset": "ts-jest"
9798
},
9899
"prettier": {
99-
"printWidth": 100,
100+
"semi": false,
100101
"singleQuote": true,
101-
"trailingComma": "es5"
102+
"printWidth": 80
102103
}
103104
}

0 commit comments

Comments
 (0)