mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-14 17:58:44 +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:
@@ -1,4 +1,4 @@
|
||||
#!/bin/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"]
|
||||
}
|
Reference in New Issue
Block a user