mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-26 07:59:48 +03:00
chore(*): change prettier hook
This commit is contained in:
parent
b8d3f47cca
commit
b01e5d352f
|
@ -7,6 +7,7 @@ cache:
|
||||||
directories:
|
directories:
|
||||||
- "node_modules"
|
- "node_modules"
|
||||||
script:
|
script:
|
||||||
- yarn build:all
|
- yarn prettier:check
|
||||||
- yarn lint:all
|
- yarn lint:all
|
||||||
- yarn test:all
|
- yarn test:all
|
||||||
|
- yarn build:all
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
"lint:fix": "eslint \"**/*.{js,jsx,ts,tsx}\" --fix --cache",
|
"lint:fix": "eslint \"**/*.{js,jsx,ts,tsx}\" --fix --cache",
|
||||||
"lint:all": "eslint \"**/*.{js,jsx,ts,tsx}\"",
|
"lint:all": "eslint \"**/*.{js,jsx,ts,tsx}\"",
|
||||||
"prettify": "prettier \"**/*.{js,jsx,ts,tsx,json,css,html,md}\" --write",
|
"prettify": "prettier \"**/*.{js,jsx,ts,tsx,json,css,html,md}\" --write",
|
||||||
|
"prettier:check": "prettier --check .",
|
||||||
"test": "jest --onlyChanged",
|
"test": "jest --onlyChanged",
|
||||||
"test:all": "jest"
|
"test:all": "jest"
|
||||||
},
|
},
|
||||||
|
@ -56,12 +57,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{js,jsx,ts,tsx}": [
|
"**/*": ["eslint --fix", "prettier --write"]
|
||||||
"prettier --write",
|
|
||||||
"yarn lint:fix"
|
|
||||||
],
|
|
||||||
"*.{json,css,html,md}": [
|
|
||||||
"prettier --write"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user