-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Expand file tree
/
Copy patheslint.config.js
More file actions
31 lines (28 loc) 路 892 Bytes
/
Copy patheslint.config.js
File metadata and controls
31 lines (28 loc) 路 892 Bytes
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
// @ts-check
// @ts-ignore Needed due to moduleResolution Node vs Bundler
import { tanstackConfig } from '@tanstack/eslint-config'
/** @type {any} */
const config = [
...tanstackConfig,
{
name: 'tanstack/temp',
// Anchor type-aware linting to the repo root so `project: true` does not
// fall back to process.cwd() (e.g. packages/ember-table in the IDE).
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
'no-case-declarations': 'off',
'no-shadow': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unnecessary-condition': 'warn',
'@typescript-eslint/no-unsafe-function-type': 'off',
'@typescript-eslint/prefer-for-of': 'off',
},
},
]
export default config