-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
63 lines (63 loc) · 1.35 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
// adapted from: https://github.com/Khan/style-guides/pull/25
module.exports = {
extends: 'eslint:recommended',
env: {
browser: true,
node: true,
jest: true
},
rules: {
'arrow-parens': [2, 'always'],
'arrow-spacing': 2,
'brace-style': 2,
camelcase: [
2,
{
properties: 'always'
}
],
'comma-dangle': [2, 'never'],
'comma-spacing': [
2,
{
before: false,
after: true
}
],
'eol-last': [0],
'guard-for-in': 2,
//"indent": [2, 4],
'keyword-spacing': 2,
'linebreak-style': [2, 'unix'],
/*
"max-len": [2, 80, 4, {
"ignoreUrls": true,
"ignorePattern": "^\\s*const\\s.+=\\s*require\\s*\\("
}],
*/
'no-alert': 2,
'no-array-constructor': 2,
'no-const-assign': 2,
'no-debugger': 2,
'no-dupe-keys': 2,
'no-new-object': 2,
'no-spaced-func': 2,
'no-this-before-super': 2,
'no-throw-literal': 2,
'no-trailing-spaces': 2,
'no-unreachable': 2,
'no-unused-vars': 1,
'no-var': 0,
//"object-curly-spacing": [2, "always"],
'one-var': [2, 'never'],
'prefer-const': 1,
'prefer-template': 2,
quotes: [2, 'single'],
semi: [2, 'always'],
'space-before-blocks': 2,
// "space-before-function-paren": 2,
'space-infix-ops': 2,
strict: [0, 'never'],
'valid-jsdoc': 2
}
};