Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let Yarn handle package.json formatting, not lint-staged #1614

Merged
merged 1 commit into from
May 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
"node": ">=6.13.1",
"npm": ">=3.10.10"
},
"browserslist": [">1%", "last 4 versions", "Firefox ESR", "not ie < 9"],
"browserslist": [
">1%",
"last 4 versions",
"Firefox ESR",
"not ie < 9"
],
"dependencies": {
"@babel/polyfill": "^7.0.0-beta.44",
"bluebird": "^3.5.1",
Expand Down Expand Up @@ -116,9 +121,23 @@
"webpack-node-externals": "^1.7.2"
},
"lint-staged": {
"*.{js,jsx}": ["eslint --no-ignore --fix", "git add --force"],
"*.{json,md,graphql}": ["prettier --write", "git add --force"],
"*.{css,less,styl,scss,sass,sss}": ["stylelint --fix", "git add --force"]
"ignore": [
"package.json"
],
"linters": {
"*.{js,jsx}": [
"eslint --no-ignore --fix",
"git add --force"
],
"*.{json,md,graphql}": [
"prettier --write",
"git add --force"
],
"*.{css,less,styl,scss,sass,sss}": [
"stylelint --fix",
"git add --force"
]
}
},
"scripts": {
"precommit": "lint-staged",
Expand Down