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
path: root/js/tests
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2020-10-05 15:55:17 +0300
committerXhmikosR <xhmikosr@gmail.com>2020-10-13 15:24:40 +0300
commit1b48122641074bb7168f0f6ab4eb2c668a9408a2 (patch)
tree2d3d6a88c626008c47b608d8dc1c12eca972c356 /js/tests
parent5d066caace6d7a90111ff0385c0e029d79df38cf (diff)
Update .eslintrc.json
Enforce ES5 for tests
Diffstat (limited to 'js/tests')
-rw-r--r--js/tests/unit/.eslintrc.json56
1 files changed, 26 insertions, 30 deletions
diff --git a/js/tests/unit/.eslintrc.json b/js/tests/unit/.eslintrc.json
index 85369c3a01..8782d64c78 100644
--- a/js/tests/unit/.eslintrc.json
+++ b/js/tests/unit/.eslintrc.json
@@ -2,34 +2,30 @@
"extends": [
"../../../.eslintrc.json"
],
- "overrides": [
- {
- "files": [
- "*.js"
- ],
- "env": {
- "es6": false,
- "jquery": true,
- "qunit": true
- },
- "globals": {
- "bootstrap": false,
- "sinon": false,
- "Util": false,
- "Alert": false,
- "Button": false,
- "Carousel": false,
- "Simulator": false,
- "Toast": false
- },
- "rules": {
- // ES6
- "no-var": "off",
- "object-shorthand": "off",
- "prefer-arrow-callback": "off",
- "prefer-template": "off",
- "prefer-rest-params": "off"
- }
- }
- ]
+ "parserOptions": {
+ "ecmaVersion": 5,
+ "sourceType": "script"
+ },
+ "env": {
+ "es6": false,
+ "jquery": true,
+ "qunit": true
+ },
+ "globals": {
+ "bootstrap": false,
+ "sinon": false,
+ "Util": false,
+ "Alert": false,
+ "Button": false,
+ "Carousel": false,
+ "Simulator": false,
+ "Toast": false
+ },
+ "rules": {
+ "no-var": "off",
+ "object-shorthand": "off",
+ "prefer-arrow-callback": "off",
+ "prefer-template": "off",
+ "prefer-rest-params": "off"
+ }
}