aboutsummaryrefslogtreecommitdiffstats
path: root/lint-staged.config.js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-10-17 15:35:37 +0200
committerArmand Philippot <git@armandphilippot.com>2021-10-17 18:20:29 +0200
commit22adbcd1eb5f4233f65cc4f195298c32cfaa156e (patch)
tree5bbde76f8b6b8672a97485d1a47b1cbdf259c0b1 /lint-staged.config.js
chore: initial commit
Add default configuration for dev tools and needed packages
Diffstat (limited to 'lint-staged.config.js')
-rw-r--r--lint-staged.config.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lint-staged.config.js b/lint-staged.config.js
new file mode 100644
index 0000000..6f01327
--- /dev/null
+++ b/lint-staged.config.js
@@ -0,0 +1,5 @@
+module.exports = {
+ '!(assets)/**/*.js': [ 'eslint --cache --fix' ],
+ '**/*.scss': [ 'stylelint --fix --syntax=scss', 'prettier --write' ],
+ '*.md': 'prettier --write',
+};