-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
39 lines (39 loc) · 1.23 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
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
},
extends: [
'airbnb-base',
],
parserOptions: {
ecmaVersion: 12,
},
rules: {
'arrow-parens': ['warn', 'as-needed'],
'class-methods-use-this': 'off',
'comma-dangle': 'warn',
'function-paren-newline': 'off',
'global-require': 'off',
'import/extensions': 'off',
'import/prefer-default-export': 'warn',
'implicit-arrow-linebreak': 'off',
'indent': 'warn',
'lines-between-class-members': ['warn', 'always', { exceptAfterSingleLine: true }],
'max-classes-per-file': 'off',
'max-len': 'off',
'no-cond-assign': ['error', 'except-parens'],
'no-else-return': 'off',
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
'no-plusplus': ['warn', { allowForLoopAfterthoughts: true }],
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement'],
'no-use-before-define': 'off',
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'no-underscore-dangle': ['error', { allowAfterThis: true }],
'object-curly-newline': 'off',
'operator-linebreak': ['error', 'after'],
'padded-blocks': 'off',
'quote-props': ['warn', 'consistent-as-needed'],
},
};