Skip to content
Branch: master
Find file History
rchl and ota-meshi chore: Keep Nuxt's 'asyncData' and 'fetch' with 'data' (#823)
* chore: Keep Nuxt's 'asyncData' and 'fetch' with 'data'

Change the order of asyncData and fetch properties to be next
to data property. All those are function-wise more or less
equivalent so IMO it makes sense to keep them together. asyncData
and fetch are primarily for setting up component's data.

* Update order per review

* Add also 'head' property

* Change order of 'head'
Latest commit 27fc35c Aug 17, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md New: add vue/no-deprecated-scope-attribute rule (#838) Mar 4, 2019
array-bracket-spacing.md New: some core rules for <template> (#680) Jan 5, 2019
arrow-spacing.md ⭐️New: Add `vue/arrow-spacing` rule (#767) Jan 26, 2019
attribute-hyphenation.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
attributes-order.md Updated attributes-order.md: "ex:" --> "e.g." (#941) Aug 16, 2019
block-spacing.md ⭐️New: Add `vue/block-spacing` rule (#770) Jan 29, 2019
brace-style.md ⭐️New: Add `vue/brace-style` rule (#771) Jan 29, 2019
camelcase.md ⭐️New: Add `vue/camelcase` rule (#772) Jan 29, 2019
comma-dangle.md ⭐️New: Add `vue/comma-dangle` rule (#773) Jan 29, 2019
comment-directive.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
component-name-in-template-casing.md Fix: Add `registeredComponentsOnly` option to `component-name-in-temp… Jan 3, 2019
dot-location.md New: add `vue/dot-location` rule (#794) Feb 27, 2019
eqeqeq.md New: some core rules for <template> (#680) Jan 5, 2019
html-closing-bracket-newline.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
html-closing-bracket-spacing.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
html-end-tags.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
html-indent.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
html-quotes.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
html-self-closing.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
jsx-uses-vars.md Chore: Update `http:` links to `https:` (#761) Jan 9, 2019
key-spacing.md New: some core rules for <template> (#680) Jan 5, 2019
keyword-spacing.md New: add `vue/keyword-spacing` rule (#795) Feb 28, 2019
match-component-file-name.md Chore: update document of `match-component-file-name.md` (#788) Feb 3, 2019
max-attributes-per-line.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
multiline-html-element-content-newline.md feat: ignore anchor tags in multiline rule (#738) Feb 3, 2019
mustache-interpolation-spacing.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
name-property-casing.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
no-async-in-computed-properties.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
no-boolean-default.md ⭐️New: Add rule `no-boolean-default` (#612) Feb 3, 2019
no-confusing-v-for-v-if.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
no-deprecated-scope-attribute.md New: add vue/no-deprecated-scope-attribute rule (#838) Mar 4, 2019
no-dupe-keys.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
no-duplicate-attributes.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
no-empty-pattern.md New: add `vue/no-empty-pattern` rule (#798) Feb 27, 2019
no-multi-spaces.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
no-parsing-error.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
no-reserved-keys.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
no-restricted-syntax.md ⭐️New: Add `vue/no-restricted-syntax` rule (#758) Jan 9, 2019
no-shared-component-data.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
no-side-effects-in-computed-properties.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
no-spaces-around-equal-signs-in-attribute.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
no-template-key.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
no-template-shadow.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
no-textarea-mustache.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
no-unused-components.md Docs: rule documentation should match change in #606 (#828) Feb 27, 2019
no-unused-vars.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
no-use-v-if-with-v-for.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
no-v-html.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
object-curly-spacing.md New: some core rules for <template> (#680) Jan 5, 2019
order-in-components.md chore: Keep Nuxt's 'asyncData' and 'fetch' with 'data' (#823) Aug 17, 2019
prop-name-casing.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
require-component-is.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
require-default-prop.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
require-direct-export.md Docs: update docs of `require-direct-export.md` and `v-on-function-ca… Mar 4, 2019
require-prop-type-constructor.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
require-prop-types.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
require-render-return.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
require-v-for-key.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
require-valid-default-prop.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
return-in-computed-property.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
script-indent.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
singleline-html-element-content-newline.md feat: ignore anchor tags in multiline rule (#738) Feb 3, 2019
space-infix-ops.md New: some core rules for <template> (#680) Jan 5, 2019
space-unary-ops.md New: some core rules for <template> (#680) Jan 5, 2019
this-in-template.md
use-v-on-exact.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
v-bind-style.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
v-on-function-call.md Docs: update docs of `require-direct-export.md` and `v-on-function-ca… Mar 4, 2019
v-on-style.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
v-slot-style.md New: v-slot-style rule (fixes #801) (#836) Mar 4, 2019
valid-template-root.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
valid-v-bind.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
valid-v-cloak.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
valid-v-else-if.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
valid-v-else.md Docs: fix spelling mistake (#809) Feb 14, 2019
valid-v-for.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
valid-v-html.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
valid-v-if.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
valid-v-model.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
valid-v-on.md Docs: fix copy/paste error in `valid-v-on` document (#853) Mar 25, 2019
valid-v-once.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
valid-v-pre.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
valid-v-show.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018
valid-v-slot.md New: valid-v-slot rule (fixes #802) (#837) Mar 4, 2019
valid-v-text.md Chore: add `adjustCodeBlocks()` process to `update-docs.js` (#709) Dec 30, 2018

README.md

sidebarDepth
0

Available rules

::: tip Legend 🔧 Indicates that the rule is fixable, and using --fix option on the command line can automatically fix some of the reported problems. :::

Base Rules (Enabling Correct ESLint Parsing)

Enforce all the rules in this category, as well as all higher priority rules, with:

{
  "extends": "plugin:vue/base"
}
Rule ID Description
vue/comment-directive support comment-directives in <template>
vue/jsx-uses-vars prevent variables used in JSX to be marked as unused

Priority A: Essential (Error Prevention)

Enforce all the rules in this category, as well as all higher priority rules, with:

{
  "extends": "plugin:vue/essential"
}
Rule ID Description
vue/no-async-in-computed-properties disallow asynchronous actions in computed properties
vue/no-dupe-keys disallow duplication of field names
vue/no-duplicate-attributes disallow duplication of attributes
vue/no-parsing-error disallow parsing errors in <template>
vue/no-reserved-keys disallow overwriting reserved keys
vue/no-shared-component-data enforce component's data property to be a function 🔧
vue/no-side-effects-in-computed-properties disallow side effects in computed properties
vue/no-template-key disallow key attribute on <template>
vue/no-textarea-mustache disallow mustaches in <textarea>
vue/no-unused-components disallow registering components that are not used inside templates
vue/no-unused-vars disallow unused variable definitions of v-for directives or scope attributes
vue/no-use-v-if-with-v-for disallow use v-if on the same element as v-for
vue/require-component-is require v-bind:is of <component> elements
vue/require-prop-type-constructor require prop type to be a constructor 🔧
vue/require-render-return enforce render function to always return value
vue/require-v-for-key require v-bind:key with v-for directives
vue/require-valid-default-prop enforce props default values to be valid
vue/return-in-computed-property enforce that a return statement is present in computed property
vue/use-v-on-exact enforce usage of exact modifier on v-on
vue/valid-template-root enforce valid template root
vue/valid-v-bind enforce valid v-bind directives
vue/valid-v-cloak enforce valid v-cloak directives
vue/valid-v-else-if enforce valid v-else-if directives
vue/valid-v-else enforce valid v-else directives
vue/valid-v-for enforce valid v-for directives
vue/valid-v-html enforce valid v-html directives
vue/valid-v-if enforce valid v-if directives
vue/valid-v-model enforce valid v-model directives
vue/valid-v-on enforce valid v-on directives
vue/valid-v-once enforce valid v-once directives
vue/valid-v-pre enforce valid v-pre directives
vue/valid-v-show enforce valid v-show directives
vue/valid-v-text enforce valid v-text directives

Priority B: Strongly Recommended (Improving Readability)

Enforce all the rules in this category, as well as all higher priority rules, with:

{
  "extends": "plugin:vue/strongly-recommended"
}
Rule ID Description
vue/attribute-hyphenation enforce attribute naming style on custom components in template 🔧
vue/html-closing-bracket-newline require or disallow a line break before tag's closing brackets 🔧
vue/html-closing-bracket-spacing require or disallow a space before tag's closing brackets 🔧
vue/html-end-tags enforce end tag style 🔧
vue/html-indent enforce consistent indentation in <template> 🔧
vue/html-quotes enforce quotes style of HTML attributes 🔧
vue/html-self-closing enforce self-closing style 🔧
vue/max-attributes-per-line enforce the maximum number of attributes per line 🔧
vue/multiline-html-element-content-newline require a line break before and after the contents of a multiline element 🔧
vue/mustache-interpolation-spacing enforce unified spacing in mustache interpolations 🔧
vue/name-property-casing enforce specific casing for the name property in Vue components 🔧
vue/no-multi-spaces disallow multiple spaces 🔧
vue/no-spaces-around-equal-signs-in-attribute disallow spaces around equal signs in attribute 🔧
vue/no-template-shadow disallow variable declarations from shadowing variables declared in the outer scope
vue/prop-name-casing enforce specific casing for the Prop name in Vue components 🔧
vue/require-default-prop require default value for props
vue/require-prop-types require type definitions in props
vue/singleline-html-element-content-newline require a line break before and after the contents of a singleline element 🔧
vue/v-bind-style enforce v-bind directive style 🔧
vue/v-on-style enforce v-on directive style 🔧

Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)

Enforce all the rules in this category, as well as all higher priority rules, with:

{
  "extends": "plugin:vue/recommended"
}
Rule ID Description
vue/attributes-order enforce order of attributes 🔧
vue/no-v-html disallow use of v-html to prevent XSS attack
vue/order-in-components enforce order of properties in components 🔧
vue/this-in-template disallow usage of this in template

Uncategorized

No preset enables the rules in this category. Please enable each rule if you want.

For example:

{
  "rules": {
    "vue/array-bracket-spacing": "error"
  }
}
Rule ID Description
vue/array-bracket-spacing enforce consistent spacing inside array brackets 🔧
vue/arrow-spacing enforce consistent spacing before and after the arrow in arrow functions 🔧
vue/block-spacing disallow or enforce spaces inside of blocks after opening block and before closing block 🔧
vue/brace-style enforce consistent brace style for blocks 🔧
vue/camelcase enforce camelcase naming convention
vue/comma-dangle require or disallow trailing commas 🔧
vue/component-name-in-template-casing enforce specific casing for the component naming style in template 🔧
vue/dot-location enforce consistent newlines before and after dots 🔧
vue/eqeqeq require the use of === and !== 🔧
vue/key-spacing enforce consistent spacing between keys and values in object literal properties 🔧
vue/keyword-spacing enforce consistent spacing before and after keywords 🔧
vue/match-component-file-name require component name property to match its file name
vue/no-boolean-default disallow boolean defaults 🔧
vue/no-deprecated-scope-attribute disallow deprecated scope attribute (in Vue.js 2.5.0+) 🔧
vue/no-empty-pattern disallow empty destructuring patterns
vue/no-restricted-syntax disallow specified syntax
vue/object-curly-spacing enforce consistent spacing inside braces 🔧
vue/require-direct-export require the component to be directly exported
vue/script-indent enforce consistent indentation in <script> 🔧
vue/space-infix-ops require spacing around infix operators 🔧
vue/space-unary-ops enforce consistent spacing before or after unary operators 🔧
vue/v-on-function-call enforce or forbid parentheses after method calls without arguments in v-on directives 🔧

Deprecated

  • ⚠️ We're going to remove deprecated rules in the next major release. Please migrate to successor/new rules.
  • 😇 We don't fix bugs which are in deprecated rules since we don't have enough resources.
Rule ID Replaced by
vue/no-confusing-v-for-v-if vue/no-use-v-if-with-v-for
You can’t perform that action at this time.