diff --git a/.changeset/sharp-kangaroos-tap.md b/.changeset/sharp-kangaroos-tap.md new file mode 100644 index 00000000..9458d517 --- /dev/null +++ b/.changeset/sharp-kangaroos-tap.md @@ -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 diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..b009dfb9 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +lts/* diff --git a/packages/lint-staged/base.js b/packages/lint-staged/base.js index a180b321..0230d726 100644 --- a/packages/lint-staged/base.js +++ b/packages/lint-staged/base.js @@ -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) =>