forked from processing/p5.accessibility
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
45 lines (45 loc) · 1.06 KB
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
amd: true,
es6: true
},
extends: ['eslint:recommended', 'p5js'],
plugins: [],
rules: {
'no-cond-assign': 2,
'eqeqeq': [2, 'smart'],
'no-global-assign': 0,
'no-use-before-define': [
2,
{
functions: false,
variables: false
}
],
'no-caller': 2,
'no-undef': 2,
'no-unused-vars': [2, {
args: 'all',
vars: 'local'
}],
'no-empty': 2,
'no-console': 0,
'no-var': 2,
'quotes': [2, 'backtick'],
'prefer-arrow-callback': 2,
'arrow-body-style': [2, 'as-needed'],
'curly': 'error',
'dot-notation': [2, {
allowKeywords: false
}],
'constructor-super': 2,
'object-shorthand': 2,
'prefer-const': 2,
'no-debugger': 2,
'spaced-comment': 2,
'vars-on-top': 2,
'no-irregular-whitespace': 2,
'indent': [2, 2]
}
};