-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
53 lines (53 loc) · 1.27 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
49
50
51
52
53
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.eslint.json',
},
extends: [
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended',
'plugin:import/typescript',
'prettier',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
],
env: {
browser: true,
},
rules: {
'@typescript-eslint/no-use-before-define': 'off',
'class-methods-use-this': 'off',
'consistent-return': 'off',
'no-restricted-syntax': 'off',
'no-multi-assign': 'off',
'no-use-before-define': 'off',
'no-console': 'off',
// 'no-underscore-dangle': 'off',
'no-useless-constructor': 'off',
'prettier/prettier': 'error',
'import/prefer-default-export': 'off',
// 'import/no-extraneous-dependencies': [
// 'error',
// { devDependencies: ['config/**', 'scripts/**'] },
// ],
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],
},
plugins: ['import', 'promise', 'prettier', '@typescript-eslint'],
settings: {
'import/resolver': {
typescript: {
directory: './tsconfig.eslint.json',
},
},
},
};