aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2021-08-26 19:33:26 +0300
committerXhmikosR <[email protected]>2021-08-30 15:51:44 +0300
commitc02805bb8c9f5467a5d3fdb93edb5049272eb0a7 (patch)
treedae4a658ffd35984487bb9a79987ea90d9fac2be
parent4a4b61f0825ddbdb8acf1e9d3f1c1049a79aa3c7 (diff)
downloadbootstrap-c02805bb8c9f5467a5d3fdb93edb5049272eb0a7.tar.xz
bootstrap-c02805bb8c9f5467a5d3fdb93edb5049272eb0a7.zip
Move a few ESLint rules where they are needed.
-rw-r--r--.eslintrc.json2
-rw-r--r--js/tests/unit/.eslintrc.json5
2 files changed, 5 insertions, 2 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 0174b84d0..9bd404dfa 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -49,7 +49,6 @@
"error",
"never"
],
- "unicorn/consistent-function-scoping": "off",
"unicorn/explicit-length-check": "off",
"unicorn/no-array-callback-reference": "off",
"unicorn/no-array-for-each": "off",
@@ -57,7 +56,6 @@
"unicorn/no-for-loop": "off",
"unicorn/no-null": "off",
"unicorn/no-unused-properties": "error",
- "unicorn/no-useless-undefined": "off",
"unicorn/numeric-separators-style": "off",
"unicorn/prefer-array-flat": "off",
"unicorn/prefer-dom-node-dataset": "off",
diff --git a/js/tests/unit/.eslintrc.json b/js/tests/unit/.eslintrc.json
index adde3105d..6362a1acf 100644
--- a/js/tests/unit/.eslintrc.json
+++ b/js/tests/unit/.eslintrc.json
@@ -4,5 +4,10 @@
],
"env": {
"jasmine": true
+ },
+ "rules": {
+ "unicorn/consistent-function-scoping": "off",
+ "unicorn/no-useless-undefined": "off",
+ "unicorn/prefer-add-event-listener": "off"
}
}