From 62ad24bd914a3607a34ad2450d2b88afbf34d707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sajn=C3=B3g?= Date: Fri, 3 Aug 2018 15:23:36 +0200 Subject: [PATCH 1/3] Add "no-unused-components" rule --- README.md | 1 + docs/rules/no-unused-components.md | 52 ++++ lib/configs/essential.js | 1 + lib/index.js | 1 + lib/rules/no-unused-components.js | 83 ++++++ lib/utils/casing.js | 7 +- lib/utils/index.js | 70 ++++- tests/lib/rules/no-unused-components.js | 354 ++++++++++++++++++++++++ tests/lib/utils/index.js | 39 +++ 9 files changed, 596 insertions(+), 12 deletions(-) create mode 100644 docs/rules/no-unused-components.md create mode 100644 lib/rules/no-unused-components.js create mode 100644 tests/lib/rules/no-unused-components.js diff --git a/README.md b/README.md index 7870ed231..a38bee46c 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi | | [vue/no-side-effects-in-computed-properties](./docs/rules/no-side-effects-in-computed-properties.md) | disallow side effects in computed properties | | | [vue/no-template-key](./docs/rules/no-template-key.md) | disallow `key` attribute on `