-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
48 lines (48 loc) · 1.06 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
module.exports = {
env: {
node: true,
jest: true,
es2020: true
},
extends: [
'airbnb-base',
'plugin:import/typescript',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended'
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 11,
sourceType: 'module'
},
plugins: ['@typescript-eslint'],
ignorePatterns: ['node_modules'],
rules: {
ignoreExport: 0,
'import/prefer-default-export': 0,
'no-console': 2,
'comma-dangle': 0,
'import/first': 0,
'consistent-return': 2,
'import/no-mutable-exports': 1,
'no-undef': 1,
'import/order': 0,
'import/no-cycle': 0,
'dot-notation': 0,
'no-underscore-dangle': 0
},
overrides: [
{
files: ['src/controllers/*.ts', 'db/migrations/*.ts'], // overriding rule because I didn't use "this" in controller
excludedFiles: [],
rules: {
'class-methods-use-this': 0
}
}
]
};