2015-08-19 05:22:46 +03:00
|
|
|
{
|
2016-10-25 15:18:52 +03:00
|
|
|
"root": true,
|
2019-02-21 16:55:16 +03:00
|
|
|
"extends": [
|
|
|
|
"plugin:import/errors",
|
|
|
|
"plugin:import/warnings",
|
|
|
|
"plugin:unicorn/recommended",
|
2021-05-04 15:57:55 +03:00
|
|
|
"xo",
|
2019-02-21 16:55:16 +03:00
|
|
|
"xo/browser"
|
|
|
|
],
|
2016-10-25 15:18:52 +03:00
|
|
|
"rules": {
|
2021-07-21 15:57:47 +03:00
|
|
|
"arrow-body-style": "off",
|
2019-02-21 16:55:16 +03:00
|
|
|
"capitalized-comments": "off",
|
2021-07-21 15:57:47 +03:00
|
|
|
"comma-dangle": [
|
|
|
|
"error",
|
|
|
|
"never"
|
|
|
|
],
|
2023-03-29 20:49:30 +03:00
|
|
|
"import/extensions": [
|
|
|
|
"error",
|
|
|
|
"ignorePackages",
|
|
|
|
{
|
|
|
|
"js": "always"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"import/first": "error",
|
|
|
|
"import/newline-after-import": "error",
|
|
|
|
"import/no-absolute-path": "error",
|
|
|
|
"import/no-amd": "error",
|
|
|
|
"import/no-cycle": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"ignoreExternal": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"import/no-duplicates": "error",
|
|
|
|
"import/no-extraneous-dependencies": "error",
|
|
|
|
"import/no-mutable-exports": "error",
|
|
|
|
"import/no-named-as-default": "error",
|
|
|
|
"import/no-named-as-default-member": "error",
|
|
|
|
"import/no-named-default": "error",
|
|
|
|
"import/no-self-import": "error",
|
|
|
|
"import/no-unassigned-import": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"import/no-useless-path-segments": "error",
|
|
|
|
"import/order": "error",
|
2019-02-21 16:55:16 +03:00
|
|
|
"indent": [
|
|
|
|
"error",
|
|
|
|
2,
|
|
|
|
{
|
|
|
|
"MemberExpression": "off",
|
|
|
|
"SwitchCase": 1
|
2016-10-25 15:18:52 +03:00
|
|
|
}
|
|
|
|
],
|
2024-02-06 22:46:52 +03:00
|
|
|
"logical-assignment-operators": "off",
|
2019-02-21 16:55:16 +03:00
|
|
|
"max-params": [
|
|
|
|
"warn",
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"multiline-ternary": [
|
|
|
|
"error",
|
|
|
|
"always-multiline"
|
|
|
|
],
|
2020-11-01 17:31:11 +03:00
|
|
|
"new-cap": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"properties": false
|
|
|
|
}
|
|
|
|
],
|
2019-10-25 12:25:30 +03:00
|
|
|
"no-console": "error",
|
2021-10-08 12:47:55 +03:00
|
|
|
"no-negated-condition": "off",
|
2019-02-21 16:55:16 +03:00
|
|
|
"object-curly-spacing": [
|
|
|
|
"error",
|
|
|
|
"always"
|
|
|
|
],
|
2021-07-21 15:57:47 +03:00
|
|
|
"operator-linebreak": [
|
|
|
|
"error",
|
|
|
|
"after"
|
|
|
|
],
|
2024-02-06 22:46:52 +03:00
|
|
|
"prefer-object-has-own": "off",
|
2022-11-12 11:09:36 +03:00
|
|
|
"prefer-template": "error",
|
2019-02-21 16:55:16 +03:00
|
|
|
"semi": [
|
|
|
|
"error",
|
|
|
|
"never"
|
|
|
|
],
|
2023-03-29 20:49:30 +03:00
|
|
|
"strict": "error",
|
2019-02-26 16:13:59 +03:00
|
|
|
"unicorn/explicit-length-check": "off",
|
2023-03-29 20:49:30 +03:00
|
|
|
"unicorn/filename-case": "off",
|
2024-04-09 17:55:17 +03:00
|
|
|
"unicorn/no-anonymous-default-export": "off",
|
2020-12-29 13:52:32 +03: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",
|
2022-12-13 19:01:31 +03:00
|
|
|
"unicorn/no-typeof-undefined": "off",
|
2019-02-26 16:13:59 +03:00
|
|
|
"unicorn/no-unused-properties": "error",
|
2023-05-16 16:39:10 +03:00
|
|
|
"unicorn/numeric-separators-style": "off",
|
2021-07-21 15:57:47 +03:00
|
|
|
"unicorn/prefer-array-flat": "off",
|
2023-05-16 16:39:10 +03:00
|
|
|
"unicorn/prefer-at": "off",
|
2020-12-29 13:52:32 +03:00
|
|
|
"unicorn/prefer-dom-node-dataset": "off",
|
2021-05-04 15:27:03 +03:00
|
|
|
"unicorn/prefer-module": "off",
|
2019-03-30 18:36:54 +03:00
|
|
|
"unicorn/prefer-query-selector": "off",
|
2021-01-26 16:53:26 +03:00
|
|
|
"unicorn/prefer-spread": "off",
|
2024-07-02 07:09:49 +03:00
|
|
|
"unicorn/prefer-string-raw": "off",
|
2023-05-16 16:39:10 +03:00
|
|
|
"unicorn/prefer-string-replace-all": "off",
|
2024-07-02 07:09:49 +03:00
|
|
|
"unicorn/prefer-structured-clone": "off",
|
2019-03-30 18:36:54 +03:00
|
|
|
"unicorn/prevent-abbreviations": "off"
|
2023-03-29 20:49:30 +03:00
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"build/**"
|
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"browser": false,
|
|
|
|
"node": true
|
|
|
|
},
|
|
|
|
"parserOptions": {
|
2023-08-06 07:37:24 +03:00
|
|
|
"sourceType": "module"
|
2023-03-29 20:49:30 +03:00
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"no-console": "off",
|
|
|
|
"unicorn/prefer-top-level-await": "off"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"js/**"
|
|
|
|
],
|
|
|
|
"parserOptions": {
|
|
|
|
"sourceType": "module"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"js/tests/*.js",
|
|
|
|
"js/tests/integration/rollup*.js"
|
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"node": true
|
|
|
|
},
|
|
|
|
"parserOptions": {
|
|
|
|
"sourceType": "script"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"js/tests/unit/**"
|
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"jasmine": true
|
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"no-console": "off",
|
|
|
|
"unicorn/consistent-function-scoping": "off",
|
|
|
|
"unicorn/no-useless-undefined": "off",
|
|
|
|
"unicorn/prefer-add-event-listener": "off"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"js/tests/visual/**"
|
|
|
|
],
|
|
|
|
"plugins": [
|
|
|
|
"html"
|
|
|
|
],
|
|
|
|
"settings": {
|
|
|
|
"html/html-extensions": [
|
|
|
|
".html"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"no-console": "off",
|
|
|
|
"no-new": "off",
|
|
|
|
"unicorn/no-array-for-each": "off"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"scss/tests/**"
|
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"node": true
|
|
|
|
},
|
|
|
|
"parserOptions": {
|
|
|
|
"sourceType": "script"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"site/**"
|
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"node": false
|
|
|
|
},
|
|
|
|
"parserOptions": {
|
|
|
|
"sourceType": "script",
|
|
|
|
"ecmaVersion": 2019
|
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"no-new": "off",
|
2023-05-16 16:39:10 +03:00
|
|
|
"unicorn/no-array-for-each": "off"
|
2023-03-29 20:49:30 +03:00
|
|
|
}
|
|
|
|
},
|
2024-03-08 13:43:44 +03:00
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"site/assets/js/**"
|
|
|
|
],
|
|
|
|
"parserOptions": {
|
|
|
|
"sourceType": "module",
|
|
|
|
"ecmaVersion": 2020
|
|
|
|
}
|
|
|
|
},
|
2023-03-29 20:49:30 +03:00
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"**/*.md"
|
|
|
|
],
|
|
|
|
"plugins": [
|
|
|
|
"markdown"
|
|
|
|
],
|
|
|
|
"processor": "markdown/markdown"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": [
|
2024-03-11 12:57:29 +03:00
|
|
|
"**/*.md/*.js",
|
|
|
|
"**/*.md/*.mjs"
|
2023-03-29 20:49:30 +03:00
|
|
|
],
|
2024-03-11 12:57:29 +03:00
|
|
|
"extends": "plugin:markdown/recommended-legacy",
|
2023-03-29 20:49:30 +03:00
|
|
|
"parserOptions": {
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"unicorn/prefer-node-protocol": "off"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2015-08-19 05:22:46 +03:00
|
|
|
}
|