-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
43 lines (43 loc) · 1.01 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
module.exports = {
root: true,
env: {
browser: true,
jquery: true,
},
extends: [
'eslint:recommended',
'airbnb-base/legacy'
],
rules: {
'comma-dangle': [
'warn',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
},
],
curly: ['error', 'all'],
indent: ['warn', 2],
'max-len': [
'warn',
{
code: 255,
comments: 120,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true,
},
],
'no-continue': 'off',
'no-unused-vars': ['warn', { args: 'after-used' }],
'no-use-before-define': ['error', { functions: false }],
'padded-blocks': ['warn', 'never'],
'quote-props': ['warn', 'consistent'],
quotes: ['warn', 'single', { avoidEscape: true }],
radix: ['warn', 'as-needed'],
'space-before-function-paren': ['warn', 'always'],
},
};