Commit ac9129c2 by Torkel Ödegaard

Added prettierignore and check script

parent cfea8bdc
.git
.github
dist/
pkg/
node_modules
public/vendor/
vendor/
......@@ -120,7 +120,8 @@
"typecheck": "tsc --noEmit",
"jest": "jest --notify --watch",
"api-tests": "jest --notify --watch --config=tests/api/jest.js",
"storybook": "cd packages/grafana-ui && yarn storybook"
"storybook": "cd packages/grafana-ui && yarn storybook",
"prettier:check": "prettier -- --list-different \"**/*.{ts,tsx,scss}\""
},
"husky": {
"hooks": {
......@@ -128,11 +129,7 @@
}
},
"lint-staged": {
"*.{ts,tsx}": [
"prettier --write",
"git add"
],
"*.scss": [
"*.{ts,tsx,json,scss}": [
"prettier --write",
"git add"
],
......
......@@ -10,4 +10,5 @@ function exit_if_fail {
fi
}
exit_if_fail npm run prettier:check
exit_if_fail npm run test
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment