-
-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(website): snapshot cli and json schema output
- Loading branch information
Showing
10 changed files
with
669 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
--- | ||
source: tasks/website/src/linter/cli.rs | ||
expression: snapshot | ||
--- | ||
<!-- textlint-disable --> | ||
|
||
|
||
## Usage | ||
**`oxlint`** \[**`-c`**=_`<./eslintrc.json>`_\] \[**`--fix`**\] \[_`PATH`_\]... | ||
|
||
## Basic Configuration | ||
- **`-c`**, **`--config`**=_`<./eslintrc.json>`_ — | ||
ESLint configuration file (experimental) | ||
|
||
* only `.json` extension is supported | ||
- **` --tsconfig`**=_`<./tsconfig.json>`_ — | ||
TypeScript `tsconfig.json` path for reading path alias and project references for import plugin | ||
|
||
|
||
|
||
## Allowing / Denying Multiple Lints | ||
Accumulate rules and categories from left to right on the command-line. | ||
|
||
|
||
For example `-D correctness -A no-debugger` or `-A all -D no-debugger`. | ||
The categories are: | ||
* `correctness` - code that is outright wrong or useless (default) | ||
* `suspicious` - code that is most likely wrong or useless | ||
* `pedantic` - lints which are rather strict or have occasional false positives | ||
* `style` - code that should be written in a more idiomatic way | ||
* `nursery` - new lints that are still under development | ||
* `restriction` - lints which prevent the use of language and library features | ||
* `all` - all the categories listed above except nursery | ||
|
||
Arguments: | ||
|
||
- **`-A`**, **`--allow`**=_`NAME`_ — | ||
Allow the rule or category (suppress the lint) | ||
- **`-W`**, **`--warn`**=_`NAME`_ — | ||
Deny the rule or category (emit a warning) | ||
- **`-D`**, **`--deny`**=_`NAME`_ — | ||
Deny the rule or category (emit an error) | ||
|
||
|
||
|
||
## Enable Plugins | ||
- **` --disable-react-plugin`** — | ||
Disable react plugin, which is turned on by default | ||
- **` --disable-unicorn-plugin`** — | ||
Disable unicorn plugin, which is turned on by default | ||
- **` --disable-oxc-plugin`** — | ||
Disable oxc unique rules, which is turned on by default | ||
- **` --disable-typescript-plugin`** — | ||
Disable TypeScript plugin, which is turned on by default | ||
- **` --import-plugin`** — | ||
Enable the experimental import plugin and detect ESM problems. It is recommended to use along side with the `--tsconfig` option. | ||
- **` --jsdoc-plugin`** — | ||
Enable the experimental jsdoc plugin and detect JSDoc problems | ||
- **` --jest-plugin`** — | ||
Enable the Jest plugin and detect test problems | ||
- **` --jsx-a11y-plugin`** — | ||
Enable the JSX-a11y plugin and detect accessibility problems | ||
- **` --nextjs-plugin`** — | ||
Enable the Next.js plugin and detect Next.js problems | ||
- **` --react-perf-plugin`** — | ||
Enable the React performance plugin and detect rendering performance problems | ||
|
||
|
||
|
||
## Fix Problems | ||
- **` --fix`** — | ||
Fix as many issues as possible. Only unfixed issues are reported in the output | ||
|
||
|
||
|
||
## Ignore Files | ||
- **` --ignore-path`**=_`PATH`_ — | ||
Specify the file to use as your .eslintignore | ||
- **` --ignore-pattern`**=_`PAT`_ — | ||
Specify patterns of files to ignore (in addition to those in .eslintignore) | ||
|
||
The supported syntax is the same as for .eslintignore and .gitignore files You should quote your patterns in order to avoid shell interpretation of glob patterns | ||
- **` --no-ignore`** — | ||
Disables excluding of files from .eslintignore files, **`--ignore-path`** flags and **`--ignore-pattern`** flags | ||
- **` --symlinks`** — | ||
Follow symbolic links. Oxlint ignores symbolic links by default. | ||
|
||
|
||
|
||
## Handle Warnings | ||
- **` --quiet`** — | ||
Disable reporting on warnings, only errors are reported | ||
- **` --deny-warnings`** — | ||
Ensure warnings produce a non-zero exit code | ||
- **` --max-warnings`**=_`INT`_ — | ||
Specify a warning threshold, which can be used to force exit with an error status if there are too many warning-level rule violations in your project | ||
|
||
|
||
|
||
## Output | ||
- **`-f`**, **`--format`**=_`ARG`_ — | ||
Use a specific output format (default, json, unix, checkstyle, github) | ||
|
||
|
||
|
||
## Miscellaneous | ||
- **` --silent`** — | ||
Do not display any diagnostics | ||
- **` --threads`**=_`INT`_ — | ||
Number of threads to use. Set to 1 for using only 1 CPU core | ||
|
||
|
||
|
||
## Available positional items: | ||
- _`PATH`_ — | ||
Single file, single path or list of paths | ||
|
||
|
||
|
||
## Available options: | ||
- **` --rules`** — | ||
list all the rules that are currently registered | ||
- **`-h`**, **`--help`** — | ||
Prints help information | ||
|
||
|
||
|
||
|
||
<!-- textlint-enable --> |
Oops, something went wrong.