2017-01-08 17:52:57 +03:00
|
|
|
{
|
2020-06-26 02:01:14 +03:00
|
|
|
"root": true,
|
2023-02-18 17:50:21 +03:00
|
|
|
"plugins": ["compat"],
|
2020-06-26 02:01:14 +03:00
|
|
|
"extends": [
|
2023-02-18 17:50:21 +03:00
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:compat/recommended"
|
2020-06-26 02:01:14 +03:00
|
|
|
],
|
2017-01-08 17:52:57 +03:00
|
|
|
"env": {
|
2023-05-28 12:54:01 +03:00
|
|
|
"es6": true,
|
2017-01-08 17:52:57 +03:00
|
|
|
"browser": true
|
|
|
|
},
|
2020-06-26 02:01:14 +03:00
|
|
|
"parserOptions": {
|
2023-05-28 12:54:01 +03:00
|
|
|
"ecmaVersion": 6,
|
2020-06-26 02:01:14 +03:00
|
|
|
"sourceType": "script",
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"globalReturn": false,
|
|
|
|
"impliedStrict": false,
|
|
|
|
"jsx": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"globals": {
|
2021-07-02 15:33:55 +03:00
|
|
|
"OpenSeadragon": "writable",
|
|
|
|
"define": "readonly",
|
|
|
|
"module": "readonly",
|
|
|
|
"Map": "readonly"
|
2020-06-26 02:01:14 +03:00
|
|
|
},
|
2017-01-08 17:52:57 +03:00
|
|
|
"rules": {
|
2020-06-26 02:01:14 +03:00
|
|
|
"no-unused-vars": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"args": "none"
|
|
|
|
}
|
|
|
|
],
|
2017-01-08 17:52:57 +03:00
|
|
|
"indent": [
|
|
|
|
"off",
|
|
|
|
4
|
|
|
|
],
|
|
|
|
"quotes": [
|
|
|
|
"off",
|
|
|
|
"double"
|
|
|
|
],
|
|
|
|
"semi": [
|
|
|
|
"error",
|
|
|
|
"always"
|
|
|
|
],
|
|
|
|
"block-scoped-var": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"consistent-return": [
|
2020-06-26 02:01:14 +03:00
|
|
|
"error"
|
2017-01-08 17:52:57 +03:00
|
|
|
],
|
|
|
|
"curly": [
|
|
|
|
"error",
|
|
|
|
"all"
|
|
|
|
],
|
|
|
|
"eqeqeq": [
|
2020-06-26 02:01:14 +03:00
|
|
|
"error"
|
2017-01-08 17:52:57 +03:00
|
|
|
],
|
|
|
|
"no-eval": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-implicit-globals": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-implied-eval": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-invalid-this": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-multi-spaces": [
|
|
|
|
"error",
|
|
|
|
{
|
2018-05-11 20:53:16 +03:00
|
|
|
"ignoreEOLComments": true,
|
2017-01-08 17:52:57 +03:00
|
|
|
"exceptions": {
|
|
|
|
"Property": true,
|
|
|
|
"VariableDeclarator": true,
|
|
|
|
"AssignmentExpression": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-new-wrappers": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-new": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-return-assign": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-self-compare": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-unmodified-loop-condition": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-unused-expressions": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-useless-call": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-useless-concat": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-useless-escape": [
|
2020-06-26 02:01:14 +03:00
|
|
|
"error"
|
2017-01-08 17:52:57 +03:00
|
|
|
],
|
|
|
|
"no-useless-return": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-with": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"radix": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"yoda": [
|
|
|
|
"off"
|
|
|
|
],
|
|
|
|
"no-undef-init": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-use-before-define": [
|
|
|
|
"error",
|
|
|
|
{
|
2020-06-26 02:01:14 +03:00
|
|
|
"functions": false,
|
|
|
|
"classes": true,
|
|
|
|
"variables": true
|
2017-01-08 17:52:57 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"array-bracket-spacing": [
|
|
|
|
"off",
|
|
|
|
"never"
|
|
|
|
],
|
|
|
|
"block-spacing": [
|
|
|
|
"off"
|
|
|
|
],
|
|
|
|
"brace-style": [
|
|
|
|
"off"
|
|
|
|
],
|
|
|
|
"camelcase": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"comma-spacing": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"comma-style": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"computed-property-spacing": [
|
|
|
|
"off"
|
|
|
|
],
|
|
|
|
"consistent-this": [
|
|
|
|
"off",
|
|
|
|
"self"
|
|
|
|
],
|
|
|
|
"eol-last": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"func-call-spacing": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"func-name-matching": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"key-spacing": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"mode": "minimum"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"keyword-spacing": [
|
|
|
|
"off"
|
|
|
|
],
|
|
|
|
"max-len": [
|
|
|
|
"off",
|
|
|
|
80
|
|
|
|
],
|
|
|
|
"max-statements-per-line": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"max": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"new-cap": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"new-parens": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-array-constructor": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-mixed-operators": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"groups": [
|
|
|
|
[
|
|
|
|
"&",
|
|
|
|
"|",
|
|
|
|
"^",
|
|
|
|
"~",
|
|
|
|
"<<",
|
|
|
|
">>",
|
|
|
|
">>>"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"==",
|
|
|
|
"!=",
|
|
|
|
"===",
|
|
|
|
"!==",
|
|
|
|
">",
|
|
|
|
">=",
|
|
|
|
"<",
|
|
|
|
"<="
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"&&",
|
|
|
|
"||"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"in",
|
|
|
|
"instanceof"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-new-object": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-tabs": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-trailing-spaces": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-unneeded-ternary": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-whitespace-before-property": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"object-curly-spacing": [
|
|
|
|
"off",
|
|
|
|
"always"
|
|
|
|
],
|
|
|
|
"one-var-declaration-per-line": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"one-var": [
|
|
|
|
"off",
|
|
|
|
"never"
|
|
|
|
],
|
|
|
|
"operator-assignment": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"operator-linebreak": [
|
|
|
|
"error",
|
|
|
|
"after"
|
|
|
|
],
|
|
|
|
"quote-props": [
|
2020-06-26 02:01:14 +03:00
|
|
|
"error",
|
2017-01-08 17:52:57 +03:00
|
|
|
"as-needed"
|
|
|
|
],
|
|
|
|
"semi-spacing": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"space-before-blocks": [
|
|
|
|
"off"
|
|
|
|
],
|
|
|
|
"space-before-function-paren": [
|
|
|
|
"off",
|
|
|
|
"never"
|
|
|
|
],
|
|
|
|
"space-in-parens": [
|
|
|
|
"off",
|
|
|
|
"never"
|
|
|
|
],
|
|
|
|
"space-infix-ops": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"space-unary-ops": [
|
|
|
|
"error",
|
|
|
|
{
|
2018-05-11 20:53:16 +03:00
|
|
|
"words": true,
|
2017-01-08 17:52:57 +03:00
|
|
|
"nonwords": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"unicode-bom": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-caller": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"no-loop-func": [
|
|
|
|
"error"
|
|
|
|
]
|
|
|
|
}
|
2020-06-26 02:01:14 +03:00
|
|
|
}
|