2 Commits

Author SHA1 Message Date
Kent C. Dodds
4e579627b7 lint-staged 2018-09-14 22:16:10 -06:00
Kent C. Dodds
053c5de689 husky 2018-09-14 22:14:43 -06:00
3 changed files with 1816 additions and 1 deletions

11
.lintstagedrc Normal file
View File

@@ -0,0 +1,11 @@
{
"linters": {
"*.js": [
"eslint"
],
"*.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx)": [
"prettier --write",
"git add"
]
}
}

1801
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -8,7 +8,8 @@
"flow": "flow",
"format": "npm run prettier -- --write",
"prettier": "prettier \"**/*.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx)\"",
"validate": "npm run lint && npm run prettier -- --list-different && npm run flow"
"validate": "npm run lint && npm run prettier -- --list-different && npm run flow",
"precommit": "lint-staged && npm run flow"
},
"keywords": [],
"author": "Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)",
@@ -18,6 +19,8 @@
"eslint": "^5.5.0",
"eslint-config-prettier": "^3.0.1",
"flow-bin": "^0.81.0",
"husky": "^0.14.3",
"lint-staged": "^7.2.2",
"prettier": "^1.14.2"
}
}