mirror of
https://github.com/thelounge/thelounge
synced 2024-12-21 01:43:07 +00:00
92 lines
2.1 KiB
YAML
92 lines
2.1 KiB
YAML
---
|
|
|
|
root: true
|
|
|
|
env:
|
|
es6: true
|
|
browser: true
|
|
mocha: true
|
|
node: true
|
|
|
|
rules:
|
|
arrow-body-style: error
|
|
arrow-parens: [error, always]
|
|
arrow-spacing: error
|
|
block-scoped-var: error
|
|
block-spacing: [error, always]
|
|
brace-style: [error, 1tbs]
|
|
comma-dangle:
|
|
- error
|
|
- always-multiline
|
|
curly: [error, all]
|
|
dot-location: [error, property]
|
|
dot-notation: error
|
|
eol-last: error
|
|
eqeqeq: error
|
|
handle-callback-err: error
|
|
indent: [error, tab]
|
|
key-spacing: [error, {beforeColon: false, afterColon: true}]
|
|
keyword-spacing: [error, {before: true, after: true}]
|
|
linebreak-style: [error, unix]
|
|
no-alert: error
|
|
no-catch-shadow: error
|
|
no-confusing-arrow: error
|
|
no-control-regex: off
|
|
no-duplicate-imports: error
|
|
no-else-return: error
|
|
no-implicit-globals: error
|
|
no-multi-spaces: error
|
|
no-multiple-empty-lines: [error, { "max": 1 }]
|
|
no-shadow: error
|
|
no-template-curly-in-string: error
|
|
no-trailing-spaces: error
|
|
no-unsafe-negation: error
|
|
no-useless-computed-key: error
|
|
no-useless-constructor: error
|
|
no-useless-return: error
|
|
no-use-before-define: [error, {functions: false}]
|
|
no-var: error
|
|
object-curly-spacing: [error, never]
|
|
object-shorthand:
|
|
- error
|
|
- methods
|
|
- avoidExplicitReturnArrows: true
|
|
padded-blocks: [error, never]
|
|
padding-line-between-statements:
|
|
- error
|
|
- blankLine: always
|
|
prev:
|
|
- block
|
|
- block-like
|
|
next: "*"
|
|
- blankLine: always
|
|
prev: "*"
|
|
next:
|
|
- block
|
|
- block-like
|
|
prefer-const: error
|
|
prefer-rest-params: error
|
|
prefer-spread: error
|
|
quote-props: [error, consistent-as-needed]
|
|
quotes: [error, double, avoid-escape]
|
|
rest-spread-spacing: error
|
|
semi-spacing: error
|
|
semi-style: [error, last]
|
|
semi: [error, always]
|
|
space-before-blocks: error
|
|
space-before-function-paren:
|
|
- error
|
|
- anonymous: never
|
|
named: never
|
|
asyncArrow: always # Otherwise requires `async()`
|
|
space-in-parens: [error, never]
|
|
space-infix-ops: error
|
|
spaced-comment: [error, always]
|
|
strict: error
|
|
template-curly-spacing: error
|
|
yoda: error
|
|
|
|
globals:
|
|
log: false
|
|
|
|
extends: eslint:recommended
|