UNPKG

@getflywheel/eslint-config-local

Version:
201 lines (186 loc) 5.29 kB
module.exports = { extends: [ 'plugin:import/errors', 'plugin:import/warnings' ], parser: 'babel-eslint', parserOptions: { 'ecmaVersion': 2018, 'sourceType': 'module', 'ecmaFeatures': { 'jsx': true } }, settings: { 'import/extensions': [ '.js', '.jsx' ], 'import/resolver': { 'node': { 'extensions': [ '.js', '.jsx' ] } } }, env: { 'es6': true, 'browser': true, 'node': true }, plugins: [ 'react', 'import' ], rules: { 'import/namespace': 0, 'import/no-named-as-default': 0, 'comma-dangle': [1, 'always-multiline'], 'no-cond-assign': 1, 'no-console': 1, 'no-constant-condition': 1, 'no-control-regex': 1, 'no-debugger': 1, 'no-dupe-keys': 1, 'no-empty': 1, 'no-empty-character-class': 1, 'no-ex-assign': 1, 'no-extra-boolean-cast': 1, 'no-extra-parens': 0, 'no-extra-semi': 1, 'no-func-assign': 1, 'no-inner-declarations': 1, 'no-invalid-regexp': 1, 'no-irregular-whitespace': 1, 'no-negated-in-lhs': 1, 'no-obj-calls': 1, 'no-regex-spaces': 1, 'no-sparse-arrays': 1, 'no-unreachable': 1, 'use-isnan': 1, 'valid-jsdoc': 1, 'valid-typeof': 1, 'block-scoped-var': 1, 'complexity': 1, 'consistent-return': 0, 'curly': 1, 'default-case': 0, 'dot-notation': 1, 'eqeqeq': [1, 'smart'], 'guard-for-in': 1, 'no-alert': 1, 'no-caller': 1, 'no-div-regex': 0, 'no-else-return': 1, 'no-eq-null': 1, 'no-eval': 1, 'no-extend-native': 1, 'no-extra-bind': 1, 'no-fallthrough': 0, 'no-floating-decimal': 1, 'no-implied-eval': 1, 'no-iterator': 1, 'no-labels': 1, 'no-lone-blocks': 1, 'no-loop-func': 1, 'no-multi-spaces': [1, {'ignoreEOLComments': true}], 'no-multi-str': 1, 'no-native-reassign': 1, 'no-new': 1, 'no-new-func': 1, 'no-new-wrappers': 1, 'no-octal': 1, 'no-octal-escape': 1, 'no-proto': 1, 'no-redeclare': 1, 'no-return-assign': 1, 'no-script-url': 1, 'no-self-compare': 1, 'no-sequences': 1, 'no-unused-expressions': 1, 'no-void': 1, 'no-warning-comments': 0, 'no-with': 1, 'radix': 1, 'vars-on-top': 1, 'wrap-iife': 1, 'yoda': [1, 'never'], 'strict': 0, 'no-catch-shadow': 1, 'no-delete-var': 1, 'no-label-var': 1, 'no-shadow': 0, 'no-shadow-restricted-names': 1, 'no-undef': 2, 'no-undef-init': 1, 'no-undefined': 1, 'no-unused-vars': [1, {'args': 'none'}], 'no-use-before-define': 1, 'react/jsx-uses-react': 1, 'react/jsx-uses-vars': 1, 'handle-callback-err': 0, 'no-mixed-requires': 0, 'no-new-require': 1, 'no-path-concat': 1, 'no-restricted-modules': 1, 'brace-style': [1, '1tbs'], 'camelcase': 1, 'comma-spacing': 0, 'comma-style': 1, 'consistent-this': 0, 'eol-last': 1, 'func-names': 0, 'func-style': 1, 'indent': [1, 'tab', {'SwitchCase': 1}], 'key-spacing': 1, 'max-nested-callbacks': 1, 'new-cap': 1, 'new-parens': 1, 'no-array-constructor': 1, 'no-lonely-if': 0, 'no-mixed-spaces-and-tabs': [1, 'smart-tabs'], 'no-multiple-empty-lines': 1, 'no-unneeded-ternary': 1, 'no-new-object': 1, 'semi-spacing': 1, 'no-spaced-func': 1, 'no-ternary': 0, 'no-trailing-spaces': 1, 'no-underscore-dangle': [1, {'allowAfterThis': true}], 'operator-assignment': 1, 'padded-blocks': 0, 'quote-props': [0, 'as-needed'], 'quotes': [1, 'single', {'avoidEscape': true, 'allowTemplateLiterals': true}], 'semi': 1, 'sort-vars': 0, 'space-before-function-paren': 1, 'keyword-spacing': 1, 'space-before-blocks': 1, 'object-curly-spacing': [1, 'always'], 'array-bracket-spacing': [1, 'never'], 'computed-property-spacing': 1, 'space-in-parens': [1, 'never'], 'space-infix-ops': 1, 'space-unary-ops': 1, 'spaced-comment': 0, 'wrap-regex': 1, 'no-var': 1, 'prefer-const': 1, 'prefer-rest-params': 1, 'prefer-spread': 1, 'prefer-arrow-callback': 1, 'arrow-spacing': 1, 'arrow-parens': [1, 'always'], 'arrow-body-style': [1, 'as-needed'], 'generator-star-spacing': 1, 'template-curly-spacing': [1, 'never'], 'max-depth': 0, 'max-len': 0, 'max-params': 0, 'max-statements': 0, 'no-bitwise': 1, 'no-plusplus': 0 } };