-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
113 lines (109 loc) · 2.63 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"env": {
"es6": true,
"browser": true,
"node": true
},
"extends": "eslint:recommended",
"plugins": [
"import"
],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 8 // or 2017
},
"globals": {
"Meteor": true,
"Desktop": true,
"Package": true
},
"settings": {
"import/core-modules": [
"electron",
"lodash/assignIn",
"fs-plus"
]
},
"rules": {
"import/no-extraneous-dependencies": ["error",
{
"devDependencies": ["**/tests/**/*.js"]
}
], // Possible errors
"comma-dangle": [1, "always-multiline"],
"no-console": 0,
"no-duplicate-case": 2,
"no-irregular-whitespace": 2,
"no-unreachable": 1,
// Best practices
"curly": [2, "multi-line"],
"default-case": 2,
"dot-location": [2, "property"],
"dot-notation": [2, {
"allowKeywords": true,
"allowPattern": "^[A-Za-z]+(_[A-Za-z]+)+$"
}],
"eqeqeq": [2, "smart"],
"no-alert": 2,
"no-else-return": 2,
"no-eq-null": 2,
"no-lone-blocks": 2,
"no-multi-spaces": [2, {"exceptions": {
"Property": true,
"VariableDeclarator": true
}}],
"yoda": 2,
// Variables
"no-undef": 0,
"no-unused-vars": 1,
// Stylistic issues
"brace-style": 2,
"camelcase": 2,
"comma-spacing": 2,
"comma-style": 2,
"eol-last": 2,
"indent": [2, 2, {
"SwitchCase": 1 //,
// "VariableDeclarator": {"let": 2, "const": 3}
}],
"jsx-quotes": 2,
"key-spacing": 2,
"keyword-spacing": 2,
"linebreak-style": [2, "unix"],
"lines-around-comment": [0, {
"allowBlockEnd": true,
"allowBlockStart": true,
"allowObjectStart": true
}],
"max-len": [1, 120, 2, {"ignoreUrls": true}],
"newline-after-var": 0,
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"no-multiple-empty-lines": [2, {"max": 1}],
"no-spaced-func": 2,
"no-trailing-spaces": 1,
"object-curly-spacing": [2, "always"],
"operator-assignment": 1,
"operator-linebreak": 2,
"padded-blocks": [2, "never"],
"quote-props": [2, "as-needed"],
"quotes": [2, "single"],
"semi-spacing": 2,
"space-before-blocks": 2,
"space-before-function-paren": [1, {
"anonymous": "always", "named": "never"
}],
"space-infix-ops": 2,
"space-unary-ops": 2,
// ES6
"arrow-spacing": 2,
"constructor-super": 2,
"no-confusing-arrow": 2,
"no-const-assign": 2,
"no-this-before-super": 2,
"no-useless-constructor": 2,
"no-var": 2,
"object-shorthand": 2,
// "prefer-const": 2,
"prefer-spread": 2
}
}