-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
53 lines (48 loc) · 1.3 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
module.exports = {
env: {
es6: true,
node: true,
},
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'airbnb-base',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended'
],
rules: {
// Typescript's unused variable checking is already enabled in tsconfig
'@typescript-eslint/no-unused-vars': 'off',
'no-unused-vars': 'off',
// Controlled via .gitattributes
'linebreak-style': 'off',
// too strict
'lines-between-class-members': 'off',
'comma-dangle': 'off',
'padded-blocks': 'off',
'max-len': ['error', {
code: 160,
ignoreUrls: true
}],
'no-constant-condition': 'off',
'no-await-in-loop': 'off',
'arrow-parens': 'off',
'function-paren-newline': ['error', 'consistent'],
'no-useless-constructor': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
// meh
'no-restricted-syntax': 'off',
'no-plusplus': 'off',
'object-curly-newline': 'off',
'no-use-before-define': 'off',
// serverless chokes otherwise
'import/no-import-module-exports': 'off',
'@typescript-eslint/explicit-function-return-type': ['error', {
allowExpressions: true,
allowTypedFunctionExpressions: true
}]
}
};