-
Notifications
You must be signed in to change notification settings - Fork 245
chore(configs): alias prettier and eslint bins through the local config packages #6822
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
Changes from all commits
ee1e7ee
737d859
e179314
96897b0
9b03980
99e228d
382be64
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/usr/bin/env node | ||
| 'use strict'; | ||
| require('eslint/bin/eslint.js'); |
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| .nyc_output | ||
| .nyc-output | ||
| dist | ||
| coverage |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| #!/usr/bin/env node | ||
| 'use strict'; | ||
| const path = require('path'); | ||
| const fs = require('fs'); | ||
| if (process.argv.some((arg) => /^--(no-)?config/.test(arg))) { | ||
| throw new Error('--config option is not allowed'); | ||
| } | ||
| process.argv.push('--config', path.resolve(__dirname, '..', 'index.js')); | ||
| if (!fs.existsSync(path.resolve(process.cwd(), '.prettierignore'))) { | ||
| process.argv.push( | ||
| '--ignore-path', | ||
| path.resolve(__dirname, '..', '.prettierignore-default') | ||
| ); | ||
| } | ||
| require('prettier/bin-prettier.js'); |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new precommit doesn't skip some of the root files anymore that it was missing before (hence the massive diff) and I think that before this was happening by mistake, so I'm not planning to restore this behavior in the new precommit hook code. This got updated because I did a merge from main to resolve a conflict