summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 00:40:57 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 00:40:57 +0300
commit93df216d0d99c3490e1651ba2de8cd68216436ad (patch)
treefbcaecf170271cd42c923dc67d9d20ec5089c3e2
parent94cbe35417b84d77ecf5fcec88de056f254c4ed2 (diff)
downloadeslint-config-93df216d0d99c3490e1651ba2de8cd68216436ad.tar.xz
eslint-config-93df216d0d99c3490e1651ba2de8cd68216436ad.zip
feat(eslint): Rule "no-new-func"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json3
2 files changed, 4 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 74ecf17..91cb41a 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -152,7 +152,7 @@
- [X] "no-negated-in-lhs"
- [X] "no-nested-ternary"
- [ ] "no-new"
-- [ ] "no-new-func"
+- [X] "no-new-func"
- [ ] "no-new-object"
- [ ] "no-new-require"
- [ ] "no-new-symbol"
diff --git a/src/rules/default.json b/src/rules/default.json
index 504747e..a59b8d3 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -296,6 +296,9 @@
"no-nested-ternary": [
"error"
],
+ "no-new-func": [
+ "error"
+ ],
"no-spaced-func": [
"off"
],