forked from gatsbyjs/gatsby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add git hooks and simplify scripts (gatsbyjs#8427)
- [x] Add git hooks to make sure the files are formatted before commiting - [x] Simplify `format*` scripts - [x] Drop prettier-eslint (is just a wrapper for ESLint and Prettier that we are using already) ---- ### The actual formats will happen in follow up PRs - [Format preview for `format:code`](https://github.com/gatsbyjs/gatsby/pull/8623/files) - [Format preview for `format:other`](https://github.com/gatsbyjs/gatsby/pull/8622/files)
- Loading branch information
Showing
9 changed files
with
578 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,27 @@ | ||
/package.json | ||
*.min.js | ||
**/node_modules/** | ||
flow-typed | ||
|
||
# webfont demo styles | ||
**/specimen_files | ||
|
||
# built sites | ||
benchmarks/**/public | ||
e2e-tests/**/public | ||
examples/**/public | ||
integration-tests/**/public | ||
www/public | ||
|
||
# cache-dirs | ||
**/.cache | ||
|
||
# ignore built packages | ||
packages/*/*.js | ||
packages/gatsby/cache-dir/commonjs | ||
packages/gatsby/dist | ||
|
||
# fixtures | ||
**/__testfixtures__/** | ||
**/__tests__/fixtures/** | ||
|
||
infrastructure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"semi": false, | ||
"tabWidth": 2 | ||
"singleQuote": false, | ||
"tabWidth": 2, | ||
"trailingComma": "es5" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
console.log( | ||
`Gatsby uses precommit hooks to run our linting and style checks. We do this | ||
to avoid additional hassle during pull request reviews, so please fix any linting | ||
problems before submitting pull request, because all PRs must pass these checks. | ||
If you're doing something temporary, you can disable this hook with: | ||
git commit --no-verify | ||
If you want disable this hook for all future commits: | ||
npm run hooks:uninstall | ||
` | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
{ | ||
"globals": { | ||
"graphql": true | ||
}, | ||
"rules": { | ||
"react/display-name": [0], | ||
"react/jsx-key": [1], | ||
"react/prop-types": [0] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.