-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
37 lines (37 loc) · 978 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
30
31
32
33
34
35
36
37
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'plugin:prettier/recommended', // integrates with eslint-config-prettier
'plugin:@typescript-eslint/recommended',
],
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
},
rules: {
camelcase: 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/explicit-function-return-type': ['off'],
'@typescript-eslint/prefer-interface': ['off'],
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/indent': ['off'],
'@typescript-eslint/func-names': ['off'],
'func-names': ['off'],
'@typescript-eslint/no-inferrable-types': ['off'],
'@typescript-eslint/no-empty-interface': [
'error',
{
allowSingleExtends: true,
},
],
},
overrides: [
{
files: ['*.js'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
],
};