-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.yaml
46 lines (42 loc) · 1.24 KB
/
.eslintrc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
plugins:
- node
- promise
- unicorn
- prettier
extends:
- eslint:recommended
- plugin:unicorn/recommended
- plugin:node/recommended
- xo/esnext
- plugin:prettier/recommended
- plugin:promise/recommended
env:
es6: true
parserOptions:
sourceType: script
ecmaVersion: 2018
rules:
strict: [error, global]
no-multi-assign: 0
func-names: 0
operator-linebreak: [error, after, {overrides: {'?': before, ':': 'before'}}]
capitalized-comments:
[
error,
always,
{ignorePattern: prettier-ignore, ignoreConsecutiveComments: true},
]
# ES2015 http://eslint.org/docs/rules/#ecmascript-6
prefer-rest-params: [error]
prefer-spread: [error]
prefer-destructuring: [error]
# node https://github.com/mysticatea/eslint-plugin-node
node/no-unpublished-require: 0 # doesn't play nice with monorepo
node/no-extraneous-require: [error, allowModules: [ava, sinon, '@xmpp/test']]
# promise https://github.com/xjamundx/eslint-plugin-promise
# promise/prefer-await-to-then: [error]
# promise/prefer-await-to-callbacks: [error]
# unicorn https://github.com/sindresorhus/eslint-plugin-unicorn
unicorn/filename-case: 0
unicorn/catch-error-name: ['error', {'name': 'err'}]
unicorn/prevent-abbreviations: 0