-
Notifications
You must be signed in to change notification settings - Fork 213
Expand file tree
/
Copy patheslint.config.mjs
More file actions
45 lines (43 loc) · 1.42 KB
/
Copy patheslint.config.mjs
File metadata and controls
45 lines (43 loc) · 1.42 KB
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
import nextConfig from 'eslint-config-next'
import nextCoreWebVitals from 'eslint-config-next/core-web-vitals'
import nextTypescript from 'eslint-config-next/typescript'
import prettier from 'eslint-config-prettier'
const eslintConfig = [
...nextConfig,
...nextCoreWebVitals,
...nextTypescript,
prettier,
{
ignores: [
// React Compiler false positives in third-party patterns
'components/ui/file-upload.tsx',
'components/ui/origin/evervault-card.tsx',
'app/providers/*-store-providers.tsx',
'components/ui/sidebar.tsx',
],
},
{
rules: {
'react/no-unescaped-entities': 'off',
'@next/next/no-page-custom-font': 'off',
'quotes': ['error', 'single'],
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'warn',
'@typescript-eslint/ban-ts-comment': ['warn', {
'ts-expect-error': 'allow-with-description',
'ts-ignore': false,
'ts-nocheck': false,
minimumDescriptionLength: 0,
}],
'no-multiple-empty-lines': ['error', { 'max': 1 }],
'semi': ['error', 'never'],
'no-unused-vars': 'warn',
'react-hooks/rules-of-hooks': 'warn',
'react-hooks/immutability': 'warn',
'react-hooks/preserve-manual-memoization': 'warn',
'react-hooks/purity': 'warn',
'react-hooks/set-state-in-effect': 'warn',
},
},
]
export default eslintConfig