| { |
| "extends": "google", |
| "parserOptions": { |
| "ecmaVersion": 2018, |
| }, |
| "plugins": ["html"], |
| "rules": { |
| "accessor-pairs": "off", |
| "array-bracket-spacing": ["error", "never"], |
| "array-callback-return": "off", |
| "arrow-body-style": ["error", "as-needed", { |
| "requireReturnForObjectLiteral": true |
| }], |
| "arrow-parens": "off", |
| "block-scoped-var": "off", |
| "brace-style": ["error", "1tbs", { |
| "allowSingleLine": true |
| }], |
| "camelcase": "off", |
| "catapult-camelcase": ["error", { |
| "properties": "never" |
| }], |
| "comma-dangle": "off", |
| "comma-spacing": "error", |
| "comma-style": "error", |
| "computed-property-spacing": "error", |
| "consistent-this": ["error", "void"], |
| "constructor-super": "error", |
| "curly": ["error", "multi-line", "consistent"], |
| "default-case": "off", |
| "dot-location": "off", |
| "dot-notation": "error", |
| "eol-last": "error", |
| "eqeqeq": "error", |
| "generator-star-spacing": ["error", "after"], |
| "guard-for-in": "off", |
| "handle-callback-err": "off", |
| "indent": ["error", 2, { |
| "CallExpression": {"arguments": 2}, |
| "FunctionDeclaration": {"parameters": 2}, |
| "FunctionExpression": {"parameters": 2}, |
| "MemberExpression": 2, |
| "SwitchCase": 1, |
| "VariableDeclarator": 2, |
| }], |
| "key-spacing": "error", |
| "keyword-spacing": "error", |
| "linebreak-style": "error", |
| "max-len": ["error", { |
| "ignorePattern": "((// @suppress longLineCheck)|:)$", |
| "ignoreUrls": true |
| }], |
| "max-nested-callbacks": "off", |
| "max-statements-per-line": "off", |
| "new-cap": "off", |
| "new-parens": "off", |
| "no-alert": "off", |
| "no-array-constructor": "error", |
| "no-caller": "error", |
| "no-cond-assign": "off", |
| "no-confusing-arrow": ["error", { |
| "allowParens": true |
| }], |
| "no-console": "error", |
| "no-constant-condition": "off", |
| "no-control-regex": "off", |
| "no-dupe-keys": "off", |
| "no-else-return": "error", |
| "no-eq-null": "off", |
| "no-extend-native": "error", |
| "no-extra-bind": "off", |
| "no-extra-boolean-cast": "off", |
| "no-extra-semi": "error", |
| "no-floating-decimal": "off", |
| "no-func-assign": "off", |
| "no-implicit-coercion": "off", |
| "no-irregular-whitespace": "error", |
| "no-inner-declarations": "off", |
| "no-lonely-if": "off", |
| "no-loop-func": "off", |
| "no-mixed-spaces-and-tabs": "error", |
| "no-multi-spaces": ["error", { |
| "ignoreEOLComments": true, |
| }], |
| "no-multi-str": "error", |
| "no-multiple-empty-lines": ["error", {max: 2}], |
| "no-negated-condition": "off", |
| "no-new": "off", |
| "no-new-func": "off", |
| "no-new-object": "error", |
| "no-new-symbol": "error", |
| "no-new-wrappers": "error", |
| "no-proto": "off", |
| "no-redeclare": "off", |
| "no-regex-spaces": "off", |
| "no-restricted-globals": "off", |
| "no-return-assign": "off", |
| "no-sequences": "off", |
| "no-spaced-func": "off", |
| "no-this-before-super": "error", |
| "no-throw-literal": "error", |
| "no-trailing-spaces": "error", |
| "no-undef": "off", |
| "no-undef-init": "off", |
| "no-unexpected-multiline": "error", |
| "no-unneeded-ternary": "off", |
| "no-unreachable": "error", |
| "no-unused-expressions": "off", |
| "no-unused-vars": "off", |
| "no-use-before-define": "off", |
| "no-useless-call": "off", |
| "no-useless-concat": "off", |
| "no-useless-escape": "off", |
| "no-var": "error", |
| "prefer-const": "error", |
| "no-warning-comments": "off", |
| "no-whitespace-before-property": "off", |
| "no-with": "error", |
| "object-curly-spacing": "off", |
| "object-shorthand": ["error", "always"], |
| "one-var": ["error", { |
| var: "never", |
| let: "never", |
| const: "never", |
| }], |
| "one-var-declaration-per-line": "off", |
| "operator-assignment": "off", |
| "padded-blocks": ["error", "never"], |
| "quote-props": ["error", "consistent"], |
| "quotes": ["error", "single", {"allowTemplateLiterals": true}], |
| "radix": "off", |
| "require-jsdoc": "off", |
| "semi": "error", |
| "semi-spacing": "error", |
| "rest-spread-spacing": "error", |
| "space-before-blocks": "error", |
| "space-before-function-paren": ["error", "never"], |
| "space-unary-ops": "off", |
| "spaced-comment": ["error", "always", { |
| "line": { |
| "exceptions": ["/"], |
| }, |
| }], |
| "valid-jsdoc": "off", |
| "wrap-iife": "off", |
| "yield-star-spacing": ["error", "after"], |
| "yoda": "off" |
| } |
| } |