1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 08:39:56 +02:00

Switch to xo and remove babel-eslint

This commit is contained in:
XhmikosR
2020-06-12 21:43:39 +03:00
parent 39282bcc9d
commit 1c37a2ba77
7 changed files with 551 additions and 282 deletions

View File

@@ -1,40 +1,35 @@
{
"env": {
"es6": false,
"jquery": true,
"qunit": true
},
"globals": {
"bootstrap": false,
"sinon": false,
"Util": false,
"Alert": false,
"Button": false,
"Carousel": false,
"Simulator": false,
"Toast": false
},
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "script"
},
"extends": "../../../.eslintrc.json",
"rules": {
"no-console": "error",
// Best Practices
"consistent-return": "off",
"no-magic-numbers": "off",
"vars-on-top": "off",
// Stylistic Issues
"func-style": "off",
"spaced-comment": "off",
// ECMAScript 6
"no-var": "off",
"object-shorthand": "off",
"prefer-arrow-callback": "off",
"prefer-template": "off",
"prefer-rest-params": "off"
}
"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"
}
}
]
}