mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-26 23:04:32 +02:00
Update .eslintrc.json
Enforce ES5 for tests
This commit is contained in:
@@ -2,11 +2,10 @@
|
|||||||
"extends": [
|
"extends": [
|
||||||
"../../../.eslintrc.json"
|
"../../../.eslintrc.json"
|
||||||
],
|
],
|
||||||
"overrides": [
|
"parserOptions": {
|
||||||
{
|
"ecmaVersion": 5,
|
||||||
"files": [
|
"sourceType": "script"
|
||||||
"*.js"
|
},
|
||||||
],
|
|
||||||
"env": {
|
"env": {
|
||||||
"es6": false,
|
"es6": false,
|
||||||
"jquery": true,
|
"jquery": true,
|
||||||
@@ -23,13 +22,10 @@
|
|||||||
"Toast": false
|
"Toast": false
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
// ES6
|
|
||||||
"no-var": "off",
|
"no-var": "off",
|
||||||
"object-shorthand": "off",
|
"object-shorthand": "off",
|
||||||
"prefer-arrow-callback": "off",
|
"prefer-arrow-callback": "off",
|
||||||
"prefer-template": "off",
|
"prefer-template": "off",
|
||||||
"prefer-rest-params": "off"
|
"prefer-rest-params": "off"
|
||||||
}
|
}
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user