forked from shadowplay1/discord-economy-super
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
34 lines (34 loc) · 942 Bytes
/
.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
module.exports = {
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
rules: {
'semi': ['warn', 'never'],
'no-plusplus': 'off',
'implicit-arrow-linebreak': 'off',
'operator-linebreak': 'off',
'no-param-reassign': 'off',
'arrow-body-style': 'off',
'no-unneeded-ternary': 'error',
'consistent-return': 'off',
'function-paren-newline': 'off',
'max-classes-per-file': 'off',
'prefer-const': 'warn',
'camelcase': 'warn',
'eol-last': 'warn',
'max-len': ['warn', { 'code': 120 }],
'dot-notation': 'warn',
'no-continue': 'warn',
'no-dupe-else-if': 'error',
'block-spacing': ['error', 'never'],
'no-spaced-func': 'error',
'object-curly-spacing': ['error', 'always'],
'no-redeclare': 'warn',
'no-trailing-spaces': ['error', {
'ignoreComments': true,
}],
'quotes': ['error', 'single'],
'no-return-await': ['error'],
},
}