From e5e0ab29c77ab07447e249ae8b2d2901a1371b0b Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Wed, 27 Oct 2021 21:17:46 +0900 Subject: [PATCH 1/2] Add `vue/no-reserved-props` rule --- docs/rules/README.md | 2 + docs/rules/no-reserved-props.md | 52 ++ lib/configs/essential.js | 6 + lib/configs/vue3-essential.js | 1 + lib/index.js | 1 + lib/rules/no-reserved-props.js | 97 ++++ lib/utils/ts-ast-utils.js | 6 +- tests/lib/rules/no-reserved-props.js | 523 ++++++++++++++++++ tools/update-lib-configs.js | 14 +- typings/eslint-plugin-vue/util-types/utils.ts | 2 +- 10 files changed, 697 insertions(+), 7 deletions(-) create mode 100644 docs/rules/no-reserved-props.md create mode 100644 lib/rules/no-reserved-props.js create mode 100644 tests/lib/rules/no-reserved-props.js diff --git a/docs/rules/README.md b/docs/rules/README.md index 04d9046c1..7762e48eb 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -71,6 +71,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi | [vue/no-parsing-error](./no-parsing-error.md) | disallow parsing errors in `