-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy path.eslintrc.cjs
63 lines (63 loc) · 1.4 KB
/
.eslintrc.cjs
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 = {
overrides: [
{
files: ['*.js', '*.mjs', '*.cjs'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2022,
},
},
{
files: '*.md{,x}',
parser: 'eslint-mdx',
processor: 'mdx/remark',
plugins: ['mdx'],
rules: {
'mdx/remark': 'error',
},
parserOptions: {
ecmaVersion: 13,
sourceType: 'module',
},
},
{
files: 'website/**/*.{ts,tsx}',
extends: ['@theguild', '@theguild/eslint-config/react'],
rules: {
// enable without breaking existing iframes
'react/iframe-missing-sandbox': 'off',
'import/extensions': 'off',
},
parserOptions: {
project: 'website/tsconfig.json',
},
settings: {
'import/resolver': {
typescript: {
project: 'website/tsconfig.json',
},
},
},
},
{
files: 'packages/website-router/**',
extends: ['@theguild'],
rules: {
'import/extensions': 'off',
},
parserOptions: {
project: 'packages/website-router/tsconfig.json',
},
},
{
files: 'packages/website-helper-worker/**',
extends: ['@theguild'],
rules: {
'import/extensions': 'off',
},
parserOptions: {
project: 'packages/website-helper-worker/tsconfig.json',
},
},
],
};