-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
43 lines (41 loc) · 1.03 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
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path');
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
settings: {
'import/resolver': {
alias: {
map: [
['@', path.resolve(__dirname, './src')],
['@tests/', path.resolve(__dirname, './src/tests')],
],
extensions: ['.ts', '.js', '.jsx', '.tsx', '.json', '.png', '.svg'],
},
},
},
plugins: [
'@typescript-eslint',
'simple-import-sort',
'testing-library',
'jest-dom',
],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'prettier',
],
rules: {
'@typescript-eslint/explicit-function-return-type': [
'error',
{ allowExpressions: true },
],
'@typescript-eslint/no-namespace': 'off',
// 'simple-import-sort/imports': 2,
'@typescript-eslint/explicit-function-return-type': 'off',
'no-console': 'error',
},
};