Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
81 lines (80 sloc) 2.25 KB
{
"env": {
"browser": true,
"es6": true,
"greasemonkey": true,
"webextensions": true
},
"extends": "standard",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"rules": {
"array-bracket-spacing": ["error", "never"],
"arrow-parens": ["error", "as-needed"],
"brace-style": ["error", "1tbs", { "allowSingleLine": false }],
"camelcase": "off",
"computed-property-spacing": ["error", "never"],
"dot-notation": "error",
"indent": ["error", "tab", { "flatTernaryExpressions": true }],
"key-spacing": ["error", {
"multiLine": {
"beforeColon": false,
"afterColon": true
},
"align": {
"beforeColon": true,
"afterColon": true,
"on": "colon"
}
}],
"keyword-spacing": ["error", { "overrides": {
"catch": { "after": false },
"for": { "after": false },
"if": { "after": false },
"switch": { "after": false },
"while": { "after": false }
} }],
"max-len": ["error", 110, {
"ignoreRegExpLiterals": true,
"ignoreUrls": true
}],
"no-case-declarations": "error",
"no-global-assign": ["error", { "exceptions": ["FormData"] }],
"no-labels": ["error", { "allowLoop": true }],
"no-mixed-operators": "off",
"no-multi-spaces": ["error", {
"ignoreEOLComments": true,
"exceptions": { "VariableDeclarator": true }
}],
"no-extra-parens": ["error", "all", {
"conditionalAssign": false,
"nestedBinaryExpressions": false,
"returnAssign": false
}],
"no-extra-semi": "error",
"no-new": "off",
"no-tabs": "off",
"no-unsafe-finally": "off",
"no-useless-concat": "error",
"no-var": "error",
"object-curly-newline": ["error", { "multiline": true }],
"object-shorthand": ["error", "always"],
"one-var": "off",
"operator-linebreak": ["error", "after"],
"prefer-arrow-callback": "error",
"prefer-const": ["error", { "destructuring": "all" }],
"prefer-destructuring": ["error", { "object": true }],
"prefer-promise-reject-errors": ["error", { "allowEmptyReject": true }],
"quote-props": ["error", "as-needed"],
"quotes": ["error", "single", { "avoidEscape": true }],
"semi": ["error", "always"],
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"template-curly-spacing": ["error", "always"]
}
}
You can’t perform that action at this time.