2015-08-19 10:22:46 +08:00
|
|
|
{
|
2016-10-25 20:18:52 +08:00
|
|
|
"root": true,
|
|
|
|
"parser": "babel-eslint",
|
2019-02-21 21:55:16 +08:00
|
|
|
"extends": [
|
|
|
|
"plugin:import/errors",
|
|
|
|
"plugin:import/warnings",
|
|
|
|
"plugin:unicorn/recommended",
|
|
|
|
"xo/esnext",
|
|
|
|
"xo/browser"
|
|
|
|
],
|
2016-10-25 20:18:52 +08:00
|
|
|
"rules": {
|
2019-02-21 21:55:16 +08:00
|
|
|
"capitalized-comments": "off",
|
2019-10-07 14:31:12 +08:00
|
|
|
"function-call-argument-newline": "off",
|
2019-02-21 21:55:16 +08:00
|
|
|
"indent": [
|
|
|
|
"error",
|
|
|
|
2,
|
|
|
|
{
|
|
|
|
"MemberExpression": "off",
|
|
|
|
"SwitchCase": 1
|
2016-10-25 20:18:52 +08:00
|
|
|
}
|
|
|
|
],
|
2019-02-21 21:55:16 +08:00
|
|
|
"max-params": [
|
|
|
|
"warn",
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"multiline-ternary": [
|
|
|
|
"error",
|
|
|
|
"always-multiline"
|
|
|
|
],
|
2019-02-26 21:13:59 +08:00
|
|
|
"new-cap": "off",
|
2019-02-21 21:55:16 +08:00
|
|
|
"object-curly-spacing": [
|
|
|
|
"error",
|
|
|
|
"always"
|
|
|
|
],
|
|
|
|
"semi": [
|
|
|
|
"error",
|
|
|
|
"never"
|
|
|
|
],
|
2019-09-24 17:34:57 +08:00
|
|
|
"unicorn/consistent-function-scoping": "off",
|
2019-02-26 21:13:59 +08:00
|
|
|
"unicorn/explicit-length-check": "off",
|
|
|
|
"unicorn/import-index": "off",
|
2019-06-03 19:26:52 +08:00
|
|
|
"unicorn/no-for-loop": "off",
|
2019-02-26 21:13:59 +08:00
|
|
|
"unicorn/no-unused-properties": "error",
|
2019-09-24 17:34:57 +08:00
|
|
|
"unicorn/prefer-dataset": "off",
|
2019-03-30 23:36:54 +08:00
|
|
|
"unicorn/prefer-includes": "off",
|
2019-02-26 21:13:59 +08:00
|
|
|
"unicorn/prefer-node-append": "off",
|
2019-03-30 23:36:54 +08:00
|
|
|
"unicorn/prefer-node-remove": "off",
|
|
|
|
"unicorn/prefer-query-selector": "off",
|
|
|
|
"unicorn/prefer-text-content": "off",
|
|
|
|
"unicorn/prevent-abbreviations": "off"
|
2016-10-25 20:18:52 +08:00
|
|
|
}
|
2015-08-19 10:22:46 +08:00
|
|
|
}
|