module.exports = { "extends": "standard", "globals": { "Float32Array": true, "Float64Array": true, "Uint8Array": true }, "env": { "mocha": true }, "rules": { // Overload "standard" rules "arrow-spacing": ["error", { "before": false, "after": true }], "curly": "off", "indent": ["error", 4, { "SwitchCase": 1 }], "no-labels": ["error", { "allowLoop": true, "allowSwitch": true }], "no-multi-spaces": ["off", { "exceptions": { "BinaryExpression": true, "VariableDeclarator": true } }], "no-new": "warn", "padded-blocks": "off", "quotes": "off", "semi": "off", "space-infix-ops": "off", "standard/array-bracket-even-spacing": "off", // allow matrix alignment "comma-spacing": "warn", // allow matrix alignment "one-var": "off", "spaced-comment": ["error", "always", { "exceptions": ["*"] }], // extends unset "standard" rules "array-bracket-spacing": "off", // allow matrix alignment "array-callback-return": "error", "arrow-body-style": ["warn", "as-needed"], "arrow-parens": "error", "block-scoped-var": "off", "callback-return": "off", "capitalized-comments": "off", "class-methods-use-this": "error", "complexity": "off", "computed-property-spacing": "off", "consistent-return": "off", "consistent-this": "off", "default-case": "off", "dot-notation": "error", "func-name-matching": "error", //"func-names": ["error", "as-needed"], //TODO: enable on the next refactoring "func-style": "off", "global-require": "off", "guard-for-in": "error", "id-blacklist": "error", "id-length": "off", "id-match": "error", "init-declarations": "off", "jsx-quotes": "error", "linebreak-style": ["warn", "unix"], "line-comment-position": "off", "lines-around-directive": "error", "max-depth": ["error", 6], "max-len": "off", "max-lines": "off", "max-nested-callbacks": "error", "max-params": "off", "max-statements": "off", "max-statements-per-line": "error", "multiline-ternary": "off", "newline-after-var": "off", "newline-before-return": "off", "newline-per-chained-call": "off", "no-alert": "error", "no-await-in-loop": "error", "no-bitwise": "off", "no-catch-shadow": "error", "no-confusing-arrow": "error", "no-continue": "error", "no-div-regex": "error", "no-else-return": "off", "no-empty-function": "off", "no-eq-null": "error", "no-implicit-coercion": "error", "no-implicit-globals": "error", "no-inline-comments": "off", "no-invalid-this": "off", "no-lonely-if": "error", "no-loop-func": "error", "no-magic-numbers": "off", "no-mixed-requires": "error", "no-multi-assign": "off", "no-native-reassign": "error", "no-negated-condition": "error", "no-nested-ternary": "off", "no-param-reassign": "off", "no-plusplus": "off", "no-process-env": "off", "no-process-exit": "error", "no-prototype-builtins": "error", "no-restricted-globals": "error", "no-restricted-imports": "error", "no-restricted-modules": "error", "no-restricted-properties": "error", "no-restricted-syntax": "error", "no-return-await": "error", "no-script-url": "error", "no-shadow": "off", "no-spaced-func": "off", "no-sync": "off", "no-ternary": "off", "no-undefined": "error", "no-underscore-dangle": "off", "no-useless-concat": "error", "no-var": "off", "no-void": "error", "no-warning-comments": "warn", "object-curly-newline": "error", "object-curly-spacing": "off", "object-shorthand": "off", "one-var-declaration-per-line": "off", "operator-assignment": "off", "prefer-arrow-callback": "off", "prefer-const": "off", "prefer-destructuring": ["error", {"array": false, "object": false}], "prefer-numeric-literals": "error", "prefer-reflect": "off", "prefer-rest-params": "off", "prefer-spread": "error", "prefer-template": "off", "quote-props": "off", "radix": ["error", "always"], "require-await": "error", "require-jsdoc": "off", "sort-imports": "error", "sort-keys": "off", "sort-vars": "off", "strict": "error", "valid-jsdoc": "off", "vars-on-top": "off", "wrap-regex": "error" } };