forked from prettier/prettier
-
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.
Accept multiple
--ignore-path
s (prettier#14332)
- Loading branch information
Showing
11 changed files
with
83 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#### Accept multiple `--ignore-path` (#14332 by @fisker) | ||
|
||
You can now pass multiple `--ignore-path`. | ||
|
||
```console | ||
prettier . --ignore-path=.prettier-ignore --ignore-path=.eslintignore | ||
``` |
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
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
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
16 changes: 0 additions & 16 deletions
16
tests/integration/__tests__/__snapshots__/ignore-path.js.snap
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,25 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ignore file when using --debug-check (stderr) 1`] = `""`; | ||
|
||
exports[`ignore file when using --debug-check (stdout) 1`] = `"other-regular-modules.js"`; | ||
|
||
exports[`ignore file when using --debug-check (write) 1`] = `[]`; | ||
|
||
exports[`ignore path (stderr) 1`] = `""`; | ||
|
||
exports[`ignore path (stdout) 1`] = `"regular-module.js"`; | ||
|
||
exports[`ignore path (write) 1`] = `[]`; | ||
|
||
exports[`outputs files as-is if no --write (stderr) 1`] = `""`; | ||
|
||
exports[`outputs files as-is if no --write (stdout) 1`] = `"'use strict';"`; | ||
|
||
exports[`outputs files as-is if no --write (write) 1`] = `[]`; | ||
|
||
exports[`support .prettierignore (stderr) 1`] = `""`; | ||
|
||
exports[`support .prettierignore (stdout) 1`] = `"other-regular-modules.js"`; | ||
|
||
exports[`support .prettierignore (write) 1`] = `[]`; |
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