Skip to content

Commit 27662c4

Browse files
committedJun 20, 2022
fix(prettier): ignore .nvmrc, use sh for .*shrc
1 parent 37fff32 commit 27662c4

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
 

‎.changeset/angry-eggs-wash.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@1stg/app-config': patch
3+
'@1stg/common-config': patch
4+
'@1stg/lib-config': patch
5+
'@1stg/prettier-config': patch
6+
---
7+
8+
fix(prettier): ignore `.nvmrc`, use sh for `.*shrc`

‎packages/prettier-config/base.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ module.exports = {
1515
overrides: [
1616
{
1717
files: ['.*rc', '*.json'],
18+
excludeFiles: ['.nvmrc'],
1819
options: {
1920
parser: 'json-stringify',
2021
},
2122
},
2223
{
23-
files: ['.browserslistrc', '.npmrc', '.yarnrc'],
24+
files: ['.browserslistrc', '.npmrc', '.yarnrc', '.*shrc'],
2425
options: {
2526
parser: 'sh',
2627
},

0 commit comments

Comments
 (0)
Please sign in to comment.