-
Notifications
You must be signed in to change notification settings - Fork 58
/
.eslintrc.js
38 lines (37 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
module.exports = {
extends: ['airbnb-base', 'airbnb-typescript/base'],
parserOptions: {
project: './tsconfig.json',
},
rules: {
'operator-linebreak': 'off',
'object-curly-newline': 'off',
'nonblock-statement-body-position': 'off',
'import/prefer-default-export': 'off',
indent: 'off',
'@typescript-eslint/indent': 'off',
'no-case-declarations': 'off',
'func-names': 'off',
'no-plusplus': 'off',
'arrow-body-style': 'off',
'max-classes-per-file': 'off',
'prefer-template': 'off',
'class-methods-use-this': 'off',
'no-param-reassign': 'off',
'comma-dangle': 'off',
'@typescript-eslint/comma-dangle': 'off',
'no-trailing-spaces': 'off',
'arrow-parens': 'off',
// set below rules to 'warn' to avoid confusion with real code errors。
'@typescript-eslint/semi': 'warn',
'padded-blocks': 'warn',
'no-multiple-empty-lines': 'warn',
'@typescript-eslint/quotes': 'warn',
'max-len': 'warn',
'@typescript-eslint/naming-convention': 'off',
'no-underscore-dangle': 'off',
'no-restricted-properties': 'off',
'prefer-exponentiation-operator': 'off',
'implicit-arrow-linebreak': 'off',
},
};