From dc48d1ccfdfa38965c550b1d34f872842651cc75 Mon Sep 17 00:00:00 2001 From: Yosuke Ota Date: Thu, 7 Oct 2021 17:25:53 +0900 Subject: [PATCH] Add `vue/no-computed-properties-in-data` rule (#1653) --- docs/rules/README.md | 1 + docs/rules/no-computed-properties-in-data.md | 45 ++++++ lib/index.js | 1 + lib/rules/no-computed-properties-in-data.js | 108 +++++++++++++++ .../rules/no-computed-properties-in-data.js | 130 ++++++++++++++++++ tools/new-rule.js | 2 +- 6 files changed, 286 insertions(+), 1 deletion(-) create mode 100644 docs/rules/no-computed-properties-in-data.md create mode 100644 lib/rules/no-computed-properties-in-data.js create mode 100644 tests/lib/rules/no-computed-properties-in-data.js diff --git a/docs/rules/README.md b/docs/rules/README.md index c15454cba..3f65e92c4 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -300,6 +300,7 @@ For example: | [vue/next-tick-style](./next-tick-style.md) | enforce Promise or callback style in `nextTick` | :wrench: | | [vue/no-bare-strings-in-template](./no-bare-strings-in-template.md) | disallow the use of bare strings in `