aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-19 13:05:05 +0300
committerValentin Popov <info@valentineus.link>2020-02-19 13:05:05 +0300
commit2131004cc8caa193e7f2503c0513a32c9fae14ff (patch)
treedea272d0df4f6de2b342a640dc4409c24d681d70
parent93b869a9634cdde43a2a643cd441ce87b04a68d9 (diff)
downloadeslint-config-2131004cc8caa193e7f2503c0513a32c9fae14ff.tar.xz
eslint-config-2131004cc8caa193e7f2503c0513a32c9fae14ff.zip
feat(unicron): prevent-abbreviations
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/unicorn/default.json18
2 files changed, 18 insertions, 2 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index a313067..f0328f3 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -516,7 +516,7 @@
- [ ] "prefer-text-content"
- [ ] "prefer-trim-start-end"
- [ ] "prefer-type-error"
-- [ ] "prevent-abbreviations"
+- [X] "prevent-abbreviations"
- [ ] "regex-shorthand"
- [ ] "throw-new-error"
diff --git a/src/rules/unicorn/default.json b/src/rules/unicorn/default.json
index 0967ef4..a6568f7 100644
--- a/src/rules/unicorn/default.json
+++ b/src/rules/unicorn/default.json
@@ -1 +1,17 @@
-{}
+{
+ "unicorn/prevent-abbreviations": [
+ "error",
+ {
+ "checkDefaultAndNamespaceImports": "internal",
+ "checkFilenames": true,
+ "checkProperties": true,
+ "checkShorthandImports": "internal",
+ "checkShorthandProperties": true,
+ "checkVariables": true,
+ "extendDefaultReplacements": true,
+ "extendDefaultWhitelist": true,
+ "replacements": {},
+ "whitelist": {}
+ }
+ ]
+}