summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 14:49:01 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 14:49:01 +0300
commitf6794430fc56483d322203d154e38b0d3173cbc3 (patch)
tree6cffc1eb91a1abd4b314d8dd7188395efe6984ab
parentea076dbff177f20446ce8fda5f526aee6feed8b1 (diff)
downloadeslint-config-f6794430fc56483d322203d154e38b0d3173cbc3.tar.xz
eslint-config-f6794430fc56483d322203d154e38b0d3173cbc3.zip
feat(eslint): Rule "sort-vars"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/eslint.json6
2 files changed, 7 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 98cad69..b803377 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -259,7 +259,7 @@
- [X] "semi-style"
- [X] "sort-imports"
- [X] "sort-keys"
-- [ ] "sort-vars"
+- [X] "sort-vars"
- [ ] "space-before-blocks"
- [ ] "space-before-function-paren"
- [ ] "space-in-parens"
diff --git a/src/rules/eslint.json b/src/rules/eslint.json
index 5f6f663..663c295 100644
--- a/src/rules/eslint.json
+++ b/src/rules/eslint.json
@@ -140,6 +140,12 @@
"natural": true
}
],
+ "sort-vars": [
+ "error",
+ {
+ "ignoreCase": false
+ }
+ ],
"valid-jsdoc": [
"off"
]