forked from xmppjs/xmpp.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
40 lines (36 loc) · 1.09 KB
/
.eslintrc
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
plugins:
- node
- promise
- standard
- unicorn
extends:
- eslint:recommended
- plugin:unicorn/recommended
- plugin:node/recommended
- xo/esnext
env:
es6: true
parserOptions:
sourceType: script
ecmaVersion: 2017
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" } }]
jsx-quotes: ["error", "prefer-single"]
# 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-unsupported-features: [error, {version: 6}]
node/no-unpublished-require: 0 # doesn't play nice with monorepo
node/no-extraneous-require: [error, allowModules: [ava,sinon]]
# 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