0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00
Bootstrap/.eslintrc.json

58 lines
1.2 KiB
JSON
Raw Normal View History

2015-08-19 04:22:46 +02:00
{
2016-10-25 14:18:52 +02:00
"root": true,
"parser": "babel-eslint",
"extends": [
"plugin:import/errors",
"plugin:import/warnings",
"plugin:unicorn/recommended",
"xo/esnext",
"xo/browser"
],
2016-10-25 14:18:52 +02:00
"rules": {
"capitalized-comments": "off",
"indent": [
"error",
2,
{
"MemberExpression": "off",
"SwitchCase": 1
2016-10-25 14:18:52 +02:00
}
],
"max-params": [
"warn",
5
],
"multiline-ternary": [
"error",
"always-multiline"
],
2019-02-26 14:13:59 +01:00
"new-cap": "off",
"no-mixed-operators": "off",
"object-curly-spacing": [
"error",
"always"
],
"prefer-destructuring": [
"error",
{
"object": true,
"array": false
2016-10-25 14:18:52 +02:00
}
],
"semi": [
"error",
"never"
],
2019-02-26 14:13:59 +01:00
"unicorn/explicit-length-check": "off",
"unicorn/import-index": "off",
"unicorn/no-for-loop": "off",
2019-02-26 14:13:59 +01:00
"unicorn/no-unused-properties": "error",
"unicorn/prefer-includes": "off",
2019-02-26 14:13:59 +01:00
"unicorn/prefer-node-append": "off",
"unicorn/prefer-node-remove": "off",
"unicorn/prefer-query-selector": "off",
"unicorn/prefer-text-content": "off",
"unicorn/prevent-abbreviations": "off"
2016-10-25 14:18:52 +02:00
}
2015-08-19 04:22:46 +02:00
}