|
@@ -120,7 +120,8 @@
|
|
|
"typecheck": "tsc --noEmit",
|
|
"typecheck": "tsc --noEmit",
|
|
|
"jest": "jest --notify --watch",
|
|
"jest": "jest --notify --watch",
|
|
|
"api-tests": "jest --notify --watch --config=tests/api/jest.js",
|
|
"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": {
|
|
"husky": {
|
|
|
"hooks": {
|
|
"hooks": {
|
|
@@ -128,11 +129,7 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
"lint-staged": {
|
|
"lint-staged": {
|
|
|
- "*.{ts,tsx}": [
|
|
|
|
|
- "prettier --write",
|
|
|
|
|
- "git add"
|
|
|
|
|
- ],
|
|
|
|
|
- "*.scss": [
|
|
|
|
|
|
|
+ "*.{ts,tsx,json,scss}": [
|
|
|
"prettier --write",
|
|
"prettier --write",
|
|
|
"git add"
|
|
"git add"
|
|
|
],
|
|
],
|