mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-07 04:54:24 +01:00
Update .eslintrc.json
Enforce ES5 for tests
This commit is contained in:
parent
5d066caace
commit
1b48122641
@ -2,34 +2,30 @@
|
|||||||
"extends": [
|
"extends": [
|
||||||
"../../../.eslintrc.json"
|
"../../../.eslintrc.json"
|
||||||
],
|
],
|
||||||
"overrides": [
|
"parserOptions": {
|
||||||
{
|
"ecmaVersion": 5,
|
||||||
"files": [
|
"sourceType": "script"
|
||||||
"*.js"
|
},
|
||||||
],
|
"env": {
|
||||||
"env": {
|
"es6": false,
|
||||||
"es6": false,
|
"jquery": true,
|
||||||
"jquery": true,
|
"qunit": true
|
||||||
"qunit": true
|
},
|
||||||
},
|
"globals": {
|
||||||
"globals": {
|
"bootstrap": false,
|
||||||
"bootstrap": false,
|
"sinon": false,
|
||||||
"sinon": false,
|
"Util": false,
|
||||||
"Util": false,
|
"Alert": false,
|
||||||
"Alert": false,
|
"Button": false,
|
||||||
"Button": false,
|
"Carousel": false,
|
||||||
"Carousel": false,
|
"Simulator": false,
|
||||||
"Simulator": false,
|
"Toast": false
|
||||||
"Toast": false
|
},
|
||||||
},
|
"rules": {
|
||||||
"rules": {
|
"no-var": "off",
|
||||||
// ES6
|
"object-shorthand": "off",
|
||||||
"no-var": "off",
|
"prefer-arrow-callback": "off",
|
||||||
"object-shorthand": "off",
|
"prefer-template": "off",
|
||||||
"prefer-arrow-callback": "off",
|
"prefer-rest-params": "off"
|
||||||
"prefer-template": "off",
|
}
|
||||||
"prefer-rest-params": "off"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user