diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 15:46:47 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 15:46:47 +0300 |
commit | 443af8609fc463eede6d2c5d8398a239445fb87c (patch) | |
tree | 730c669fe5aa6dca50dac7270636e11669022d61 | |
parent | 2529229c18cc9ef46f77759d92bf54639339735d (diff) | |
download | eslint-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.md | 2 | ||||
-rw-r--r-- | src/rules/eslint.json | 8 |
2 files changed, 9 insertions, 1 deletions
@@ -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", |