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`.

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 dcccac1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .lintstagedrc.json

This file was deleted.

2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ components/components.d.ts
packages/web-components-stencil/loader
packages/web-components-react/src/react-component-lib/
packages/web-components-react/src/components.ts

.*ignore
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 --allowEmptyTargets',
'*.md': ['markdownlint'],
'*.{js,cjs,mjs,json,jsx,mdx,ts,tsx}': ['eslint --no-error-on-unmatched-pattern'],
'*.{css,scss}': ['stylelint --allow-empty-input'],
};

0 comments on commit dcccac1

Please sign in to comment.