eslint-config-arnellebalane
Version:
My personal ESLint configuration.
91 lines (90 loc) • 3.09 kB
JavaScript
module.exports = {
rules: {
'accessor-pairs': ['error', {
getWithoutSet: true
}],
'array-callback-return': ['error'],
'block-scoped-var': ['error'],
'class-method-use-this': ['off'],
'complexity': ['warn', {
max: 20
}],
'consistent-return': ['error'],
'curly': ['error', 'all'],
'default-case': ['error'],
'dot-location': ['error', 'property'],
'dot-notation': ['error'],
'eqeqeq': ['error', 'always'],
'guard-for-in': ['error'],
'max-classes-per-file': ['off'],
'no-alert': ['error'],
'no-caller': ['error'],
'no-case-declarations': ['error'],
'no-div-regex': ['error'],
'no-else-return': ['error'],
'no-empty-function': ['error'],
'no-empty-pattern': ['error'],
'no-eq-null': ['error'],
'no-eval': ['error'],
'no-extend-native': ['error'],
'no-extra-bind': ['error'],
'no-extra-label': ['error'],
'no-fallthrough': ['error'],
'no-floating-decimal': ['error'],
'no-global-assign': ['error'],
'no-implicit-coercion': ['error'],
'no-implicit-globals': ['error'],
'no-implied-eval': ['error'],
'no-invalid-this': ['off'],
'no-iterator': ['error'],
'no-labels': ['error', {
allowLoop: true
}],
'no-lone-blocks': ['error'],
'no-loop-func': ['error'],
'no-magic-numbers': ['off'],
'no-multi-spaces': ['error'],
'no-multi-str': ['error'],
'no-new': ['error'],
'no-new-func': ['error'],
'no-new-wrappers': ['error'],
'no-octal': ['error'],
'no-octal-escape': ['error'],
'no-param-reassign': ['off'],
'no-proto': ['error'],
'no-redeclare': ['error'],
'no-restricted-properties': ['off'],
'no-return-assign': ['error', 'except-parens'],
'no-return-await': ['error'],
'no-script-url': ['error'],
'no-self-assign': ['error'],
'no-self-compare': ['error'],
'no-sequences': ['error'],
'no-throw-literal': ['error'],
'no-unmodified-loop-condition': ['error'],
'no-unused-expressions': ['error', {
allowShortCircuit: true,
allowTernary: true,
allowTaggedTemplates: true
}],
'no-unused-labels': ['error'],
'no-useless-call': ['error'],
'no-useless-concat': ['error'],
'no-useless-escape': ['error'],
'no-useless-return': ['error'],
'no-void': ['error'],
'no-warning-comments': ['off'],
'no-with': ['error'],
'prefer-promise-reject-errors': ['error', {
allowEmptyReject: true
}],
'radix': ['error'],
'require-await': ['error'],
'require-unicode-regexp': ['off'],
'vars-on-top': ['off'],
'wrap-iife': ['error', 'inside'],
'yoda': ['warn', 'never', {
exceptRange: true
}]
}
};