Skip to content

Commit 98b98c1

Browse files
babu-chcamc314
andauthored
feat(linter/vue): implement no-computed-properties-in-data rule (#22674)
related #11440 upstream: https://eslint.vuejs.org/rules/no-computed-properties-in-data.html AI disclosure: implemented with Claude Code, reviewed manually. --------- Co-authored-by: Cameron Clark <cameron.clark@hey.com>
1 parent dfa931d commit 98b98c1

8 files changed

Lines changed: 328 additions & 1 deletion

File tree

apps/oxlint/src-js/package/config.generated.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,6 +1294,7 @@ export interface DummyRuleMap {
12941294
"vue/define-props-destructuring"?: DummyRule;
12951295
"vue/max-props"?: DummyRule;
12961296
"vue/no-arrow-functions-in-watch"?: DummyRule;
1297+
"vue/no-computed-properties-in-data"?: DummyRule;
12971298
"vue/no-deprecated-data-object-declaration"?: DummyRule;
12981299
"vue/no-deprecated-delete-set"?: DummyRule;
12991300
"vue/no-deprecated-destroyed-lifecycle"?: DummyRule;

crates/oxc_linter/src/generated/rule_runner_impls.rs

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/oxc_linter/src/generated/rules_enum.rs

Lines changed: 35 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/oxc_linter/src/rules.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,7 @@ pub(crate) mod vue {
833833
pub mod define_props_destructuring;
834834
pub mod max_props;
835835
pub mod no_arrow_functions_in_watch;
836+
pub mod no_computed_properties_in_data;
836837
pub mod no_deprecated_data_object_declaration;
837838
pub mod no_deprecated_delete_set;
838839
pub mod no_deprecated_destroyed_lifecycle;

0 commit comments

Comments
 (0)