-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
77 lines (77 loc) · 1.56 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json',
ecmaVersion: 'latest',
},
plugins: [
'@typescript-eslint',
'node',
'security',
'@getify/proper-ternary',
],
extends: [
'airbnb-base',
'plugin:node/recommended',
'plugin:security/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:@getify/proper-ternary/getify-says',
'plugin:@typescript-eslint/recommended',
],
env: {
'shared-node-browser': true,
es6: true,
},
rules: {
'arrow-parens': [
'error',
'as-needed',
{
requireForBlockBody: true,
},
],
'one-var': 'off',
'one-var-declaration-per-line': 'off',
'consistent-return': 'off',
'func-names': 'off',
'max-len': 'off',
'no-console': 'off',
'no-shadow': [
'error',
{
hoist: 'never',
},
],
'no-param-reassign': 'off',
'no-prototype-builtins': 'off',
'no-new': 'off',
'newline-per-chained-call': 'off',
'no-lonely-if': 'error',
'no-new-object': 'error',
'no-plusplus': 'off',
'no-bitwise': 'off',
'object-curly-newline': [
'error',
{
multiline: true,
consistent: true,
},
],
'no-underscore-dangle': 'off',
'object-curly-spacing': [
'error',
'never',
],
'object-shorthand': [
'error',
'consistent',
],
'space-before-function-paren': [
'error',
'never',
],
},
};