You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1
Original file line number
Diff line number
Diff line change
@@ -202,6 +202,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
202
202
203
203
|| Rule ID | Description |
204
204
|:---|:--------|:------------|
205
+
||[vue/attributes-order](./docs/rules/attributes-order.md)| enforce order of attributes |
205
206
|:wrench:|[vue/html-closing-bracket-newline](./docs/rules/html-closing-bracket-newline.md)| require or disallow a line break before tag's closing brackets |
206
207
|:wrench:|[vue/html-closing-bracket-spacing](./docs/rules/html-closing-bracket-spacing.md)| require or disallow a space before tag's closing brackets |
207
208
|:wrench:|[vue/script-indent](./docs/rules/script-indent.md)| enforce consistent indentation in `<script>`|
# enforce order of attributes (vue/attributes-order)
2
+
3
+
## :book: Rule Details
4
+
5
+
This rule aims to enfore ordering of component attributes. The default order is specified in the [Vue styleguide](https://vuejs.org/v2/style-guide/#Element-attribute-order-recommended) and is:
Copy file name to clipboardExpand all lines: docs/rules/script-indent.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# enforce consistent indentation in `<script>` (script-indent)
1
+
# enforce consistent indentation in `<script>` (vue/script-indent)
2
2
3
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.
0 commit comments