Skip to content

Commit

Permalink
chore: update lint-staged config
Browse files Browse the repository at this point in the history
Use `lint-staged.config.cjs` instead of `.lint-stagedrc.json`.

Since lint-staged will only run tools for matching targets so the
command line options to deal with empty targets are never needed.

Run `prettier --write` for all files that Prettier can autofix. These
fixes are added to the same commit instead of resulting in a new commit.
  • Loading branch information
matijs committed Aug 9, 2024
1 parent 2ddd915 commit aa2c29a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .lintstagedrc.json

This file was deleted.

7 changes: 7 additions & 0 deletions lint-staged.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
'*': 'prettier --write',
'package.json': 'npmPkgJsonLint',
'*.md': ['markdownlint'],
'*.{js,cjs,mjs,json,jsx,mdx,ts,tsx}': ['eslint'],
'*.{css,scss}': ['stylelint'],
};

0 comments on commit aa2c29a

Please sign in to comment.