From 443af8609fc463eede6d2c5d8398a239445fb87c Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 16:46:47 +0400 Subject: feat(eslint): Rule "id-length" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/eslint.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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", -- cgit v1.2.3