mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
docs(linter): add plugin usage to example with configuration
closes #5400
This commit is contained in:
parent
608b7d37d6
commit
64f9575ed5
1 changed files with 4 additions and 3 deletions
|
|
@ -26,7 +26,7 @@ use crate::{
|
|||
///
|
||||
/// This configuration is aligned with ESLint v8's configuration schema (`eslintrc.json`).
|
||||
///
|
||||
/// Usage: `oxlint -c oxlintrc.json`
|
||||
/// Usage: `oxlint -c oxlintrc.json --import-plugin`
|
||||
///
|
||||
/// ::: danger NOTE
|
||||
///
|
||||
|
|
@ -41,7 +41,7 @@ use crate::{
|
|||
/// ```json
|
||||
/// {
|
||||
/// "env": {
|
||||
/// "browser": true
|
||||
/// "browser": true
|
||||
/// },
|
||||
/// "globals": {
|
||||
/// "foo": "readonly"
|
||||
|
|
@ -49,7 +49,8 @@ use crate::{
|
|||
/// "settings": {
|
||||
/// },
|
||||
/// "rules": {
|
||||
/// "eqeqeq": "warn"
|
||||
/// "eqeqeq": "warn",
|
||||
/// "import/no-cycle": "error"
|
||||
/// }
|
||||
/// }
|
||||
/// ```
|
||||
|
|
|
|||
Loading…
Reference in a new issue