Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

eslint.config.js

30 lines862 Bytes

1// @ts-check
2​
3// @ts-ignore: no types for eslint-config-preact
4import preact from 'eslint-config-preact'
5import tsParser from '@typescript-eslint/parser'
6import rootConfig from './root.eslint.config.js'
7​
8export default [
9 ...rootConfig,
10 ...preact,
11 {
12 languageOptions: {
13 parser: tsParser,
14 },
15 rules: {
16 // Disable base rule to prevent overload false positives
17 'no-redeclare': 'off',
18 'no-duplicate-imports': 'off',
19 'no-unused-vars': 'off',
20 'import/order': 'off',
21 'sort-imports': 'off',
22 'no-import-assign': 'off',
23 // TS-aware version handles overloads correctly
24 '@typescript-eslint/no-redeclare': 'error',
25 '@typescript-eslint/array-type': 'off',
26 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
27 '@typescript-eslint/no-unnecessary-condition': 'off',
28 },
29 },