Skip to content

Commit

Permalink
Update .eslintrc.json
Browse files Browse the repository at this point in the history
Enforce ES5 for tests
  • Loading branch information
XhmikosR committed Oct 13, 2020
1 parent 5d066ca commit 1b48122
Showing 1 changed file with 26 additions and 30 deletions.
56 changes: 26 additions & 30 deletions js/tests/unit/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 1b48122

Please sign in to comment.