-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
29 lines (29 loc) · 848 Bytes
/
.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
module.exports = {
env: {
es6: true,
node: true,
jest: true
},
extends: ['airbnb-base', 'plugin:you-dont-need-lodash-underscore/compatible'],
globals: {},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module'
},
plugins: ['@typescript-eslint'],
rules: {
indent: ['error', 4, { MemberExpression: 0, SwitchCase: 1 }],
'import/prefer-default-export': 0,
'no-unused-vars': 'off', // This rule is off because eslint recognises imported Type Definitions as unused
'@typescript-eslint/type-annotation-spacing': [2], // This rule is set to enforce consistent spacing around annotations
'max-len': ['error', { code: 150, ignoreStrings: true }],
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.ts']
}
}
}
};