mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
[ACS-7357] pre-commit linting for code and styles (#9472)
* chore: enable lint-staged and prettier for pre-commit * testing hook * update linting config * cleanup
This commit is contained in:
parent
1952f4852f
commit
dbe33e9a58
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
npm run affected:lint
|
npx lint-staged
|
||||||
|
4
.lintstagedrc.json
Normal file
4
.lintstagedrc.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"*.{ts,js}": ["prettier --write", "eslint"],
|
||||||
|
"*.{css,scss}": ["prettier --write", "stylelint"]
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user