-
-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(linter): implement
Serialize
for OxlintConfig
- Loading branch information
Showing
8 changed files
with
80 additions
and
27 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
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
use oxc_span::CompactStr; | ||
use rustc_hash::FxHashMap; | ||
use schemars::JsonSchema; | ||
use serde::Deserialize; | ||
use serde::{Serialize, Deserialize}; | ||
|
||
// <https://github.com/jsx-eslint/eslint-plugin-jsx-a11y#configurations> | ||
#[derive(Debug, Deserialize, Default, JsonSchema)] | ||
#[derive(Debug, Default, Serialize, Deserialize, JsonSchema)] | ||
#[serde(default)] | ||
pub struct JSXA11yPluginSettings { | ||
#[serde(rename = "polymorphicPropName")] | ||
pub polymorphic_prop_name: Option<CompactStr>, | ||
#[serde(default)] | ||
pub components: FxHashMap<CompactStr, CompactStr>, | ||
} |
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