aboutsummaryrefslogtreecommitdiff
path: root/js/tests
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2017-12-16 13:44:17 +0200
committerXhmikosR <[email protected]>2018-01-11 18:48:46 +0200
commit6d336502c7e26c4cc5b35f1d7a19c067b774cb1f (patch)
tree249843876c99ceda24f3a1a65006a5753811d4e9 /js/tests
parent92cc0aba7be08add9833e1303088928363c3c199 (diff)
downloadbootstrap-6d336502c7e26c4cc5b35f1d7a19c067b774cb1f.tar.xz
bootstrap-6d336502c7e26c4cc5b35f1d7a19c067b774cb1f.zip
Clean up and tweak ESLint rules.
Also, refactor ESLint and stylelint config files; now everything will work from our root dir.
Diffstat (limited to 'js/tests')
-rw-r--r--js/tests/karma.conf.js3
-rw-r--r--js/tests/unit/.eslintrc.json (renamed from js/tests/.eslintrc.json)17
2 files changed, 3 insertions, 17 deletions
diff --git a/js/tests/karma.conf.js b/js/tests/karma.conf.js
index da4e1ccb1..57d44718d 100644
--- a/js/tests/karma.conf.js
+++ b/js/tests/karma.conf.js
@@ -1,6 +1,5 @@
/* eslint-env node */
-
-'use strict'
+/* eslint no-process-env: 0 */
module.exports = (config) => {
const jqueryFile = process.env.USE_OLD_JQUERY ? 'js/tests/vendor/jquery-1.9.1.min.js' : 'assets/js/vendor/jquery-slim.min.js'
diff --git a/js/tests/.eslintrc.json b/js/tests/unit/.eslintrc.json
index 1452045e2..9e1c60a6c 100644
--- a/js/tests/.eslintrc.json
+++ b/js/tests/unit/.eslintrc.json
@@ -11,29 +11,16 @@
"ecmaVersion": 5,
"sourceType": "script"
},
- "extends": "../.eslintrc.json",
+ "extends": "../../../.eslintrc.json",
"rules": {
+ "no-console": "off",
// Best Practices
"consistent-return": "off",
- "no-alert": "off",
- "no-console": "off",
- "no-empty-function": "off",
- "no-extend-native": "off",
"no-magic-numbers": "off",
"vars-on-top": "off",
- // NodeJS and CommonJS
- "global-require": "off",
- "no-process-env": "off",
- "no-process-exit": "off",
- "no-sync": "off",
-
// Stylistic Issues
- "brace-style": "off",
"func-style": "off",
- "max-statements-per-line": "off",
- "object-curly-newline": "off",
- "object-property-newline": "off",
"spaced-comment": "off",
// ECMAScript 6