-
Notifications
You must be signed in to change notification settings - Fork 692
Expand file tree
/
Copy patheslint.config.mjs
More file actions
54 lines (52 loc) · 1.36 KB
/
eslint.config.mjs
File metadata and controls
54 lines (52 loc) · 1.36 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
46
47
48
49
50
51
52
53
54
// export default {
// parser: '@typescript-eslint/parser',
// plugins: ['@typescript-eslint', 'unused-imports', 'prettier'],
// rules: {
// 'no-unused-vars': 'off',
// 'prettier/prettier': 'error',
// 'unused-imports/no-unused-imports': 'error',
// },
// root: true,
// };
import eslint from '@eslint/js';
// import someOtherConfig from 'eslint-config-other-configuration-that-enables-formatting-rules';
import prettierConfig from 'eslint-config-prettier';
import tseslint from 'typescript-eslint';
import { globalIgnores } from 'eslint/config';
export default tseslint.config(
globalIgnores([
'**/dist/**',
'**/node_modules/**',
'**/docs/.astro/**',
'examples/realtime-next/**',
'examples/realtime-demo/**',
'examples/nextjs/**',
'examples/ai-sdk-ui/**',
'integration-tests//**',
'tsc-multi.json',
]),
eslint.configs.recommended,
tseslint.configs.recommended,
prettierConfig,
[
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
},
},
{
files: ['examples/docs/**'],
rules: {
'@typescript-eslint/no-unused-vars': 'off',
},
},
],
);