mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-12-05 03:26:07 +03:00
94f269d6d0
1. Add Map as a global 2. Use readonly/writable over false/true Change 2 was done to use non-deprecated values (last paragraph of the section): https://eslint.org/docs/user-guide/configuring/language-options#using-configuration-files-1
287 lines
5.8 KiB
JSON
287 lines
5.8 KiB
JSON
{
|
|
"env": {
|
|
"browser": true
|
|
},
|
|
"extends": "eslint:recommended",
|
|
"rules": {
|
|
"indent": [
|
|
"error",
|
|
4
|
|
],
|
|
"linebreak-style": [
|
|
"error",
|
|
"unix"
|
|
],
|
|
"quotes": [
|
|
"error",
|
|
"double"
|
|
],
|
|
"semi": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"no-unused-vars": [
|
|
"error",
|
|
{
|
|
"args": "none"
|
|
}
|
|
],
|
|
"block-scoped-var": [
|
|
"error"
|
|
],
|
|
"consistent-return": [
|
|
"error"
|
|
],
|
|
"curly": [
|
|
"error",
|
|
"all"
|
|
],
|
|
"eqeqeq": [
|
|
"error"
|
|
],
|
|
"no-eval": [
|
|
"error"
|
|
],
|
|
"no-implicit-globals": [
|
|
"error"
|
|
],
|
|
"no-implied-eval": [
|
|
"error"
|
|
],
|
|
"no-invalid-this": [
|
|
"error"
|
|
],
|
|
"no-multi-spaces": [
|
|
"error",
|
|
{
|
|
"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": [
|
|
"error"
|
|
],
|
|
"no-useless-return": [
|
|
"error"
|
|
],
|
|
"no-with": [
|
|
"error"
|
|
],
|
|
"radix": [
|
|
"error"
|
|
],
|
|
"yoda": [
|
|
"error"
|
|
],
|
|
"no-undef-init": [
|
|
"error"
|
|
],
|
|
"no-use-before-define": [
|
|
"error",
|
|
{
|
|
"functions": false
|
|
}
|
|
],
|
|
"array-bracket-spacing": [
|
|
"error",
|
|
"never"
|
|
],
|
|
"block-spacing": [
|
|
"error"
|
|
],
|
|
"brace-style": [
|
|
"error"
|
|
],
|
|
"camelcase": [
|
|
"error"
|
|
],
|
|
"comma-spacing": [
|
|
"error"
|
|
],
|
|
"comma-style": [
|
|
"error"
|
|
],
|
|
"computed-property-spacing": [
|
|
"error"
|
|
],
|
|
"consistent-this": [
|
|
"error",
|
|
"self"
|
|
],
|
|
"eol-last": [
|
|
"error"
|
|
],
|
|
"func-call-spacing": [
|
|
"error"
|
|
],
|
|
"func-name-matching": [
|
|
"error"
|
|
],
|
|
"key-spacing": [
|
|
"error",
|
|
{
|
|
"mode": "minimum"
|
|
}
|
|
],
|
|
"keyword-spacing": [
|
|
"error"
|
|
],
|
|
"max-len": [
|
|
"error",
|
|
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": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"one-var-declaration-per-line": [
|
|
"error"
|
|
],
|
|
"one-var": [
|
|
"error",
|
|
"never"
|
|
],
|
|
"operator-assignment": [
|
|
"error"
|
|
],
|
|
"operator-linebreak": [
|
|
"error",
|
|
"after"
|
|
],
|
|
"quote-props": [
|
|
"error",
|
|
"as-needed"
|
|
],
|
|
"semi-spacing": [
|
|
"error"
|
|
],
|
|
"space-before-blocks": [
|
|
"error"
|
|
],
|
|
"space-before-function-paren": [
|
|
"error",
|
|
"never"
|
|
],
|
|
"space-in-parens": [
|
|
"error",
|
|
"never"
|
|
],
|
|
"space-infix-ops": [
|
|
"error"
|
|
],
|
|
"space-unary-ops": [
|
|
"error",
|
|
{
|
|
"words": false,
|
|
"nonwords": false
|
|
}
|
|
],
|
|
"unicode-bom": [
|
|
"error"
|
|
],
|
|
"no-caller": [
|
|
"error"
|
|
],
|
|
"no-loop-func": [
|
|
"error"
|
|
]
|
|
},
|
|
"globals": {
|
|
"OpenSeadragon": "writable",
|
|
"define": "readonly",
|
|
"module": "readonly",
|
|
"Map": "readonly"
|
|
}
|
|
}
|