eslint-config-netflix
Version:
An ESLint config for JavaScript projects, brought to you by Netflix
102 lines (93 loc) • 2.53 kB
JavaScript
module.exports = {
'parser': 'babel-eslint',
'parserOptions': {
'ecmaVersion': 6,
'sourceType': 'module',
'ecmaFeatures': {
'jsx': true,
'impliedStrict': true,
'experimentalObjectRestSpread': true
}
},
'env': {
'browser': true,
'node': true,
'es6': true
},
'rules': {
'array-bracket-spacing': 0,
'array-callback-return': 2,
'camelcase': 0,
'class-methods-use-this': 2,
'comma-dangle': [ 2, 'never' ],
'comma-style': [ 2, 'last' ],
'curly': [ 2,'multi' ],
'dot-notation': [ 2, { 'allowKeywords': true } ],
'eol-last': 2,
'eqeqeq': [ 2, 'allow-null' ],
'guard-for-in': 2,
'indent': [ 2, 2, { 'SwitchCase': 1 } ],
'jsx-quotes': [ 2, 'prefer-double' ],
'key-spacing': 0,
'new-cap': 0,
'no-bitwise': 0,
'no-caller': 2,
'no-cond-assign': [ 2, 'except-parens' ],
'no-debugger': 2,
'no-empty': 2,
'no-empty-function': 2,
'no-lone-blocks': 2,
'no-eval': 2,
'no-extend-native': 2,
'no-extra-parens': 2,
'no-irregular-whitespace': 2,
'no-iterator': 2,
'no-loop-func': 2,
'no-multi-spaces': 0,
'no-multi-str': 2,
'no-multiple-empty-lines': 2,
'no-new': 0,
'no-plusplus': 0,
'no-proto': 2,
'no-script-url': 2,
'no-sequences': 2,
'no-shadow': 2,
'no-undef': 2,
'no-underscore-dangle': 0,
'no-unused-expressions': 0,
'no-unused-vars': [ 2, { 'ignoreRestSiblings': true } ],
'no-var': 2,
'no-with': 2,
'no-redeclare': 2,
'no-useless-constructor': 2,
'no-useless-rename': [ 'error', {
'ignoreDestructuring': true,
'ignoreImport': true,
'ignoreExport': true
} ],
'no-template-curly-in-string': 2,
'prefer-const': [ 'error', {
'destructuring': 'any',
'ignoreReadBeforeAssign': false
} ],
'generator-star-spacing': [ 'error', { 'before': true, 'after': true } ],
'no-const-assign': 2,
'no-empty-pattern': 2,
'prefer-arrow-callback': 2,
'prefer-rest-params': 2,
'prefer-spread': 2,
'prefer-template': 2,
'template-curly-spacing': [ 'error', 'never' ],
'yield-star-spacing': 2,
'object-curly-spacing': [ 2, 'always' ],
'quotes': [ 2, 'single', 'avoid-escape' ],
'quote-props': [ 2, 'consistent' ],
'semi-spacing': 0,
'semi': [ 2, 'never' ],
'space-before-blocks': [ 2, 'always' ],
'space-before-function-paren': 0,
'strict': 0,
'valid-typeof': 2,
'wrap-iife': [ 2, 'inside' ]
}
}