Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documents and Fixed lint error #1014

Merged
merged 1 commit into from
Dec 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/rules/component-definition-name-casing.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ description: enforce specific casing for component definition name

- :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.

Define a style for component definition name casing for consistency purposes.

## :book: Rule Details

Define a style for component definition name casing for consistency purposes.
This rule aims to warn the component definition names other than the configured casing.

## :wrench: Options

Expand Down
2 changes: 2 additions & 0 deletions docs/rules/no-irregular-whitespace.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ description: disallow irregular whitespace
# vue/no-irregular-whitespace
> disallow irregular whitespace

## :book: Rule Details

`vue/no-irregular-whitespace` rule is aimed at catching invalid whitespace that is not a normal tab and space. Some of these characters may cause issues in modern browsers and others will be a debugging issue to spot.
`vue/no-irregular-whitespace` rule is the similar rule as core [no-irregular-whitespace] rule but it applies to the source code in .vue.

Expand Down
4 changes: 2 additions & 2 deletions lib/rules/attributes-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const ATTRS = {
OTHER_DIRECTIVES: 'OTHER_DIRECTIVES',
OTHER_ATTR: 'OTHER_ATTR',
EVENTS: 'EVENTS',
CONTENT: 'CONTENT',
};
CONTENT: 'CONTENT'
}

function getAttributeType (attribute, sourceCode) {
const isBind = attribute.directive && attribute.key.name.name === 'bind'
Expand Down