oxc/crates/oxc_linter_plugin/src
msdlisper 6a90cd4af4
feat(linter): add jsx-a11y settings (#1668)
When we developed linter for #1141 , we needed to configure some
settings for `jsx-a11y`, which was not supported before, but I am trying
to support it now.
like this:
```
fn config() -> serde_json::Value {
    serde_json::json!([2,{
        "ignoreNonDOM": true
    }])
}

fn settings() -> serde_json::Value {
    serde_json::json!({
        "jsx-a11y": {
            "components": {
                "Button": "button",
            }
        }
    })
}

let pass = vec![
    ("<Button />", Some(config()), Some(settings())),
];
```
2023-12-16 13:45:14 +08:00
..
errors.rs feat(linter_plugin): Add linter plugin crate (#798) 2023-08-28 11:40:00 +08:00
lib.rs feat(vscode): Add linter plugin to vscode extension (#813) 2023-08-29 23:35:32 -04:00
plugin.rs feat(vscode): Add linter plugin to vscode extension (#813) 2023-08-29 23:35:32 -04:00
raw_diagnostic.rs feat(linter_plugin): Add linter plugin crate (#798) 2023-08-28 11:40:00 +08:00
spans.rs feat(vscode): Add linter plugin to vscode extension (#813) 2023-08-29 23:35:32 -04:00
test.rs feat(linter): add jsx-a11y settings (#1668) 2023-12-16 13:45:14 +08:00
util.rs feat(vscode): Add linter plugin to vscode extension (#813) 2023-08-29 23:35:32 -04:00