-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
55 lines (55 loc) · 1.67 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
module.exports = {
plugins: ['meteor'],
env: {
meteor: true,
browser: true,
es2020: true,
node: true,
},
extends: ['airbnb', 'plugin:meteor/recommended'],
rules: {
'no-promise-executor-return': 'off',
'function-call-argument-newline': 'off',
'function-paren-newline': 'off',
'default-param-last': 'off',
'no-multiple-empty-lines': 'off',
'meteor/no-session': 'off',
'import/no-unresolved': 0,
'object-curly-newline': 0,
quotes: ['error', 'single', { allowTemplateLiterals: true }],
'object-shorthand': ['error', 'always'],
'newline-per-chained-call': 0,
// "no-lonely-if": 0,
'prefer-destructuring': ['error', { object: true, array: false }],
'no-empty': ['error', { allowEmptyCatch: true }],
'no-console': 0,
'max-len': 0,
'func-names': 0,
// "key-spacing": 0,
'no-param-reassign': 0,
// "no-prototype-builtins": 0,
// "prefer-arrow-callback": 0,
'new-cap': [2, {
newIsCap: true,
capIsNewExceptions: ['Match.OneOf', 'Match.Optional', 'Match.ObjectIncluding', 'Match.Where', 'Match.Maybe', 'HTML.Raw', 'CryptoJS.MD5', 'AlgoliaSearch', 'Clearbit', 'DateTimeFormat', 'Stripe'],
}],
// "no-nested-ternary": 0,
'no-eval': 0,
'arrow-parens': ['error', 'as-needed'],
'no-mixed-operators': 0,
'no-bitwise': 0,
'no-plusplus': 0,
'no-else-return': 0,
'no-underscore-dangle': 0,
'operator-linebreak': ['error', 'after'],
},
globals: {
_: 'readonly',
updateTwitterFollowers: 'writable',
updateTwitterBanner: 'writable',
updateTwitterName: 'writable',
moment: 'writable',
canvas: 'writable',
defaultBanner: 'writable',
},
};