aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-05-04 19:32:09 +0300
committerGitHub <[email protected]>2020-05-04 19:32:09 +0300
commit37f2c04c5f05a9eb1c26e615c4edf12b8a0fa5f9 (patch)
tree9ad1779599e37b43a9a76b0f3f6433586bdfd5e6
parent9e8d6ba3f84a9676bc1fe47ceeee68467c0c7ffe (diff)
downloadbootstrap-37f2c04c5f05a9eb1c26e615c4edf12b8a0fa5f9.tar.xz
bootstrap-37f2c04c5f05a9eb1c26e615c4edf12b8a0fa5f9.zip
Clean up lint rules (#30721)
* Remove unneeded rule suppression * Format tests/unit/.eslintrc.json * build/.eslintrc.json: add strict for consistency
-rw-r--r--build/.eslintrc.json3
-rw-r--r--js/tests/unit/.eslintrc.json4
-rw-r--r--site/.eslintrc.json1
3 files changed, 5 insertions, 3 deletions
diff --git a/build/.eslintrc.json b/build/.eslintrc.json
index 08169ca4c..679bd26f7 100644
--- a/build/.eslintrc.json
+++ b/build/.eslintrc.json
@@ -8,6 +8,7 @@
},
"extends": "../.eslintrc.json",
"rules": {
- "no-console": "off"
+ "no-console": "off",
+ "strict": "error"
}
}
diff --git a/js/tests/unit/.eslintrc.json b/js/tests/unit/.eslintrc.json
index a8c1a6ae3..e7f8d5d2a 100644
--- a/js/tests/unit/.eslintrc.json
+++ b/js/tests/unit/.eslintrc.json
@@ -5,7 +5,9 @@
],
"overrides": [
{
- "files": ["**/*.spec.js"],
+ "files": [
+ "**/*.spec.js"
+ ],
"env": {
"jasmine": true
}
diff --git a/site/.eslintrc.json b/site/.eslintrc.json
index 690606863..f7b6b4a7f 100644
--- a/site/.eslintrc.json
+++ b/site/.eslintrc.json
@@ -33,7 +33,6 @@
"never"
],
"strict": "error",
- "unicorn/consistent-function-scoping": "off",
"unicorn/no-for-loop": "off",
"unicorn/no-null": "off",
"unicorn/prefer-dataset": "off",