-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
33 lines (33 loc) · 1.02 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
module.exports = {
extends: [
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended',
'plugin:chai-friendly/recommended',
],
env: {
browser: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
},
plugins: [
'@typescript-eslint',
'chai-friendly',
],
rules: {
// note you must disable the base rule as it can report incorrect errors
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/explicit-function-return-type': ['off'],
'@typescript-eslint/member-ordering': ['error'],
'@typescript-eslint/no-explicit-any': ['off'],
'@typescript-eslint/no-unused-expressions': ['off'],
'chai-friendly/no-unused-expressions': ['error'],
// rule additions for airbnb
'class-methods-use-this': ['off'], // *may* require further adjustments to instance usage
// exclude cycle dependencies
'import/no-cycle': ['off'],
'no-await-in-loop': ['off'],
'no-restricted-syntax': ['off'],
'no-multiple-empty-lines': ['off']
},
};