forked from CodingTrain/website-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
80 lines (61 loc) · 1.52 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
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
module.exports = {
env: {
browser: true,
amd: true,
es6: true
},
extends: ['eslint:recommended', 'p5js', 'p5js/dom', 'p5js/sound'],
plugins: ['prettier'],
rules: {
'prettier/prettier': ['error', {
singleQuote: true
}],
'no-cond-assign': ['error', 'except-parens'],
'no-use-before-define': ['error', {
'classes': false,
'functions': false
}],
'no-caller': 'error',
'no-empty': ['error', {
allowEmptyCatch: true
}],
// 'no-var': 'error',
// eqeqeq: ['error', 'smart'],
// "semi": ['error', 'always'],
"linebreak-style": ['error', 'unix'],
'no-unused-vars': 'off',
// 'no-unused-vars': ['error', {
// "vars": "local"
// }],
'no-undef': 'off',
// 'no-undef': 'error',
'no-redeclare': 'off',
// 'no-redeclare': ['error', {
// 'builtinGlobals': false,
// }],
'no-prototype-builtins': 'off', // would be nice to remove
'new-cap': 'off',
},
"parserOptions": {
"ecmaVersion": 11,
},
'overrides': [
// These are overrides for files where changes would make it hard for those coming from the video to understand.
{
'files': [
'Courses/programming_with_text/session02/2-0607_regexTestMatchExec/sketch.js',
],
'rules': {
'no-cond-assign': 'off',
},
},
{
'files': [
'Courses/beginner_ml5/07_knn_classifier/P5/sketch.js',
],
'rules': {
'no-use-before-define': 'off',
},
},
],
};