Skip to content

Commit dc61f9d

Browse files
michalsnikmysticatea
authored andcommitted
Docs: fix wrong default (fixes #300)(#303)
* Update docs, mark fixable rule * Update defaults in max-attributes-per-line docs
1 parent 7752f5a commit dc61f9d

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
121121
| | [no-duplicate-attributes](./docs/rules/no-duplicate-attributes.md) | disallow duplication of attributes |
122122
| | [no-parsing-error](./docs/rules/no-parsing-error.md) | disallow parsing errors in `<template>` |
123123
| | [no-reserved-keys](./docs/rules/no-reserved-keys.md) | disallow overwriting reserved keys |
124-
| | [no-shared-component-data](./docs/rules/no-shared-component-data.md) | enforce component's data property to be a function |
124+
| :wrench: | [no-shared-component-data](./docs/rules/no-shared-component-data.md) | enforce component's data property to be a function |
125125
| | [no-side-effects-in-computed-properties](./docs/rules/no-side-effects-in-computed-properties.md) | disallow side effects in computed properties |
126126
| | [no-template-key](./docs/rules/no-template-key.md) | disallow `key` attribute on `<template>` |
127127
| | [no-textarea-mustache](./docs/rules/no-textarea-mustache.md) | disallow mustaches in `<textarea>` |
@@ -181,7 +181,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
181181

182182
| | Rule ID | Description |
183183
|:---|:--------|:------------|
184-
| | [html-quotes](./docs/rules/html-quotes.md) | enforce quotes style of HTML attributes |
184+
| :wrench: | [html-quotes](./docs/rules/html-quotes.md) | enforce quotes style of HTML attributes |
185185
| | [no-confusing-v-for-v-if](./docs/rules/no-confusing-v-for-v-if.md) | disallow confusing `v-for` and `v-if` on the same element |
186186
| | [order-in-components](./docs/rules/order-in-components.md) | enforce order of properties in components |
187187
| | [this-in-template](./docs/rules/this-in-template.md) | enforce usage of `this` in template |

docs/rules/html-quotes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# enforce quotes style of HTML attributes (html-quotes)
22

3+
- :wrench: The `--fix` option on the [command line](http://eslint.org/docs/user-guide/command-line-interface#fix) can automatically fix some of the problems reported by this rule.
4+
35
You can choose quotes of HTML attributes from:
46

57
- Double quotes: `<div class="foo">`

docs/rules/max-attributes-per-line.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This rule aims to enforce a number of attributes per line in templates.
99
It checks all the elements in a template and verifies that the number of attributes per line does not exceed the defined maximum.
1010
An attribute is considered to be in a new line when there is a line break between two attributes.
1111

12-
There is a configurable number of attributes that are acceptable in one-line case (default 3), as well as how many attributes are acceptable per line in multi-line case (default 1).
12+
There is a configurable number of attributes that are acceptable in one-line case (default 1), as well as how many attributes are acceptable per line in multi-line case (default 1).
1313

1414
:-1: Examples of **incorrect** code for this rule:
1515

@@ -48,7 +48,7 @@ There is a configurable number of attributes that are acceptable in one-line cas
4848
```json
4949
{
5050
"vue/max-attributes-per-line": [2, {
51-
"singleline": 3,
51+
"singleline": 1,
5252
"multiline": {
5353
"max": 1,
5454
"allowFirstLine": false

docs/rules/no-shared-component-data.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# enforce component's data property to be a function (no-shared-component-data)
22

3+
- :wrench: The `--fix` option on the [command line](http://eslint.org/docs/user-guide/command-line-interface#fix) can automatically fix some of the problems reported by this rule.
4+
35
When using the data property on a component (i.e. anywhere except on `new Vue`), the value must be a function that returns an object.
46

57
## :book: Rule Details

0 commit comments

Comments
 (0)