Skip to content

Commit

Permalink
feat(init): exclude snapshot files from Prettier (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous authored Aug 8, 2020
1 parent e603390 commit b873407
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
},
"lint-staged": {
"*.{js,jsx,mjs,ts,tsx}": "eslint --fix",
"*": "prettier --write",
"!(*.snap)": "prettier --write",
"!(CHANGELOG).md": "remark --frail"
},
"standard-version": {
Expand Down
4 changes: 2 additions & 2 deletions test/__snapshots__/init.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Object {
},
},
"lint-staged": Object {
"!(*.snap)": "prettier --write",
"!(CHANGELOG).md": "remark --frail",
"*": "prettier --write",
"*.css": "xyz",
"*.{js,jsx,mjs,ts,tsx}": "eslint --fix",
},
Expand Down Expand Up @@ -103,8 +103,8 @@ Object {
},
},
"lint-staged": Object {
"!(*.snap)": "prettier --write",
"!(CHANGELOG).md": "remark --frail",
"*": "prettier --write",
"*.{js,jsx,mjs,ts,tsx}": "eslint --fix",
},
"remarkConfig": Object {
Expand Down

0 comments on commit b873407

Please sign in to comment.