-
Notifications
You must be signed in to change notification settings - Fork 52
/
.eslintrc.js
29 lines (29 loc) · 1.08 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/explicit-function-return-type': [1],
'@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],
'@typescript-eslint/consistent-type-definitions': [0],
'@typescript-eslint/consistent-type-imports': 'error',
}
};