docs(linter): add plugin usage to example with configuration

closes #5400
This commit is contained in:
Boshen 2024-09-11 20:55:51 +08:00
parent 608b7d37d6
commit 64f9575ed5
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1

View file

@ -26,7 +26,7 @@ use crate::{
/// ///
/// This configuration is aligned with ESLint v8's configuration schema (`eslintrc.json`). /// 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 /// ::: danger NOTE
/// ///
@ -49,7 +49,8 @@ use crate::{
/// "settings": { /// "settings": {
/// }, /// },
/// "rules": { /// "rules": {
/// "eqeqeq": "warn" /// "eqeqeq": "warn",
/// "import/no-cycle": "error"
/// } /// }
/// } /// }
/// ``` /// ```