From 297d750200f999d7e9f8bd1253c9a2f33f8f9731 Mon Sep 17 00:00:00 2001 From: kevsommer Date: Fri, 15 Mar 2024 17:09:24 +0100 Subject: [PATCH 1/8] implements proposed max-props rule --- docs/rules/index.md | 1 + docs/rules/max-props.md | 66 ++++++++++++++++ lib/index.js | 1 + lib/rules/max-props.js | 69 ++++++++++++++++ tests/lib/rules/max-props.js | 148 +++++++++++++++++++++++++++++++++++ 5 files changed, 285 insertions(+) create mode 100644 docs/rules/max-props.md create mode 100644 lib/rules/max-props.js create mode 100644 tests/lib/rules/max-props.js diff --git a/docs/rules/index.md b/docs/rules/index.md index ad3d06906..1da930c3b 100644 --- a/docs/rules/index.md +++ b/docs/rules/index.md @@ -223,6 +223,7 @@ For example: | [vue/match-component-file-name](./match-component-file-name.md) | require component name property to match its file name | :bulb: | :hammer: | | [vue/match-component-import-name](./match-component-import-name.md) | require the registered component name to match the imported component name | | :warning: | | [vue/max-lines-per-block](./max-lines-per-block.md) | enforce maximum number of lines in Vue SFC blocks | | :warning: | +| [vue/max-props](./max-props.md) | enforce maximum number of props in Vue component | | :warning: | | [vue/new-line-between-multi-line-property](./new-line-between-multi-line-property.md) | enforce new lines between multi-line properties in Vue components | :wrench: | :lipstick: | | [vue/next-tick-style](./next-tick-style.md) | enforce Promise or callback style in `nextTick` | :wrench: | :hammer: | | [vue/no-bare-strings-in-template](./no-bare-strings-in-template.md) | disallow the use of bare strings in `