forked from xmppjs/xmpp.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yaml
49 lines (45 loc) · 1.32 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
47
48
49
plugins:
- node
- promise
- standard
- unicorn
- prettier
extends:
- eslint:recommended
- plugin:unicorn/recommended
- plugin:node/recommended
- xo/esnext
- prettier
env:
es6: true
parserOptions:
sourceType: script
ecmaVersion: 2018
rules:
strict: [error, global]
semi: [error, never]
comma-dangle: [error, always-multiline]
indent: [error, 2]
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']]
node/no-unsupported-features/es-syntax: [error]
node/no-unsupported-features/es-builtins: [error]
# standard https://github.com/xjamundx/eslint-plugin-standard
standard/no-callback-literal: [error, [cb, callback]]
# unicorn https://github.com/sindresorhus/eslint-plugin-unicorn
unicorn/filename-case: 0
unicorn/catch-error-name: ['error', {'name': 'err'}]