1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-20 12:21:35 +02:00

Clean up and tweak ESLint rules.

Also, refactor ESLint and stylelint config files; now everything will work from our root dir.
This commit is contained in:
XhmikosR
2017-12-16 13:44:17 +02:00
parent 92cc0aba7b
commit 6d336502c7
12 changed files with 84 additions and 39 deletions

View File

@@ -0,0 +1,33 @@
{
"env": {
"es6": false,
"qunit": true,
"jquery": true
},
"globals": {
"Util": false
},
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "script"
},
"extends": "../../../.eslintrc.json",
"rules": {
"no-console": "off",
// 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"
}
}