UNPKG

@iflow/eslint-config

Version:

ESLint Configuration

32 lines (31 loc) 1 kB
module.exports = { rules: { "class-methods-use-this": "off", "guard-for-in": "off", "no-restricted-properties": "off", "no-warning-comments": "off", "prefer-promise-reject-errors": "off", "no-plusplus": "off", // "max-classes-per-file": ["warn", 1], "no-else-return": ["warn", { allowElseIf: false }], "no-fallthrough": "off", "vars-on-top": "off", "max-len": "off", "no-extra-bind": "warn", "no-loop-func": "warn", "no-new": "warn", "no-new-func": "warn", "no-param-reassign": "off", "no-return-await": "warn", "no-script-url": "warn", "no-useless-catch": "warn", "no-useless-concat": "warn", "no-useless-escape": "warn", "no-useless-return": "warn", "no-use-before-define": "off", "no-mixed-operators": "warn", "consistent-return": "warn", "radix": "off", "yoda": "warn" } };