diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-09-25 15:24:06 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-10-24 12:23:48 +0200 |
| commit | a22214f2a2efcdac2666e1aad3332cb49d2f2198 (patch) | |
| tree | a1f9c6a20ca5d5fa81c998b8a53974be310a0d02 /lint-staged.config.js | |
| parent | a6ff5eee45215effb3344cb5d631a27a7c0369aa (diff) | |
build: convert project to esm
Diffstat (limited to 'lint-staged.config.js')
| -rw-r--r-- | lint-staged.config.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lint-staged.config.js b/lint-staged.config.js index efe68ee..a7ecb80 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -1,7 +1,9 @@ -module.exports = { +const config = { '**/*.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'], '*': ['cspell --no-must-find-files --no-progress'], }; + +export default config; |
