aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-19 13:07:31 +0300
committerValentin Popov <info@valentineus.link>2020-02-19 13:07:31 +0300
commitf8b812927adb46c3b3f79c815e58b54e39dfaa72 (patch)
tree3a8b6a6cb64ca7636ebb366220094a097bca39e3
parent2131004cc8caa193e7f2503c0513a32c9fae14ff (diff)
downloadeslint-config-f8b812927adb46c3b3f79c815e58b54e39dfaa72.tar.xz
eslint-config-f8b812927adb46c3b3f79c815e58b54e39dfaa72.zip
feat(unicorn): filename-case
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/unicorn/default.json7
2 files changed, 8 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index f0328f3..cd7f62c 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -479,7 +479,7 @@
- [ ] "escape-case"
- [ ] "expiring-todo-comments"
- [ ] "explicit-length-check"
-- [ ] "filename-case"
+- [X] "filename-case"
- [ ] "import-index"
- [ ] "new-for-builtins"
- [ ] "no-abusive-eslint-disable"
diff --git a/src/rules/unicorn/default.json b/src/rules/unicorn/default.json
index a6568f7..2530a4a 100644
--- a/src/rules/unicorn/default.json
+++ b/src/rules/unicorn/default.json
@@ -1,4 +1,11 @@
{
+ "unicorn/filename-case": [
+ "error",
+ {
+ "kebabCase": true,
+ "pascalCase": true
+ }
+ ],
"unicorn/prevent-abbreviations": [
"error",
{