{"record":{"id":"0c4b4d7af2b07048","repo":"oxc-project/oxc","slug":"property-name-value-is-not-case-type","errorCode":null,"errorMessage":"Property name \"{value}\" is not {case_type}.","messagePattern":"Property name \"(.+?)\" is not (.+?)\\.","errorType":"validation","errorClass":"OxcDiagnostic","httpStatus":null,"severity":"error","filePath":"crates/oxc_linter/src/rules/vue/component_definition_name_casing.rs","lineNumber":25,"sourceCode":"};\nuse oxc_diagnostics::OxcDiagnostic;\nuse oxc_macros::declare_oxc_lint;\nuse oxc_span::{GetSpan, Span};\n\nuse crate::{\n    AstNode,\n    context::LintContext,\n    frameworks::FrameworkOptions,\n    rule::{DefaultRuleConfig, Rule},\n    utils::{find_property, is_vue_component_options_object, vue_casing},\n};\n\nfn component_definition_name_casing_diagnostic(\n    span: Span,\n    value: &str,\n    case_type: &str,\n) -> OxcDiagnostic {\n    OxcDiagnostic::warn(format!(\"Property name \\\"{value}\\\" is not {case_type}.\")).with_label(span)\n}\n\n#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Serialize, Deserialize, JsonSchema)]\nenum CaseType {\n    #[default]\n    #[serde(rename = \"PascalCase\")]\n    PascalCase,\n    #[serde(rename = \"kebab-case\")]\n    KebabCase,\n}\n\nimpl CaseType {\n    fn as_str(self) -> &'static str {\n        match self {\n            CaseType::PascalCase => \"PascalCase\",\n            CaseType::KebabCase => \"kebab-case\",\n        }\n    }","sourceCodeStart":7,"sourceCodeEnd":43,"githubUrl":"https://github.com/oxc-project/oxc/blob/e1e7af627c8843ab64044ed466b128fcc21a035b/crates/oxc_linter/src/rules/vue/component_definition_name_casing.rs#L7-L43","documentation":"Emitted by check_name_node in the vue component-definition-name-casing rule when a property name in the component definition object does not match the configured casing (camelCase or PascalCase). It is a naming-convention guard; the offending value is interpolated into the message with the expected case type.","triggerScenarios":"Thrown at crates/oxc_linter/src/rules/vue/component_definition_name_casing.rs:25 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Rename the property to match the configured casing convention","Adjust the rule's casing option if the existing naming is intentional"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e1e7af627c8843ab64044ed466b128fcc21a035b","analyzedAt":"2026-08-20T07:01:07.079Z","contentChangedAt":"2026-08-20T07:01:07.079Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}