From 5bc45a406ef9222239c122d53a526f468cb7bbeb Mon Sep 17 00:00:00 2001 From: erindepew Date: Thu, 4 Jan 2018 22:11:01 -0500 Subject: [PATCH 1/2] attribute order linting --- README.md | 1 + docs/rules/attributes-order.md | 113 ++++++++++++++++++ lib/index.js | 1 + lib/rules/attributes-order.js | 104 +++++++++++++++++ tests/lib/rules/attributes-order.js | 172 ++++++++++++++++++++++++++++ 5 files changed, 391 insertions(+) create mode 100644 docs/rules/attributes-order.md create mode 100644 lib/rules/attributes-order.js create mode 100644 tests/lib/rules/attributes-order.js diff --git a/README.md b/README.md index d6b4d7389..fa6c68d93 100644 --- a/README.md +++ b/README.md @@ -202,6 +202,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi | | Rule ID | Description | |:---|:--------|:------------| +| | [vue/attributes-order](./docs/rules/attributes-order.md) | enforce order of attributes | | :wrench: | [vue/html-closing-bracket-newline](./docs/rules/html-closing-bracket-newline.md) | require or disallow a line break before tag's closing brackets | | :wrench: | [vue/html-closing-bracket-spacing](./docs/rules/html-closing-bracket-spacing.md) | require or disallow a space before tag's closing brackets | | :wrench: | [vue/script-indent](./docs/rules/script-indent.md) | enforce consistent indentation in `