diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-12-12 19:15:48 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-12-12 19:17:13 +0100 |
| commit | 23f909d33d5ee58cbf093191518939fbf72c6b70 (patch) | |
| tree | 246b873318fffe52fbd40c7496d0baf6f07cb9ba /lint-staged.config.js | |
| parent | df69949ebe244465b5baa7d1b91a2ed161b4827a (diff) | |
build: add tools to enforce some code/commit rules
Diffstat (limited to 'lint-staged.config.js')
| -rw-r--r-- | lint-staged.config.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lint-staged.config.js b/lint-staged.config.js new file mode 100644 index 0000000..433cbc0 --- /dev/null +++ b/lint-staged.config.js @@ -0,0 +1,6 @@ +module.exports = { + '**/*.ts?(x)': () => 'tsc -p tsconfig.json --noEmit', + '**/*.(ts|tsx|js|jsx)': ['eslint --cache --fix', 'prettier --write'], + '**/*.(md|json)': 'prettier --write', + '**/*.scss': ['stylelint --fix', 'prettier --write'], +}; |
