-
-
Notifications
You must be signed in to change notification settings - Fork 507
Expand file tree
/
Copy patheslint.config.js
More file actions
61 lines (60 loc) · 1.89 KB
/
eslint.config.js
File metadata and controls
61 lines (60 loc) · 1.89 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
55
56
57
58
59
60
61
import { includeIgnoreFile } from '@eslint/compat';
import js from '@eslint/js';
import pluginQuery from '@tanstack/eslint-plugin-query';
import prettier from 'eslint-config-prettier';
import oxlint from 'eslint-plugin-oxlint';
import perfectionist from 'eslint-plugin-perfectionist';
// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
import storybook from 'eslint-plugin-storybook';
import svelte from 'eslint-plugin-svelte';
import globals from 'globals';
import { fileURLToPath } from 'node:url';
import ts from 'typescript-eslint';
const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url));
export default ts.config(
includeIgnoreFile(gitignorePath),
js.configs.recommended,
...ts.configs.recommended,
...svelte.configs['flat/recommended'],
perfectionist.configs['recommended-natural'],
prettier,
...pluginQuery.configs['flat/recommended'],
...svelte.configs['flat/prettier'],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node
}
}
},
{
files: ['**/*.svelte', '**/*.svelte.ts'],
languageOptions: {
parserOptions: {
parser: ts.parser
}
}
},
{
ignores: ['.agents/', 'build/', '.svelte-kit/', 'dist/', 'src/lib/generated/', 'src/lib/features/shared/components/ui/']
},
{
rules: {
'@tanstack/query/exhaustive-deps': 'off'
}
},
{
rules: {
'svelte/no-navigation-without-resolve': 'off'
}
},
{
rules: {
'perfectionist/sort-svelte-attributes': 'off'
}
},
storybook.configs['flat/recommended'],
// Must be last — disables ESLint rules already covered by oxlint
oxlint.buildFromOxlintConfigFile('./.oxlintrc.json')
);