diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 22:10:12 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 22:10:12 +0300 |
commit | 84ac571426f145744fb3bda6e1e2a33538e69923 (patch) | |
tree | dafa5a9c8f5e863d4a28d1addf96d1f7b343ae24 | |
parent | 85c555f5a13eef8e52d9b196d474950c2607f0cb (diff) | |
download | eslint-config-84ac571426f145744fb3bda6e1e2a33538e69923.tar.xz eslint-config-84ac571426f145744fb3bda6e1e2a33538e69923.zip |
feat(eslint): Rule "camelcase"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/default.json | 11 |
2 files changed, 12 insertions, 1 deletions
@@ -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" ], |