This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.yml
103 lines (100 loc) · 1.75 KB
/
.eslintrc.yml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
##
# .eslintrc.yml
#
# Created by Zander Otavka on 12/21/16.
# Copyright (C) 2016 Zander Otavka. All rights reserved.
#
# Distributed under the GNU General Public License, Version 3.
# See the accompanying file LICENSE or http://www.gnu.org/licenses/gpl-3.0.txt
##
extends: airbnb
installedESLint: true
env:
es6: true
browser: true
globals:
chrome: true
rules:
# Code Quality
eqeqeq:
- error
- always
no-confusing-arrow:
- error
- allowParens: true
no-constant-condition:
- error
- checkLoops: false
no-undef:
- error
no-unused-vars:
- error
- args: none
no-lonely-if:
- error
no-console:
- warn
- allow:
- assert
- error
no-underscore-dangle:
- error
- allowAfterThis: true
allowAfterSuper: true
no-param-reassign:
- error
- props: false
no-plusplus:
- off
no-else-return:
- off
new-parens:
- off
class-methods-use-this:
- off
# Code Style
max-len:
- error
- code: 80
ignoreUrls: true
indent:
- error
- 2
- SwitchCase: 1
ArrayExpression: first
ObjectExpression: first
MemberExpression: 1
FunctionDeclaration:
parameters: first
FunctionExpression:
parameters: first
CallExpression:
arguments: first
camelcase:
- error
- properties: always
curly:
- error
- multi
- consistent
space-in-parens:
- error
- never
object-curly-spacing:
- error
- never
arrow-parens:
- error
- as-needed
arrow-body-style:
- error
- as-needed
comma-dangle:
- error
- arrays: always-multiline
objects: always-multiline
functions: never
no-multiple-empty-lines:
- error
- max: 1
maxBOF: 0