forked from marudor/bahn.expert
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
63 lines (63 loc) · 1.42 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
54
55
56
57
58
59
60
61
62
63
module.exports = {
root: true,
extends: ['marudor'],
env: { browser: true, node: true, es6: true },
globals: { SERVER: false, M: false, MF: false },
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': 'webpack',
react: { version: 'detect' },
},
rules: {
'prettier/prettier': 0,
'react/react-in-jsx-scope': 0,
'require-await': 0,
'testing-library/no-debug': 0,
// 'import/no-extraneous-dependencies': [
// 'error',
// {
// devDependencies: [
// '**/__tests__/**',
// '**/webpackDev.ts',
// './scripts/**',
// './webpack.config.js',
// './cypress/**',
// ],
// },
// ],
},
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
extends: ['marudor/typescript'],
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
warnOnUnsupportedTypeScriptVersion: true,
},
},
{
files: ['**/__tests__/**'],
globals: { nock: true },
env: { jest: true },
},
{
files: ['packages/client/**'],
globals: {
TEST: false,
},
rules: {
'import/no-default-export': 2,
'no-restricted-imports': [
'error',
{
patterns: ['server/*'],
},
],
'no-process-env': 2,
},
},
],
};