UNPKG

eslint-config-rapid7

Version:

Rapid7's ESLint config, following our styleguide

62 lines (61 loc) 1.41 kB
module.exports = { rules: { curly: [2, 'all'], 'dot-location': [2, 'property'], 'dot-notation': 2, eqeqeq: 2, 'max-depth': [1, 6], 'max-len': [ 2, { code: 120, ignoreStrings: true, ignoreTemplateLiterals: true, }, ], 'max-statements': [1, 50], 'no-caller': 2, 'no-class-assign': 2, 'no-const-assign': 2, 'no-delete-var': 2, 'no-dupe-args': 2, 'no-dupe-class-members': 2, 'no-dupe-keys': 2, 'no-duplicate-case': 2, 'no-else-return': 2, 'no-empty': 2, 'no-empty-pattern': 2, 'no-eval': 2, 'no-ex-assign': 2, 'no-extra-bind': 2, 'no-extra-label': 2, 'no-floating-decimal': 2, 'no-implied-eval': 2, 'no-invalid-regexp': 2, 'no-multi-spaces': 2, 'no-native-reassign': 2, 'no-new-func': 2, 'no-new-object': 2, 'no-new-symbol': 2, 'no-obj-calls': 2, 'no-octal': 2, 'no-proto': 2, 'no-regex-spaces': 2, 'no-self-assign': 2, 'no-this-before-super': 2, 'no-undef': 2, 'no-unreachable': 2, 'no-unsafe-finally': 2, 'no-unsafe-negation': 2, 'no-unused-labels': 2, 'no-useless-call': 2, 'no-useless-computed-key': 2, 'no-useless-concat': 2, 'no-useless-rename': 2, 'no-useless-return': 2, radix: 2, 'unicode-bom': [2, 'never'], 'wrap-iife': [2, 'outside'], yoda: 2, }, };