2015-08-18 19:22:46 -07:00
|
|
|
{
|
2016-10-25 23:18:52 +11:00
|
|
|
"root": true,
|
2019-02-21 15:55:16 +02:00
|
|
|
"extends": [
|
|
|
|
"plugin:import/errors",
|
|
|
|
"plugin:import/warnings",
|
|
|
|
"plugin:unicorn/recommended",
|
2021-05-04 15:57:55 +03:00
|
|
|
"xo",
|
2019-02-21 15:55:16 +02:00
|
|
|
"xo/browser"
|
|
|
|
],
|
2016-10-25 23:18:52 +11:00
|
|
|
"rules": {
|
2021-07-21 15:57:47 +03:00
|
|
|
"arrow-body-style": "off",
|
2019-02-21 15:55:16 +02:00
|
|
|
"capitalized-comments": "off",
|
2021-07-21 15:57:47 +03:00
|
|
|
"comma-dangle": [
|
|
|
|
"error",
|
|
|
|
"never"
|
|
|
|
],
|
2019-02-21 15:55:16 +02:00
|
|
|
"indent": [
|
|
|
|
"error",
|
|
|
|
2,
|
|
|
|
{
|
|
|
|
"MemberExpression": "off",
|
|
|
|
"SwitchCase": 1
|
2016-10-25 23:18:52 +11:00
|
|
|
}
|
|
|
|
],
|
2019-02-21 15:55:16 +02:00
|
|
|
"max-params": [
|
|
|
|
"warn",
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"multiline-ternary": [
|
|
|
|
"error",
|
|
|
|
"always-multiline"
|
|
|
|
],
|
2020-11-01 16:31:11 +02:00
|
|
|
"new-cap": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"properties": false
|
|
|
|
}
|
|
|
|
],
|
2019-10-25 11:25:30 +02:00
|
|
|
"no-console": "error",
|
2021-10-08 12:47:55 +03:00
|
|
|
"no-negated-condition": "off",
|
2019-02-21 15:55:16 +02:00
|
|
|
"object-curly-spacing": [
|
|
|
|
"error",
|
|
|
|
"always"
|
|
|
|
],
|
2021-07-21 15:57:47 +03:00
|
|
|
"operator-linebreak": [
|
|
|
|
"error",
|
|
|
|
"after"
|
|
|
|
],
|
2019-02-21 15:55:16 +02:00
|
|
|
"semi": [
|
|
|
|
"error",
|
|
|
|
"never"
|
|
|
|
],
|
2019-02-26 15:13:59 +02:00
|
|
|
"unicorn/explicit-length-check": "off",
|
2020-12-29 12:52:32 +02:00
|
|
|
"unicorn/no-array-callback-reference": "off",
|
2021-07-21 15:57:47 +03:00
|
|
|
"unicorn/no-array-method-this-argument": "off",
|
2020-04-28 16:28:46 +03:00
|
|
|
"unicorn/no-null": "off",
|
2019-02-26 15:13:59 +02:00
|
|
|
"unicorn/no-unused-properties": "error",
|
2021-07-21 15:57:47 +03:00
|
|
|
"unicorn/prefer-array-flat": "off",
|
2020-12-29 12:52:32 +02:00
|
|
|
"unicorn/prefer-dom-node-dataset": "off",
|
2021-05-04 15:27:03 +03:00
|
|
|
"unicorn/prefer-module": "off",
|
2019-03-30 17:36:54 +02:00
|
|
|
"unicorn/prefer-query-selector": "off",
|
2021-01-26 15:53:26 +02:00
|
|
|
"unicorn/prefer-spread": "off",
|
2019-03-30 17:36:54 +02:00
|
|
|
"unicorn/prevent-abbreviations": "off"
|
2016-10-25 23:18:52 +11:00
|
|
|
}
|
2015-08-18 19:22:46 -07:00
|
|
|
}
|