Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2020-11-01 17:31:11 +0300
committerGitHub <noreply@github.com>2020-11-01 17:31:11 +0300
commite0b8fcdf899aa1c25fe2ddf050452f7451ed0cdd (patch)
treed1f9a5ec446f07a923255e719533750687fa7d90 /.eslintrc.json
parent59692ce8621f91f5b495221d24cc471e7a83abf4 (diff)
ESLint: enable new-cap rule but ignore properties (#32036)
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json7
1 files changed, 6 insertions, 1 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 59fe70f564..4c49fd0b1d 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -25,7 +25,12 @@
"error",
"always-multiline"
],
- "new-cap": "off",
+ "new-cap": [
+ "error",
+ {
+ "properties": false
+ }
+ ],
"no-console": "error",
"object-curly-spacing": [
"error",