-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
45 lines (44 loc) · 1.1 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['./tsconfig.json'],
},
extends: [
'airbnb-base',
'airbnb-typescript/base',
],
plugins: [
'@typescript-eslint',
],
rules: {
'linebreak-style': 'off',
'arrow-parens': 'off',
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'never',
functions: 'always-multiline',
},
],
'object-curly-newline': 'off',
'no-mixed-operators': 'off',
'arrow-body-style': 'off',
'function-paren-newline': 'off',
'no-plusplus': 'off',
'no-unused-vars': 'warn',
'space-before-function-paren': 0,
'no-underscore-dangle': 'warn',
'max-len': ['warn', 100, 2, { ignoreUrls: true }],
'no-console': 'off',
'no-param-reassign': 'off',
'prefer-destructuring': 'off',
'operator-linebreak': 'off',
'class-methods-use-this': 'off',
'import/no-cycle': 'off',
'@typescript-eslint/lines-between-class-members': 'off',
},
};