You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
2.1 KiB

---
rules:
# Best Practices (https://eslint.org/docs/rules/#best-practices)
curly:
- warn
- all
dot-notation:
- error
- allowPattern: '^[a-z]+(_[a-z]+)+$'
eqeqeq:
- warn
- always
guard-for-in: error
no-new-wrappers: error
no-param-reassign: error
no-return-assign:
- error
- always
no-return-await: error
no-self-compare: error
no-sequences: error
no-throw-literal: error
no-unmodified-loop-condition: error
no-unused-expressions: error
no-useless-concat: error
no-useless-return: error
no-void: error
no-with: error
wrap-iife:
- error
- inside
yoda:
- error
- never
- exceptRange: true
# Stylistic Issues (https://eslint.org/docs/rules/#stylistic-issues)
func-style:
- error
- declaration
- allowArrowFunctions: true
no-mixed-operators:
- error
- groups:
- - '&'
- '|'
- '^'
- '~'
- '<<'
- '>>'
- '>>>'
- - '=='
- '!='
- '==='
- '!=='
- '>'
- '>='
- '<'
- '<='
- - '&&'
- '||'
- - in
- instanceof
allowSamePrecedence: true
no-multi-assign: error
no-negated-condition: error
no-nested-ternary: error
no-new-object: error
no-plusplus:
- error
- allowForLoopAfterthoughts: true
no-unneeded-ternary: error
operator-assignment:
- error
- always
prefer-object-spread: error
spaced-comment:
- warn
- always
- block:
balanced: true
# ECMAScript 6 (https://eslint.org/docs/rules/#ecmascript-6)
arrow-body-style:
- error
- as-needed
no-confusing-arrow:
- error
- allowParens: true
no-var: error
prefer-const: error
prefer-rest-params: error
prefer-spread: error
prefer-template: error