Skip to content

Commit 5c3842a

Browse files
authored
chore: add prettier check script (#151)
1 parent 1ba6ea3 commit 5c3842a

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
coverage
2+
package-lock.json

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@
1818
"vue jest preprocessor"
1919
],
2020
"scripts": {
21-
"format": "prettier --no-semi --single-quote --write '{,!(node_modules)/**/}*.{js,json,md}'",
21+
"format": "prettier --no-semi --single-quote --write '**/*.{js,json,md}'",
22+
"format:check": "prettier --no-semi --single-quote --check '**/*.{js,json,md}'",
2223
"lint": "eslint --ignore-path .gitignore '{,!(node_modules)/**/}*.js'",
2324
"lint:fix": "npm run lint -- --fix",
2425
"release": "semantic-release",
25-
"test": "npm run lint && npm run test:e2e",
26+
"test": "npm run lint && npm run format:check && npm run test:e2e",
2627
"test:e2e": "node e2e/test-runner"
2728
},
2829
"author": "Edd Yerburgh",
@@ -51,7 +52,7 @@
5152
"less": "^3.9.0",
5253
"lint-staged": "^8.0.5",
5354
"node-sass": "^4.7.2",
54-
"prettier": "^1.15.2",
55+
"prettier": "^1.16.1",
5556
"pug": "^2.0.3",
5657
"semantic-release": "^15.13.2",
5758
"stylus": "^0.54.5",

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -6891,10 +6891,10 @@ [email protected]:
68916891
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.13.7.tgz#850f3b8af784a49a6ea2d2eaa7ed1428a34b7281"
68926892
integrity sha512-KIU72UmYPGk4MujZGYMFwinB7lOf2LsDNGSOC8ufevsrPLISrZbNJlWstRi3m0AMuszbH+EFSQ/r6w56RSPK6w==
68936893

6894-
prettier@^1.15.2:
6895-
version "1.15.3"
6896-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.15.3.tgz#1feaac5bdd181237b54dbe65d874e02a1472786a"
6897-
integrity sha512-gAU9AGAPMaKb3NNSUUuhhFAS7SCO4ALTN4nRIn6PJ075Qd28Yn2Ig2ahEJWdJwJmlEBTUfC7mMUSFy8MwsOCfg==
6894+
prettier@^1.16.1:
6895+
version "1.16.1"
6896+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.1.tgz#534c2c9d7853f8845e5e078384e71973bd74089f"
6897+
integrity sha512-XXUITwIkGb3CPJ2hforHah/zTINRyie5006Jd2HKy2qz7snEJXl0KLfsJZW/wst9g6R2rFvqba3VpNYdu1hDcA==
68986898

68996899
pretty-format@^23.6.0:
69006900
version "23.6.0"

0 commit comments

Comments
 (0)