-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
53 lines (49 loc) · 1.13 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
module.exports = {
'env': {
'browser': true,
'es2021': true,
},
'extends': [
'google',
],
'parserOptions': {
'ecmaVersion': 12,
},
'ignorePatterns': [
'**/*.min.js',
'popper.js',
],
'rules': {
// Ask first in the Discord before changing these.
//
// If you don't want a rule to apply in an area of the code,
// you should disable it for a block or line of code.
// https://eslint.org/docs/user-guide/configuring#disabling-rules-with-inline-comments
//
// Wondering what a rule does? https://eslint.org/docs/rules/
'indent': ['warn', 'tab'],
'require-jsdoc': 'off',
'spaced-comment': 'warn',
'linebreak-style': 'off',
'max-len': [
'warn',
{
'code': 150,
'ignoreRegExpLiterals': true,
'ignoreUrls': true,
},
],
'no-unused-vars': 'warn',
'new-cap': 'error',
'no-warning-comments': 'warn',
'no-template-curly-in-string': 'error',
'no-useless-concat': 'warn',
'template-curly-spacing': ['error', 'never'],
'prefer-template': 'error',
// 'quotes': ['warn', 'double'],
'quotes': 'off',
'camelcase': 'off',
'no-tabs': 'off',
'space-before-function-paren': 'off',
},
};