forked from yuyasvx/ts-treemap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
47 lines (47 loc) · 1.36 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
module.exports = {
root: true,
env: {
node: true
},
plugins: ['@typescript-eslint'],
extends: [
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'standard',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'@typescript-eslint/indent': 'off',
'@typescript-eslint/explicit-function-return-type': ['warn', { allowExpressions: true }],
'@typescript-eslint/member-delimiter-style': [
'warn',
{
multiline: {
delimiter: 'none',
requireLast: true
}
}
],
'@typescript-eslint/interface-name-prefix': 'off',
// https://github.com/typescript-eslint/typescript-eslint/issues/422
'@typescript-eslint/explicit-member-accessibility': 'off',
// '@typescript-eslint/explicit-member-accessibility': [
// 'error',
// { accessibility: 'explicit', overrides: { constructor: 'off' } }
// ],
'import/no-unresolved': 'off',
'import/named': 'off',
'no-var': 'error',
'prefer-const': 'warn',
'prefer-template': 'warn',
'no-useless-constructor': 'off',
curly: 'warn'
},
parserOptions: {
parser: '@typescript-eslint/parser'
}
}