From 84ac571426f145744fb3bda6e1e2a33538e69923 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 23:10:12 +0400 Subject: feat(eslint): Rule "camelcase" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/default.json | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 1721ef0..6f90534 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -14,7 +14,7 @@ - [ ] "block-spacing" - [X] "brace-style" - [ ] "callback-return" -- [ ] "camelcase" +- [X] "camelcase" - [ ] "capitalized-comments" - [X] "class-methods-use-this" - [X] "comma-dangle" diff --git a/src/rules/default.json b/src/rules/default.json index 8fdf66e..71f73a1 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -17,6 +17,17 @@ "allowSingleLine": false } ], + "camelcase": [ + "error", + { + "allow": [ + "^UNSAFE_" + ], + "ignoreDestructuring": true, + "ignoreImports": false, + "properties": "always" + } + ], "class-methods-use-this": [ "warn" ], -- cgit v1.2.3