aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 22:10:12 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 22:10:12 +0300
commit84ac571426f145744fb3bda6e1e2a33538e69923 (patch)
treedafa5a9c8f5e863d4a28d1addf96d1f7b343ae24
parent85c555f5a13eef8e52d9b196d474950c2607f0cb (diff)
downloadeslint-config-84ac571426f145744fb3bda6e1e2a33538e69923.tar.xz
eslint-config-84ac571426f145744fb3bda6e1e2a33538e69923.zip
feat(eslint): Rule "camelcase"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json11
2 files changed, 12 insertions, 1 deletions
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"
],