module.exports = { parser: 'babel-eslint', parserOptions: { ecmaVersion: 7, ecmaFeatures: { experimentalObjectRestSpread: true, jsx: true }, sourceType: 'module' }, env: { browser: true, es6: true, node: true }, plugins: ['import', 'fp'], rules: { 'accessor-pairs': [ 'error', { setWithoutGet: true, getWithoutSet: false } ], 'array-bracket-spacing': [ 'error', 'never', { singleValue: false, objectsInArrays: false, arraysInArrays: true } ], 'array-callback-return': 'error', 'arrow-body-style': 'off', 'arrow-parens': ['error', 'as-needed'], 'arrow-spacing': [ 'error', { before: true, after: true } ], 'block-scoped-var': 'error', 'block-spacing': ['error', 'always'], 'brace-style': [ 'error', '1tbs', { allowSingleLine: true } ], 'callback-return': 'error', camelcase: 'off', 'class-methods-use-this': 'error', 'comma-dangle': ['error', 'never'], 'comma-spacing': [ 'error', { before: false, after: true } ], 'comma-style': ['error', 'last'], complexity: ['error', 3], 'computed-property-spacing': ['error', 'never'], 'consistent-return': 'error', 'consistent-this': ['error', 'that'], 'constructor-super': 'error', curly: 'error', 'default-case': 'error', 'dot-location': ['error', 'property'], 'dot-notation': 'error', 'eol-last': 'error', eqeqeq: 'error', 'func-call-spacing': ['error', 'never'], 'func-names': 'error', 'func-style': [ 'error', 'declaration', { allowArrowFunctions: true } ], 'generator-star-spacing': [ 'error', { before: false, after: true } ], 'global-require': 'error', 'guard-for-in': 'error', 'handle-callback-err': ['error', '^(err|error)$'], 'id-blacklist': 'off', 'id-length': 'off', 'id-match': 'off', indent: [ 'error', 2, { SwitchCase: 1 } ], 'init-declarations': 'off', 'jsx-quotes': ['error', 'prefer-single'], 'key-spacing': [ 'error', { beforeColon: false, afterColon: true, mode: 'strict' } ], 'keyword-spacing': [ 'error', { before: true, after: true } ], 'linebreak-style': ['error', 'unix'], 'lines-around-comment': 'off', 'max-depth': ['warn', 4], 'max-len': 'off', 'max-lines': [ 'error', { max: 500, skipBlankLines: true, skipComments: true } ], 'max-nested-callbacks': ['error', 3], 'max-params': ['error', 5], 'max-statements': 'off', 'max-statements-per-line': [ 'error', { max: 1 } ], 'multiline-ternary': 'off', 'new-cap': 'error', 'new-parens': 'error', 'newline-after-var': 'off', 'newline-before-return': 'off', 'newline-per-chained-call': [ 'error', { ignoreChainWithDepth: 3 } ], 'no-alert': 'error', 'no-array-constructor': 'error', 'no-bitwise': 'error', 'no-caller': 'error', 'no-case-declarations': 'error', 'no-catch-shadow': 'error', 'no-class-assign': 'error', 'no-cond-assign': ['error', 'always'], 'no-confusing-arrow': [ 'error', { allowParens: true } ], 'no-console': 'off', 'no-const-assign': 'error', 'no-constant-condition': 'error', 'no-continue': 'error', 'no-control-regex': 'error', 'no-debugger': 'warn', 'no-delete-var': 'error', 'no-div-regex': 'error', 'no-dupe-args': 'error', 'no-dupe-class-members': 'error', 'no-dupe-keys': 'error', 'no-duplicate-case': 'error', 'no-duplicate-imports': 'error', 'no-else-return': 'error', 'no-empty': 'error', 'no-empty-character-class': 'error', 'no-empty-function': 'warn', 'no-empty-pattern': 'error', 'no-eq-null': 'error', 'no-eval': 'error', 'no-ex-assign': 'error', 'no-extend-native': 'error', 'no-extra-bind': 'error', 'no-extra-boolean-cast': 'error', 'no-extra-label': 'error', 'no-extra-parens': ['error', 'functions'], 'no-extra-semi': 'error', 'no-fallthrough': 'error', 'no-floating-decimal': 'error', 'no-func-assign': 'error', 'no-global-assign': 'error', 'no-implicit-coercion': 'error', 'no-implicit-globals': 'error', 'no-implied-eval': 'error', 'no-inner-declarations': ['error', 'both'], 'no-inline-comments': 'off', 'no-invalid-regexp': [ 'error', { allowConstructorFlags: ['u', 'y'] } ], 'no-invalid-this': 'error', 'no-irregular-whitespace': 'error', 'no-iterator': 'error', 'no-label-var': 'error', 'no-labels': 'error', 'no-lone-blocks': 'error', 'no-lonely-if': 'error', 'no-loop-func': 'error', 'no-magic-numbers': 'off', 'no-mixed-operators': 'error', 'no-mixed-requires': 'error', 'no-mixed-spaces-and-tabs': 'error', 'no-multi-spaces': 'error', 'no-multi-str': 'error', 'no-multiple-empty-lines': [ 'error', { max: 2 } ], 'no-native-reassign': 'error', 'no-negated-condition': 'off', 'no-negated-in-lhs': 'error', 'no-nested-ternary': 'error', 'no-new': 'error', 'no-new-func': 'error', 'no-new-object': 'error', 'no-new-require': 'error', 'no-new-symbol': 'error', 'no-new-wrappers': 'error', 'no-obj-calls': 'error', 'no-octal': 'error', 'no-octal-escape': 'error', 'no-path-concat': 'error', 'no-param-reassign': [ 'error', { props: true } ], 'no-plusplus': [ 'error', { allowForLoopAfterthoughts: true } ], 'no-process-env': 'off', 'no-process-exit': 'off', 'no-proto': 'error', 'no-prototype-builtins': 'off', 'no-redeclare': 'error', 'no-regex-spaces': 'error', 'no-restricted-globals': 'off', 'no-restricted-imports': ['error', 'underscore'], 'no-restricted-modules': 'off', 'no-restricted-syntax': 'off', 'no-return-assign': 'error', 'no-script-url': 'error', 'no-self-assign': 'error', 'no-self-compare': 'error', 'no-sequences': 'error', 'no-shadow': [ 'error', { builtinGlobals: false } ], 'no-shadow-restricted-names': 'error', 'no-spaced-func': 'off', 'no-sparse-arrays': 'error', 'no-sync': 'off', 'no-tabs': 'error', 'no-template-curly-in-string': 'error', 'no-ternary': 'off', 'no-this-before-super': 'error', 'no-throw-literal': 'error', 'no-trailing-spaces': [ 'error', { skipBlankLines: true } ], 'no-undef': [ 'error', { typeof: true } ], 'no-undef-init': 'error', 'no-undefined': 'off', 'no-underscore-dangle': 'off', 'no-unexpected-multiline': 'off', 'no-unmodified-loop-condition': 'error', 'no-unneeded-ternary': 'error', 'no-unreachable': 'error', 'no-unsafe-finally': 'error', 'no-unsafe-negation': 'error', 'no-unused-expressions': 'error', 'no-unused-labels': 'error', 'no-unused-vars': [ 'error', { vars: 'all', args: 'all', argsIgnorePattern: '_' } ], 'no-use-before-define': [ 'error', { functions: true, classes: true } ], 'no-useless-call': 'error', 'no-useless-computed-key': 'error', 'no-useless-concat': 'error', 'no-useless-constructor': 'error', 'no-useless-escape': 'error', 'no-useless-rename': [ 'error', { ignoreDestructuring: false, ignoreImport: false, ignoreExport: false } ], 'no-var': 'error', 'no-void': 'error', 'no-warning-comments': 'error', 'no-whitespace-before-property': 'error', 'no-with': 'error', 'object-curly-newline': 'off', 'object-curly-spacing': ['error', 'always'], 'object-property-newline': [ 'error', { allowMultiplePropertiesPerLine: true } ], 'object-shorthand': [ 'error', 'always', { avoidQuotes: true } ], 'one-var': ['error', 'never'], 'one-var-declaration-per-line': 'off', 'operator-assignment': ['error', 'never'], 'operator-linebreak': ['error', 'after'], 'padded-blocks': ['error', 'never'], 'prefer-arrow-callback': [ 'error', { allowNamedFunctions: true } ], 'prefer-const': 'error', 'prefer-reflect': 'error', 'prefer-rest-params': 'error', 'prefer-spread': 'error', 'prefer-template': 'error', 'quote-props': ['error', 'as-needed'], quotes: ['error', 'single', 'avoid-escape'], radix: 'off', 'require-jsdoc': 'off', 'require-yield': 'error', 'rest-spread-spacing': ['error', 'never'], semi: ['error', 'never'], 'semi-spacing': [ 'error', { before: false, after: true } ], 'sort-imports': 'off', 'sort-keys': 'off', 'sort-vars': 'off', 'space-before-blocks': 'error', 'space-before-function-paren': 'error', 'space-in-parens': ['error', 'never'], 'space-infix-ops': 'error', 'space-unary-ops': [ 'error', { words: true, nonwords: false } ], 'spaced-comment': 'off', strict: 'off', 'symbol-description': 'error', 'template-curly-spacing': 'error', 'unicode-bom': ['error', 'never'], 'use-isnan': 'error', 'valid-jsdoc': [ 'error', { prefer: { return: 'return' }, requireReturn: false } ], 'valid-typeof': 'error', 'vars-on-top': 'off', 'wrap-iife': ['error', 'any'], 'wrap-regex': 'error', 'yield-star-spacing': ['error', 'after'], yoda: 'error', 'fp/no-arguments': 'error', 'fp/no-class': 'error', 'fp/no-delete': 'error', 'fp/no-events': 'error', 'fp/no-get-set': 'error', 'fp/no-let': 'error', 'fp/no-loops': 'error', 'fp/no-mutating-assign': 'error', 'fp/no-mutating-methods': [ 'error', { allowedObjects: ['_', 'R'] } ], 'fp/no-mutation': [ 'error', { commonjs: true } ], 'fp/no-nil': 'off', 'fp/no-proxy': 'off', 'fp/no-rest-parameters': 'off', 'fp/no-this': 'off', 'fp/no-throw': 'off', 'fp/no-unused-expression': 'off', 'fp/no-valueof-field': 'error', 'import/default': 'error', 'import/export': 'error', 'import/extensions': [ 'error', { js: 'never', jsx: 'always', json: 'always', css: 'always' } ], 'import/imports-first': 'error', 'import/named': 'error', 'import/namespace': 'error', 'import/newline-after-import': 'error', 'import/no-amd': 'error', 'import/no-commonjs': 'error', 'import/no-deprecated': 'error', 'import/no-duplicates': 'error', 'import/no-extraneous-dependencies': 'error', 'import/no-mutable-exports': 'error', 'import/no-named-as-default-member': 'error', 'import/no-named-as-default': 'error', 'import/no-namespace': 'off', 'import/no-nodejs-modules': 'off', 'import/no-restricted-paths': 'off', 'import/no-unresolved': 'error', 'import/order': [ 'error', { groups: [ 'builtin', 'external', 'internal', 'parent', 'sibling', 'index' ] } ], 'import/prefer-default-export': 'off' } }