-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
62 lines (61 loc) · 1.39 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
const project = [
'web/tsconfig.json',
'admin/tsconfig.json',
'packages/*/tsconfig.json'
]
module.exports = {
extends: ['@samtgarson/eslint-config', 'plugin:import/typescript'],
env: {
es6: true
},
root: true,
ignorePatterns: ['packages/e2e/bin/generate-google-token.js', '.vercel'],
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
extends: ['@samtgarson/eslint-config/typescript']
},
{
files: ['**/*.tsx'],
extends: ['@samtgarson/eslint-config/react', 'plugin:react/jsx-runtime']
},
{
files: ['web/**/*.ts', 'web/**/*.ts'],
extends: ['next/core-web-vitals', 'plugin:@next/next/recommended']
},
{
files: [
'packages/core/**/*.ts',
'packages/core/**/*.tsx',
'packages/e2e/**/*.ts',
'admin/build.js'
],
rules: {
'import/no-extraneous-dependencies': 0
}
}
],
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx']
},
'import/resolver': {
typescript: { project },
node: {}
}
},
rules: {
'@next/next/no-html-link-for-pages': ['error', 'web'],
'@typescript-eslint/no-unused-vars': [
'error',
{ destructuredArrayIgnorePattern: '^_', argsIgnorePattern: '^_' }
],
'import/extensions': [
'error',
{
'nextauth]': 'always',
svg: 'always'
}
]
}
}