Skip to content

Commit

Permalink
Configure lint-staged to run standard and stylelint on relevant stage…
Browse files Browse the repository at this point in the history
…d files
  • Loading branch information
romaricpascal committed Nov 23, 2022
1 parent 9a7ffdf commit 9dc3b6a
Show file tree
Hide file tree
Showing 3 changed files with 501 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
// ESLint's configuration will let it ignore built files
// in `dist` or `package` that we want left alone, as well as the polyfills
'*.{cjs,js,mjs}': ['npm run lint:js:cli -- --fix'],
'*.scss': ['npm run lint:scss:cli -- --fix']
}
Loading

0 comments on commit 9dc3b6a

Please sign in to comment.