Open History to see the last commit
1// @ts-check
2β
3import { defineConfig } from 'eslint/config'
4β
5// @ts-ignore Needed due to moduleResolution Node vs Bundler
6import { tanstackConfig } from '@tanstack/eslint-config'
7β
8export default defineConfig([
9 ...tanstackConfig,
10 {
11 name: 'tanstack/temp',
12 rules: {
13 '@typescript-eslint/array-type': 'off',
14 '@typescript-eslint/method-signature-style': 'off',
15 '@typescript-eslint/naming-convention': 'off',
16 '@typescript-eslint/no-unnecessary-type-assertion': 'off',
17 '@typescript-eslint/no-unsafe-function-type': 'off',
18 '@typescript-eslint/require-await': 'off',
19 'no-async-promise-executor': 'off',
20 'no-empty': 'off',
21 'no-restricted-syntax': [
22 'error',
23 {
24 selector:
25 "ImportDeclaration[source.value='lucide-solid'][importKind!='type'] > ImportSpecifier[importKind!='type'][imported.name=/Icon$/]",
26 message:
27 "Import icons from 'lucide-solid/icons/{name}' instead of the 'lucide-solid' barrel.",
28 },
29 ],
30 },
31 },
32])