Skip to content

Commit

Permalink
fix(lint-staged): do not run prettier on .nvmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Jun 20, 2022
1 parent 221d7e9 commit c8c6b0c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .changeset/sharp-kangaroos-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@1stg/app-config': patch
'@1stg/common-config': patch
'@1stg/lib-config': patch
'@1stg/lint-staged': patch
---

fix(lint-staged): do not run prettier on .nvmrc
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
2 changes: 1 addition & 1 deletion packages/lint-staged/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { isPkgAvailable } = require('@pkgr/utils')

const config = [
'*.{*sh,env,env.*,gql,html,json,properties,pug,rb,svelte,vue,toml,yaml,yml}',
'.*rc',
'.!(nvm)rc',
'Dockerfile',
].reduce(
(acc, files) =>
Expand Down

0 comments on commit c8c6b0c

Please sign in to comment.