From 4cc37dab835095f5f5ed729d0f04990ee8d388ec Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Sat, 2 Oct 2021 17:42:55 +0900 Subject: [PATCH] Add vue/no-useless-template-attributes rule --- docs/rules/README.md | 1 + docs/rules/no-useless-template-attributes.md | 64 +++++++ lib/index.js | 1 + lib/rules/no-useless-template-attributes.js | 121 ++++++++++++++ .../rules/no-useless-template-attributes.js | 156 ++++++++++++++++++ 5 files changed, 343 insertions(+) create mode 100644 docs/rules/no-useless-template-attributes.md create mode 100644 lib/rules/no-useless-template-attributes.js create mode 100644 tests/lib/rules/no-useless-template-attributes.js diff --git a/docs/rules/README.md b/docs/rules/README.md index 2f89e3a53..544d24db7 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -325,6 +325,7 @@ For example: | [vue/no-unused-refs](./no-unused-refs.md) | disallow unused refs | | | [vue/no-use-computed-property-like-method](./no-use-computed-property-like-method.md) | disallow use computed property like method | | | [vue/no-useless-mustaches](./no-useless-mustaches.md) | disallow unnecessary mustache interpolations | :wrench: | +| [vue/no-useless-template-attributes](./no-useless-template-attributes.md) | disallow useless attribute on `