aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 15:46:47 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 15:46:47 +0300
commit443af8609fc463eede6d2c5d8398a239445fb87c (patch)
tree730c669fe5aa6dca50dac7270636e11669022d61
parent2529229c18cc9ef46f77759d92bf54639339735d (diff)
downloadeslint-config-443af8609fc463eede6d2c5d8398a239445fb87c.tar.xz
eslint-config-443af8609fc463eede6d2c5d8398a239445fb87c.zip
feat(eslint): Rule "id-length"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/eslint.json8
2 files changed, 9 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 1ddf364..a3b33df 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -47,7 +47,7 @@
- [ ] "guard-for-in"
- [ ] "handle-callback-err"
- [ ] "id-blacklist"
-- [ ] "id-length"
+- [X] "id-length"
- [ ] "id-match"
- [ ] "implicit-arrow-linebreak"
- [X] "indent"
diff --git a/src/rules/eslint.json b/src/rules/eslint.json
index caa810f..8661d4d 100644
--- a/src/rules/eslint.json
+++ b/src/rules/eslint.json
@@ -29,6 +29,14 @@
"error",
"always"
],
+ "id-length": [
+ "warn",
+ {
+ "max": 32,
+ "min": 2,
+ "properties": "always"
+ }
+ ],
"indent": [
"error",
"tab",