-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
79 lines (71 loc) · 1.83 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
extends: 'eslint:recommended'
env:
node: true
es6: true
parserOptions:
ecmaVersion: 2017
rules:
# Possible Errors
no-console: 0
valid-jsdoc: [0, {requireReturn: false, requireParamDescription: false, requireReturnDescription: false}]
# Best Practices
consistent-return: 0
curly: 0
block-scoped-var: 2
no-else-return: 2
no-process-env: 2
no-self-compare: 2
no-throw-literal: 2
no-void: 2
radix: 2
wrap-iife: [2, outside]
# Variables
no-shadow: 0
no-use-before-define: [2, nofunc]
no-unused-vars: [2, { "argsIgnorePattern": "next" }]
# Node.js
no-process-exit: 0
handle-callback-err: [2, err]
no-new-require: 2
no-path-concat: 2
# Stylistic Issues
quotes: [2, single]
camelcase: 0
indent: [2, 2]
no-lonely-if: 2
no-floating-decimal: 2
brace-style: [2, 1tbs, { "allowSingleLine": true }]
comma-style: [2, last]
consistent-this: [0, self]
func-style: 0
max-nested-callbacks: 0
new-cap: [2, {capIsNewExceptions: [JID]}]
no-multiple-empty-lines: [2, {max: 1}]
no-nested-ternary: 2
semi-spacing: [2, {before: false, after: true}]
operator-assignment: [2, always]
padded-blocks: [2, never]
quote-props: [2, as-needed]
space-before-function-paren: [2, always]
keyword-spacing: [2, {after: true}]
space-before-blocks: [2, always]
array-bracket-spacing: [2, never]
computed-property-spacing: [2, never]
space-in-parens: [2, never]
space-unary-ops: [2, {words: true, nonwords: false}]
#spaced-line-comment: [2, always]
wrap-regex: 2
linebreak-style: [2, unix]
semi: [2, always]
# ECMAScript 6
arrow-spacing: [2, {before: true, after: true}]
no-class-assign: 2
no-const-assign: 2
no-dupe-class-members: 2
no-this-before-super: 2
no-var: 2
object-shorthand: [2, always]
prefer-arrow-callback: 2
prefer-const: 2
prefer-spread: 2
prefer-template: 2