Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…
| module.exports = { | |
| 'env': { | |
| 'browser': true, | |
| 'es6': true, | |
| }, | |
| 'extends': 'eslint:recommended', | |
| 'parserOptions': { | |
| 'sourceType': 'module', | |
| }, | |
| 'rules': { | |
| 'accessor-pairs': 'error', | |
| 'array-bracket-newline': 'off', | |
| 'array-bracket-spacing': 'off', | |
| 'array-callback-return': 'error', | |
| 'array-element-newline': 'off', | |
| 'arrow-body-style': 'error', | |
| 'arrow-parens': 'off', | |
| 'arrow-spacing': 'error', | |
| 'block-scoped-var': 'error', | |
| 'block-spacing': [ 'error', 'always' ], | |
| 'brace-style': [ 'error', '1tbs' ], | |
| 'callback-return': 'off', | |
| 'camelcase': 'error', | |
| 'capitalized-comments': 'off', | |
| 'class-methods-use-this': 'error', | |
| 'comma-dangle': [ 'error', 'always-multiline' ], | |
| 'comma-spacing': [ 'error', { 'after': true, 'before': false } ], | |
| 'comma-style': [ 'error', 'last' ], | |
| 'complexity': 'off', | |
| 'computed-property-spacing': 'off', | |
| 'consistent-return': 'off', | |
| 'consistent-this': 'off', | |
| 'curly': 'error', | |
| 'default-case': 'off', | |
| 'dot-location': [ 'error', 'property' ], | |
| 'dot-notation': [ 'error', { 'allowKeywords': true } ], | |
| 'eol-last': 'error', | |
| 'eqeqeq': [ 'error', 'always', { null: 'ignore' } ], | |
| 'for-direction': 'error', | |
| 'func-call-spacing': 'error', | |
| 'func-name-matching': 'error', | |
| 'func-names': [ 'error', 'never' ], | |
| 'func-style': [ 'error', 'expression' ], | |
| 'generator-star-spacing': 'error', | |
| 'global-require': 'error', | |
| 'guard-for-in': 'off', | |
| 'handle-callback-err': 'error', | |
| 'id-blacklist': 'error', | |
| 'id-length': 'off', | |
| 'id-match': 'error', | |
| 'indent': 'off', | |
| 'init-declarations': 'off', | |
| 'jsx-quotes': 'error', | |
| 'key-spacing': 'error', | |
| 'keyword-spacing': 'error', | |
| 'line-comment-position': 'off', | |
| 'linebreak-style': [ 'error', 'unix' ], | |
| 'lines-around-comment': 'off', | |
| 'max-depth': 'off', | |
| 'max-len': [ 'error', 80 ], | |
| 'max-lines': 'off', | |
| 'max-nested-callbacks': 'error', | |
| 'max-params': 'off', | |
| 'max-statements': 'off', | |
| 'max-statements-per-line': 'off', | |
| 'multiline-ternary': 'off', | |
| 'new-parens': 'error', | |
| 'newline-per-chained-call': 'off', | |
| 'no-alert': 'error', | |
| 'no-array-constructor': 'error', | |
| 'no-await-in-loop': 'error', | |
| 'no-bitwise': 'off', | |
| 'no-caller': 'error', | |
| 'no-catch-shadow': 'error', | |
| 'no-compare-neg-zero': 'error', | |
| 'no-confusing-arrow': [ 'error', { 'allowParens': true } ], | |
| 'no-constant-condition': [ 'error', { 'checkLoops': false } ], | |
| 'no-continue': 'off', | |
| 'no-div-regex': 'error', | |
| 'no-duplicate-imports': 'error', | |
| 'no-else-return': 'off', | |
| 'no-empty': [ 'error', { 'allowEmptyCatch': true } ], | |
| 'no-empty-function': 'off', | |
| 'no-eq-null': 'off', | |
| 'no-eval': 'error', | |
| 'no-extend-native': 'off', | |
| 'no-extra-bind': 'error', | |
| 'no-extra-label': 'error', | |
| 'no-extra-parens': 'off', | |
| 'no-floating-decimal': 'error', | |
| 'no-implicit-coercion': [ 'error', { | |
| 'boolean': false, | |
| 'number': false, | |
| 'string': false, | |
| }], | |
| 'no-implicit-globals': 'error', | |
| 'no-implied-eval': 'error', | |
| 'no-inline-comments': 'off', | |
| 'no-inner-declarations': [ 'error', 'functions' ], | |
| 'no-invalid-this': 'off', | |
| 'no-iterator': 'error', | |
| 'no-label-var': 'error', | |
| 'no-lone-blocks': 'error', | |
| 'no-lonely-if': 'off', | |
| 'no-loop-func': 'error', | |
| 'no-magic-numbers': 'off', | |
| 'no-mixed-operators': 'off', | |
| 'no-mixed-requires': 'error', | |
| 'no-multi-assign': 'off', | |
| 'no-multi-spaces': 'off', | |
| 'no-multi-str': 'error', | |
| 'no-multiple-empty-lines': 'error', | |
| 'no-native-reassign': 'error', | |
| 'no-negated-condition': 'off', | |
| 'no-negated-in-lhs': 'error', | |
| 'no-nested-ternary': 'off', | |
| 'no-new': 'off', | |
| 'no-new-func': 'off', | |
| 'no-new-object': 'off', | |
| 'no-new-require': 'error', | |
| 'no-new-wrappers': 'error', | |
| 'no-octal-escape': 'error', | |
| 'no-param-reassign': 'off', | |
| 'no-path-concat': 'error', | |
| 'no-plusplus': 'off', | |
| 'no-process-env': 'error', | |
| 'no-process-exit': 'error', | |
| 'no-proto': 'error', | |
| 'no-prototype-builtins': 'off', | |
| 'no-restricted-globals': 'off', | |
| 'no-restricted-imports': 'error', | |
| 'no-restricted-modules': 'error', | |
| 'no-restricted-properties': 'error', | |
| 'no-restricted-syntax': 'error', | |
| 'no-return-assign': 'off', | |
| 'no-return-await': 'error', | |
| 'no-script-url': 'error', | |
| 'no-self-compare': 'error', | |
| 'no-sequences': 'error', | |
| 'no-shadow': 'off', | |
| 'no-shadow-restricted-names': 'error', | |
| 'no-spaced-func': 'error', | |
| 'no-sync': 'off', | |
| 'no-tabs': 'error', | |
| 'no-template-curly-in-string': 'error', | |
| 'no-ternary': 'off', | |
| 'no-throw-literal': 'error', | |
| 'no-trailing-spaces': 'error', | |
| 'no-undef-init': 'error', | |
| 'no-undefined': 'off', | |
| 'no-underscore-dangle': 'off', | |
| 'no-unmodified-loop-condition': 'off', | |
| 'no-unneeded-ternary': 'error', | |
| 'no-unused-expressions': 'error', | |
| 'no-use-before-define': 'error', | |
| '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', | |
| 'no-useless-return': 'error', | |
| 'no-var': 'error', | |
| 'no-void': 'error', | |
| 'no-warning-comments': 'off', | |
| 'no-whitespace-before-property': 'error', | |
| 'no-with': 'error', | |
| 'nonblock-statement-body-position': 'error', | |
| 'object-curly-newline': [ 'error', { | |
| 'multiline': true, | |
| 'consistent': true, | |
| }], | |
| 'object-curly-spacing': [ 'error', 'always' ], | |
| 'object-property-newline': [ 'error', { | |
| 'allowMultiplePropertiesPerLine': true, | |
| }], | |
| 'object-shorthand': 'error', | |
| 'one-var': 'off', | |
| 'one-var-declaration-per-line': 'off', | |
| 'operator-assignment': 'off', | |
| 'operator-linebreak': [ | |
| 'error', | |
| 'after', | |
| ], | |
| 'padded-blocks': [ | |
| 'error', | |
| 'never', | |
| ], | |
| 'padding-line-between-statements': [ 'error', | |
| { blankLine: 'always', prev: 'directive', next: '*' }, | |
| { blankLine: 'any', prev: 'directive', next: 'directive' }, | |
| ], | |
| 'prefer-arrow-callback': 'off', | |
| 'prefer-const': 'error', | |
| 'prefer-destructuring': [ 'error', { | |
| 'array': false, | |
| 'object': false, | |
| }], | |
| 'prefer-numeric-literals': 'error', | |
| 'prefer-promise-reject-errors': 'error', | |
| 'prefer-reflect': 'off', | |
| 'prefer-rest-params': 'off', | |
| 'prefer-spread': 'off', | |
| 'prefer-template': 'off', | |
| 'quote-props': 'off', | |
| 'quotes': [ 'error', 'single', { 'avoidEscape': true } ], | |
| 'radix': [ 'error', 'always' ], | |
| 'require-await': 'error', | |
| 'require-jsdoc': 'off', | |
| 'rest-spread-spacing': 'error', | |
| 'semi': 'error', | |
| 'semi-spacing': 'error', | |
| 'semi-style': 'error', | |
| 'sort-imports': 'off', | |
| 'sort-keys': 'off', | |
| 'sort-vars': 'off', | |
| 'space-before-blocks': 'off', | |
| 'space-before-function-paren': 'error', | |
| 'space-in-parens': 'off', | |
| 'space-infix-ops': 'off', | |
| 'space-unary-ops': 'off', | |
| 'spaced-comment': 'off', | |
| 'strict': 'error', | |
| 'switch-colon-spacing': 'error', | |
| 'symbol-description': 'error', | |
| 'template-curly-spacing': 'error', | |
| 'template-tag-spacing': 'error', | |
| 'unicode-bom': [ 'error', 'never' ], | |
| 'valid-jsdoc': 'off', | |
| 'valid-typeof': [ 'error', { 'requireStringLiterals': false } ], | |
| 'vars-on-top': 'off', | |
| 'wrap-iife': 'error', | |
| 'wrap-regex': 'off', | |
| 'yield-star-spacing': 'error', | |
| // Rules that we’re silencing for now. Might tighten it later. | |
| 'no-irregular-whitespace': 'off', | |
| 'no-cond-assign': 'off', | |
| 'no-console': 'off', | |
| }, | |
| }; |