.eslintrc.yml 4.17 KiB
env:
browser: true
extends: "eslint:recommended"
rules:
# key: 0 = allow, 1 = warn, 2 = error
# Possible Errors
no-await-in-loop: 1
no-console: 1
no-extra-parens: [1, 'all']
no-template-curly-in-string: 0
# Best Practices
accessor-pairs: 0
array-callback-return: 0
block-scoped-var: 1
class-methods-use-this: 0
complexity: 0
consistent-return: 0
curly: [1, 'all']
default-case: 1
dot-location: [1, 'property']
dot-notation: 0
eqeqeq: 1
guard-for-in: 0
max-classes-per-file: 0
no-alert: 1
no-caller: 1
no-div-regex: 1
no-else-return: 0
no-empty-function: 1
no-eq-null: 1
no-eval: 0
no-extend-native: 0
no-extra-bind: 0
no-extra-label: 1
no-floating-decimal: 1
no-implicit-coercion: 1
no-implied-eval: 1
no-invalid-this: 0
no-iterator: 1
no-labels: 0
no-lone-blocks: 1
no-loop-func: 1
no-magic-numbers: 0
no-multi-spaces: 1
no-multi-str: 1
no-new: 0
no-new-func: 1
no-new-wrappers: 1
no-octal-escape: 1
no-param-reassign: 1
no-proto: 1
no-restricted-globals: 1
no-restricted-properties: 0
no-return-assign: 1
no-return-await: 1
no-script-url: 1
no-self-compare: 1
no-sequences: 1
no-throw-literal: 1
no-unmodified-loop-condition: 1
no-unused-expressions: 1
no-useless-call: 1
no-useless-concat: 1
no-useless-return: 1
no-void: 1
no-warning-comments: 0
prefer-named-capture-group: 0
prefer-promise-reject-errors: 1