Skip to content
This repository has been archived by the owner on Sep 30, 2022. It is now read-only.

Commit

Permalink
chore: update lint-staged config
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Sep 15, 2021
1 parent 21905de commit f875714
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@ node_modules/
types/

**/CHANGELOG.md
.eslintignore
.env.*
.env
.gitignore
.gitkeep
.prettierignore
yarn.lock

6 changes: 3 additions & 3 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

module.exports = {
/**
* Formatting and linting commands for all files.
* Formatting command rules.
*/
[`*.{js,json,md,ts}`]: ['yarn fix:format', 'git add -A'],
'*': ['yarn fix:format', 'git add -A'],

/**
* Formatting and linting commands for JavaScript and TypeScript files.
* Linting command rules.
*/
[`*.{js,md,ts}`]: ['yarn fix:style', 'git add -A']
}

0 comments on commit f875714

Please sign in to comment.