-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
40 lines (40 loc) · 1.05 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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [
'@typescript-eslint',
'chai-friendly',
],
extends: [
'airbnb-base',
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
],
rules: {
'no-plusplus': 0,
'class-methods-use-this': 0,
'no-underscore-dangle': 0,
'no-continue': 0,
'no-param-reassign': 0,
'no-bitwise': 0,
'import/no-unresolved': 0,
'import/prefer-default-export': 0,
'import/extensions': 0,
'@typescript-eslint/interface-name-prefix': 0,
'func-names': 0,
'no-unused-expressions': 0,
'chai-friendly/no-unused-expressions': 2,
'max-len': ['error', { ignoreComments: true, code: 120 }],
'no-useless-constructor': 'off',
'@typescript-eslint/no-useless-constructor': ['error'],
'no-shadow': 0,
'@typescript-eslint/no-shadow': ['error'],
},
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
},
],
};