-
Notifications
You must be signed in to change notification settings - Fork 202
/
.eslintrc.ts
40 lines (39 loc) · 1012 Bytes
/
.eslintrc.ts
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
import paths from './config/paths';
export default {
extends: [
'@werkzeugkiste',
'@werkzeugkiste/eslint-config/react',
'@werkzeugkiste/eslint-config/typescript',
'@werkzeugkiste/eslint-config/node',
],
globals: {
__BROWSER__: true,
__SERVER__: true,
},
settings: {
'import/resolver': {
node: {
paths: paths.resolveModules,
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
'react': {
version: 'detect',
},
},
rules: {
'import/no-unassigned-import': 0,
'import/no-named-as-default-member': 0,
'prettier/prettier': 'error',
},
// overrides: [
// {
// files: ['*.ts', '*.tsx'],
// rules: {
// // TODO: add to eslint-config-wiremore
// 'import/named': 0,
// 'react/prop-types': 0,
// },
// },
// ],
};