-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
46 lines (46 loc) · 1.18 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
module.exports = {
'extends': 'airbnb-base',
'env': {
browser: true,
},
'rules': {
'no-empty': 'off',
'no-restricted-syntax': 'off',
'arrow-body-style': 'warn',
'arrow-parens': 'warn',
'comma-dangle': 'off',
'comma-spacing': 'warn',
'implicit-arrow-linebreak': 'off',
'import/order': 'warn',
'import/prefer-default-export': 'warn',
'indent': 'warn',
'max-len': 'warn',
'no-alert': 'off',
'no-console': 'off',
'no-else-return': 'off',
'no-multiple-empty-lines': 'warn',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'no-trailing-spaces': 'warn',
'no-unused-vars': 'warn',
'object-curly-spacing': 'warn',
'object-property-newline': 'warn',
'object-shorthand': 'warn',
'padded-blocks': 'warn',
'prefer-const': 'warn',
'quotes': 'warn',
'semi': 'warn',
'space-in-parens': 'warn',
'no-useless-return': 'off',
'no-multi-spaces': 'warn',
'prefer-destructuring': 'warn',
'import/prefer-default-export': 'off',
},
globals: {
__ANKI_ADD_HOOKS_VERSION__: true,
__CARD_STYLE__: true,
__IS_PRODUCTION__: true,
__USERSCRIPT_VERSION__: true,
GM: true,
},
};