75 lines
2 KiB
JSON
75 lines
2 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"jquery": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended"
|
|
],
|
|
"globals": {
|
|
"bowser": "readonly",
|
|
"I18n": "readonly",
|
|
"L": "readonly",
|
|
"OSM": "writable",
|
|
"Piwik": "readonly",
|
|
"querystring": "readonly",
|
|
"require": "readonly",
|
|
"updateLinks": "readonly"
|
|
},
|
|
"rules": {
|
|
"accessor-pairs": "error",
|
|
"array-callback-return": "error",
|
|
"block-scoped-var": "error",
|
|
"dot-notation": "error",
|
|
"eqeqeq": ["error", "smart"],
|
|
"keyword-spacing": "error",
|
|
"no-alert": "warn",
|
|
"no-caller": "error",
|
|
"no-div-regex": "error",
|
|
"no-eval": "error",
|
|
"no-extend-native": "error",
|
|
"no-extra-bind": "error",
|
|
"no-extra-label": "error",
|
|
"no-floating-decimal": "error",
|
|
"no-implicit-coercion": "warn",
|
|
"no-implicit-globals": "warn",
|
|
"no-implied-eval": "error",
|
|
"no-iterator": "error",
|
|
"no-labels": "error",
|
|
"no-label-var": "error",
|
|
"no-lone-blocks": "error",
|
|
"no-loop-func": "error",
|
|
"no-multi-str": "error",
|
|
"no-new": "error",
|
|
"no-new-func": "error",
|
|
"no-new-wrappers": "error",
|
|
"no-octal-escape": "error",
|
|
"no-process-env": "error",
|
|
"no-proto": "error",
|
|
"no-script-url": "error",
|
|
"no-self-compare": "error",
|
|
"no-sequences": "error",
|
|
"no-shadow-restricted-names": "error",
|
|
"no-throw-literal": "error",
|
|
"no-trailing-spaces": "error",
|
|
"no-unmodified-loop-condition": "error",
|
|
"no-unneeded-ternary": "error",
|
|
"no-unused-expressions": "off",
|
|
"no-unused-vars": "error",
|
|
"no-useless-call": "error",
|
|
"no-useless-concat": "error",
|
|
"no-useless-return": "error",
|
|
"no-use-before-define": ["error", {"functions": false}],
|
|
"no-void": "error",
|
|
"no-warning-comments": "warn",
|
|
"no-with": "error",
|
|
"quotes": ["error", "double"],
|
|
"radix": ["error", "always"],
|
|
"semi": ["error", "always"],
|
|
"semi-spacing": "error",
|
|
"space-unary-ops": "error",
|
|
"wrap-iife": "error",
|
|
"wrap-regex": "error",
|
|
"yoda": "error"
|
|
}
|
|
}
|