Skip to content

Commit

Permalink
Let Yarn handle package.json formatting, not lint-staged (#1614)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephfrazier authored and frenzzy committed May 14, 2018
1 parent 064707f commit 534aa32
Showing 1 changed file with 23 additions and 4 deletions.
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

0 comments on commit 534aa32

Please sign in to comment.