Skip to content

Commit

Permalink
feat(init): improve lint-staged settings via ignore option (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Jun 16, 2018
1 parent c7e8641 commit 8fe523c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 15 deletions.
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,16 @@
"release:dry-run": "npm run release -- --dry-run"
},
"lint-staged": {
"*.{js,jsx,mjs}": [
"eslint --fix --no-ignore",
"git add"
],
"*.md": "markdownlint --ignore CHANGELOG.md"
"linters": {
"*.{js,jsx,mjs}": [
"eslint --fix --no-ignore",
"git add"
],
"*.md": "markdownlint"
},
"ignore": [
"CHANGELOG.md"
]
},
"nyc": {
"exclude": [
Expand Down
15 changes: 10 additions & 5 deletions test/fixtures/package-empty_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@
"release:dry-run": "npm run release -- --dry-run"
},
"lint-staged": {
"*.{js,jsx,mjs}": [
"eslint --fix --no-ignore",
"git add"
],
"*.md": "markdownlint --ignore CHANGELOG.md"
"linters": {
"*.{js,jsx,mjs}": [
"eslint --fix --no-ignore",
"git add"
],
"*.md": "markdownlint"
},
"ignore": [
"CHANGELOG.md"
]
}
}
15 changes: 10 additions & 5 deletions test/fixtures/package-normal_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@
},
"lint-staged": {
"*.css": "xyz",
"*.{js,jsx,mjs}": [
"eslint --fix --no-ignore",
"git add"
],
"*.md": "markdownlint --ignore CHANGELOG.md"
"linters": {
"*.{js,jsx,mjs}": [
"eslint --fix --no-ignore",
"git add"
],
"*.md": "markdownlint"
},
"ignore": [
"CHANGELOG.md"
]
}
}

0 comments on commit 8fe523c

Please sign in to comment.