Open History to see the last commit
1import { tanstackConfig } from '@tanstack/eslint-config'
2
3export default [
4 ...tanstackConfig,
5 {
6 ignores: [
7 `**/dist/**`,
8 `**/.output/**`,
9 `**/.nitro/**`,
10 `**/traildepot/**`,
11 `examples/angular/**`,
12 `packages/db-collection-e2e/vite.config.ts`,
13 ],
14 },
15 {
16 settings: {
17 // import-x/* settings required for import/no-cycle.
18 'import-x/resolver': { typescript: true },
19 'import-x/extensions': ['.ts', '.tsx', '.js', '.jsx', '.cjs', '.mjs'],
20 },
21 rules: {
22 'pnpm/enforce-catalog': `off`,
23 'pnpm/json-enforce-catalog': `off`,
24 },
25 },
26 {
27 files: [`**/*.ts`, `**/*.tsx`],
28 rules: {
29 '@typescript-eslint/no-unused-vars': [
30 `error`,
31 { argsIgnorePattern: `^_`, varsIgnorePattern: `^_` },
32 ],
33 '@typescript-eslint/naming-convention': [
34 `error`,
35 {
36 selector: `typeParameter`,
37 format: [`PascalCase`],
38 leadingUnderscore: `allow`,
39 },
40 ],
41 'import/no-cycle': `error`,
42 },
43 },
44]