From 470b43c8c70d283c10b788dc3560cf29a375aa0f Mon Sep 17 00:00:00 2001 From: Chris Fritz Date: Sun, 8 Oct 2017 10:14:28 -0400 Subject: [PATCH 01/10] update recommended rules to match style guide --- .gitignore | 1 + README.md | 46 +++++++++--------- docs/rules/attribute-hyphenation.md | 1 + docs/rules/html-end-tags.md | 1 + docs/rules/html-self-closing.md | 1 + docs/rules/max-attributes-per-line.md | 2 + docs/rules/mustache-interpolation-spacing.md | 1 + docs/rules/name-property-casing.md | 1 + docs/rules/no-async-in-computed-properties.md | 2 + docs/rules/no-dupe-keys.md | 2 + docs/rules/no-duplicate-attributes.md | 4 +- docs/rules/no-multi-spaces.md | 1 + docs/rules/no-reserved-keys.md | 2 + docs/rules/no-shared-component-data.md | 2 + .../no-side-effects-in-computed-properties.md | 2 + docs/rules/no-template-key.md | 2 + docs/rules/order-in-components.md | 2 + docs/rules/require-default-prop.md | 2 + docs/rules/require-prop-types.md | 2 + docs/rules/require-render-return.md | 2 + docs/rules/require-valid-default-prop.md | 2 + docs/rules/return-in-computed-property.md | 2 + docs/rules/this-in-template.md | 2 + docs/rules/v-bind-style.md | 1 + docs/rules/v-on-style.md | 1 + lib/recommended-rules.js | 48 +++++++++---------- lib/rules/attribute-hyphenation.js | 2 +- lib/rules/html-end-tags.js | 2 +- lib/rules/html-no-self-closing.js | 2 +- lib/rules/html-quotes.js | 2 +- lib/rules/html-self-closing.js | 4 +- lib/rules/max-attributes-per-line.js | 4 +- lib/rules/mustache-interpolation-spacing.js | 2 +- lib/rules/name-property-casing.js | 2 +- lib/rules/no-async-in-computed-properties.js | 2 +- lib/rules/no-dupe-keys.js | 2 +- lib/rules/no-duplicate-attributes.js | 4 +- lib/rules/no-multi-spaces.js | 2 +- lib/rules/no-reserved-keys.js | 2 +- lib/rules/no-shared-component-data.js | 2 +- .../no-side-effects-in-computed-properties.js | 2 +- lib/rules/no-template-key.js | 2 +- lib/rules/order-in-components.js | 20 ++++---- lib/rules/require-default-prop.js | 2 +- lib/rules/require-prop-types.js | 2 +- lib/rules/require-render-return.js | 2 +- lib/rules/require-valid-default-prop.js | 2 +- lib/rules/return-in-computed-property.js | 2 +- lib/rules/this-in-template.js | 2 +- lib/rules/v-bind-style.js | 4 +- lib/rules/v-on-style.js | 4 +- tools/update-rules.js | 6 ++- 52 files changed, 133 insertions(+), 86 deletions(-) diff --git a/.gitignore b/.gitignore index f5ee9df9b..a56cde83a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /tests/integrations/*/node_modules /node_modules /test.* +yarn.lock diff --git a/README.md b/README.md index 62121c2e1..7d874277a 100644 --- a/README.md +++ b/README.md @@ -92,15 +92,15 @@ The `--fix` option on the command line automatically fixes problems reported by | | Rule ID | Description | |:---|:--------|:------------| -| | [no-dupe-keys](./docs/rules/no-dupe-keys.md) | disallow duplication of field names | +| :white_check_mark: | [no-dupe-keys](./docs/rules/no-dupe-keys.md) | disallow duplication of field names | | :white_check_mark: | [no-parsing-error](./docs/rules/no-parsing-error.md) | disallow parsing errors in `