-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
eslint.config.mjs
40 lines (38 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
// @ts-check
import tsEslint from 'typescript-eslint';
export default tsEslint.config(
{
files: [
'packages/**/*.ts',
'packages/**/*.tsx',
],
extends: [
...tsEslint.configs.recommended,
],
rules: {
'@typescript-eslint/no-unused-vars': [
'warn',
{
'args': 'none',
'caughtErrors': 'all',
'caughtErrorsIgnorePattern': '^_',
'destructuredArrayIgnorePattern': '^_',
'varsIgnorePattern': '^_',
'ignoreRestSiblings': true,
},
],
'no-prototype-builtins': 'off',
},
ignores: [
'dist/**',
'specs/**',
'samples/**',
'packages/js/core/src/aiChat/comp/comp.ts',
'packages/react/core/src/exports/hooks/usePrimitivesContext.tsx',
'packages/react/core/src/exports/hooks/useAiChatApi.ts',
'packages/shared/src/markdown/snapshot/marked/*.ts',
'packages/shared/src/types/adapters/chat/serverComponentChatAdapter.ts',
'packages/shared/src/utils/dequal.ts',
],
},
);