-
Notifications
You must be signed in to change notification settings - Fork 23
/
eslint.config.mjs
50 lines (49 loc) · 1.24 KB
/
eslint.config.mjs
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
import importsConfig from '@viclafouch/eslint-config-viclafouch/imports.mjs'
import baseConfig from '@viclafouch/eslint-config-viclafouch/index.mjs'
import nextConfig from '@viclafouch/eslint-config-viclafouch/next.mjs'
import prettierConfig from '@viclafouch/eslint-config-viclafouch/prettier.mjs'
import typescriptConfig from '@viclafouch/eslint-config-viclafouch/typescript.mjs'
/**
* @type {import("eslint").Linter.Config}
*/
export default [
...baseConfig,
...nextConfig,
...importsConfig,
...typescriptConfig,
...prettierConfig,
{
ignores: [
'**/node_modules/**',
'**/dist/**',
'**/.next/**',
'**/styled-system/**'
]
},
{
rules: {
'react-hooks/exhaustive-deps': [
'error',
{
additionalHooks: 'useIsomorphicLayoutEffect'
}
],
'no-restricted-imports': [
'error',
{
paths: [
{
name: 'next/link',
message: 'Please use i18n Link from @i18n/navigation'
},
{
name: 'next/navigation',
importNames: ['redirect'],
message: 'Please use redirect function from @i18n/navigation'
}
]
}
]
}
}
]