-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
29 lines (29 loc) · 1.14 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint'
],
extends: [
'standard-with-typescript',
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended'
],
parserOptions: {
project: './tsconfig.eslint.json'
},
rules: {
semi: 'off',
'@typescript-eslint/semi': ['error', 'always'],
'@typescript-eslint/no-empty-function': ['error', { allow: ['arrowFunctions'] }],
'@typescript-eslint/member-delimiter-style': ['error', { multiline: { delimiter: 'semi', requireLast: true } }],
'@typescript-eslint/interface-name-prefix': [0],
'@typescript-eslint/strict-boolean-expressions': [0],
'@typescript-eslint/no-explicit-any': [0], // remove one day, maybe. This is early days so we have some anys.
'@typescript-eslint/restrict-plus-operands': [0], // when this rule functions correctly, we can remove it. It
// does not pick up the correct type when returning from a JS function
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/consistent-type-imports': 'error'
}
};