2021-02-17 07:01:08 +01:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es6": true,
|
|
|
|
"webextensions": true
|
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended"
|
|
|
|
],
|
|
|
|
"globals": {
|
|
|
|
"Address": true,
|
|
|
|
"Environment": true,
|
|
|
|
"Header": true,
|
|
|
|
"MessageResponse": true,
|
|
|
|
"Resource": true,
|
|
|
|
"Setting": true,
|
|
|
|
"SettingDefaults": true,
|
|
|
|
"WebRequest": true,
|
|
|
|
"WebRequestType": true,
|
|
|
|
"Allowlist": true,
|
|
|
|
"BrowserType": true,
|
|
|
|
"IconType": true,
|
|
|
|
"Regex": true,
|
2021-04-16 06:44:38 +02:00
|
|
|
"MaterialIcons": true,
|
2021-02-17 07:01:08 +01:00
|
|
|
"Links": true,
|
|
|
|
"CDNs": true,
|
|
|
|
"IgnoredHost": true,
|
|
|
|
"EncodingTypes": true,
|
2021-05-04 06:06:38 +02:00
|
|
|
"ExtraInfoSpec": true,
|
2021-05-26 06:56:35 +02:00
|
|
|
"MathJaxFiles": true,
|
2021-08-11 06:29:09 +02:00
|
|
|
"BadgeSetting": true,
|
|
|
|
"BadgeSettingHTMLFilter": true,
|
2021-08-12 06:37:45 +02:00
|
|
|
"BadgeSettingMissingResource": true,
|
2021-09-29 06:50:53 +02:00
|
|
|
"BadResources": true,
|
2021-11-27 08:03:00 +01:00
|
|
|
"LogString": true,
|
2021-02-17 07:01:08 +01:00
|
|
|
|
|
|
|
"fileGuard": true,
|
|
|
|
"files": true,
|
|
|
|
"helpers": true,
|
|
|
|
"interceptor": true,
|
2021-02-21 19:06:20 +01:00
|
|
|
"log": true,
|
|
|
|
"logging": true,
|
|
|
|
"manipulateDOM": true,
|
2021-02-17 07:01:08 +01:00
|
|
|
"mappings": true,
|
2021-02-21 19:06:20 +01:00
|
|
|
"options": true,
|
|
|
|
"optionsAdvanced": true,
|
|
|
|
"optionsBasic": true,
|
|
|
|
"optionsInfo": true,
|
|
|
|
"optionsOther": true,
|
2021-02-17 07:01:08 +01:00
|
|
|
"requestAnalyzer": true,
|
|
|
|
"requestSanitizer": true,
|
2021-02-21 19:06:20 +01:00
|
|
|
"ruleGenerator": true,
|
2021-02-17 07:01:08 +01:00
|
|
|
"resources": true,
|
|
|
|
"shorthands": true,
|
|
|
|
"stateManager": true,
|
|
|
|
"stats": true,
|
2021-02-21 19:06:20 +01:00
|
|
|
"storageManager": true,
|
2021-02-17 07:01:08 +01:00
|
|
|
"targets": true,
|
2021-02-21 19:06:20 +01:00
|
|
|
"wrappers": true,
|
2021-02-17 07:01:08 +01:00
|
|
|
},
|
|
|
|
"overrides": {
|
|
|
|
"files": [
|
|
|
|
"core/constants.js",
|
|
|
|
"core/files.js",
|
|
|
|
"core/mappings.js",
|
|
|
|
"core/resources.js",
|
|
|
|
"core/shorthands.js"
|
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"no-unused-vars": "off"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"array-bracket-newline": "error",
|
|
|
|
"array-bracket-spacing": "error",
|
|
|
|
"arrow-body-style": "error",
|
|
|
|
"arrow-parens": "error",
|
|
|
|
"arrow-spacing": "error",
|
|
|
|
"block-spacing": "error",
|
2021-02-21 19:06:20 +01:00
|
|
|
"brace-style": [
|
|
|
|
"error",
|
|
|
|
"1tbs",
|
|
|
|
{ "allowSingleLine": true }
|
|
|
|
],
|
2021-02-17 07:01:08 +01:00
|
|
|
"camelcase": "error",
|
|
|
|
"comma-spacing": "error",
|
|
|
|
"comma-style": "error",
|
|
|
|
"computed-property-spacing": "error",
|
|
|
|
"consistent-this": "error",
|
|
|
|
"curly": ["error", "multi-line"],
|
|
|
|
"eol-last": "error",
|
|
|
|
"eqeqeq": "error",
|
|
|
|
"func-call-spacing": "error",
|
|
|
|
"function-paren-newline": "error",
|
|
|
|
"generator-star-spacing": "error",
|
|
|
|
"indent": [
|
|
|
|
"error",
|
2021-02-21 19:06:20 +01:00
|
|
|
4,
|
|
|
|
{"SwitchCase": 1}
|
2021-02-17 07:01:08 +01:00
|
|
|
],
|
|
|
|
"key-spacing": "error",
|
|
|
|
"keyword-spacing": "error",
|
|
|
|
"linebreak-style": [
|
|
|
|
"error",
|
|
|
|
"unix"
|
|
|
|
],
|
|
|
|
"new-cap": "error",
|
|
|
|
"new-parens": "error",
|
|
|
|
"no-array-constructor": "error",
|
|
|
|
"no-bitwise": "error",
|
|
|
|
"no-confusing-arrow": "error",
|
|
|
|
"no-continue": "error",
|
|
|
|
"no-console": ["error", { allow: ["warn", "error", "log"] }],
|
|
|
|
"no-duplicate-imports": "error",
|
|
|
|
"no-eval": "error",
|
|
|
|
"no-extend-native": "error",
|
|
|
|
"no-implicit-coercion": "error",
|
|
|
|
"no-implied-eval": "error",
|
|
|
|
"no-invalid-this": "error",
|
|
|
|
"no-iterator": "error",
|
|
|
|
"no-label-var": "error",
|
|
|
|
"no-labels": "error",
|
|
|
|
"no-lone-blocks": "error",
|
|
|
|
"no-loop-func": "error",
|
|
|
|
"no-multi-spaces": "error",
|
|
|
|
"no-multi-str": "error",
|
|
|
|
"no-multiple-empty-lines": [
|
|
|
|
"error", {
|
|
|
|
"max": 2,
|
|
|
|
"maxEOF": 1,
|
|
|
|
"maxBOF": 0
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"max-len": [
|
|
|
|
"error", {
|
|
|
|
"code": 120,
|
|
|
|
"ignoreUrls": true,
|
|
|
|
"ignoreStrings": true,
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"one-var": [2, {
|
|
|
|
"var": "never",
|
|
|
|
"let": "always",
|
|
|
|
"const": "never"
|
|
|
|
}],
|
|
|
|
"no-new": "error",
|
|
|
|
"no-new-func": "error",
|
|
|
|
"no-new-object": "error",
|
|
|
|
"no-new-wrappers": "error",
|
|
|
|
"no-octal-escape": "error",
|
|
|
|
"no-proto": "error",
|
|
|
|
"no-return-assign": "error",
|
|
|
|
"no-return-await": "error",
|
|
|
|
"no-script-url": "error",
|
|
|
|
"no-self-compare": "error",
|
|
|
|
"no-sequences": "error",
|
|
|
|
"no-shadow-restricted-names": "error",
|
|
|
|
"no-tabs": "error",
|
|
|
|
"no-throw-literal": "error",
|
|
|
|
"no-trailing-spaces": "error",
|
|
|
|
"no-undef-init": "error",
|
|
|
|
"no-unmodified-loop-condition": "error",
|
|
|
|
"no-unused-expressions": "error",
|
|
|
|
"no-use-before-define": "error",
|
|
|
|
"no-useless-call": "error",
|
|
|
|
"no-useless-concat": "error",
|
|
|
|
"no-useless-constructor": "error",
|
|
|
|
"no-useless-rename": "error",
|
|
|
|
"no-useless-return": "error",
|
|
|
|
"no-void": "error",
|
|
|
|
"no-warning-comments": "warn",
|
|
|
|
"no-whitespace-before-property": "error",
|
|
|
|
"no-with": "error",
|
|
|
|
"object-curly-spacing": "error",
|
|
|
|
"object-shorthand": [
|
|
|
|
"error",
|
|
|
|
"consistent-as-needed"
|
|
|
|
],
|
|
|
|
"operator-assignment": "error",
|
|
|
|
"operator-linebreak": "error",
|
|
|
|
"prefer-numeric-literals": "error",
|
|
|
|
"prefer-promise-reject-errors": "error",
|
|
|
|
"quote-props": "error",
|
|
|
|
"prefer-rest-params": "error",
|
|
|
|
"prefer-spread": "error",
|
|
|
|
"prefer-template": "error",
|
|
|
|
"quotes": [
|
|
|
|
"error",
|
|
|
|
"single"
|
|
|
|
],
|
|
|
|
"rest-spread-spacing": "error",
|
|
|
|
"require-await": "error",
|
|
|
|
"semi": "error",
|
|
|
|
"semi-spacing": "error",
|
|
|
|
"semi-style": "error",
|
|
|
|
"space-before-blocks": "error",
|
|
|
|
"space-before-function-paren": "error",
|
|
|
|
"space-in-parens": "error",
|
|
|
|
"space-infix-ops": "error",
|
|
|
|
"space-unary-ops": "error",
|
|
|
|
"spaced-comment": "error",
|
|
|
|
"strict": [
|
|
|
|
"error",
|
|
|
|
"global"
|
|
|
|
],
|
|
|
|
"switch-colon-spacing": "error",
|
|
|
|
"symbol-description": "error",
|
|
|
|
"template-curly-spacing": "error",
|
|
|
|
"template-tag-spacing": "error",
|
|
|
|
"unicode-bom": "error",
|
|
|
|
"vars-on-top": "error",
|
|
|
|
"wrap-regex": "error",
|
|
|
|
"yield-star-spacing": "error",
|
|
|
|
"yoda": "error",
|
|
|
|
}
|
|
|
|
}
|