-
-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: Update eslint config * Bump version
- Loading branch information
1 parent
adc74e0
commit f53062f
Showing
9 changed files
with
30 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
// @ts-check | ||
|
||
// @ts-expect-error | ||
import { rootConfig } from '@tanstack/config/eslint' | ||
// @ts-ignore Needed due to moduleResolution Node vs Bundler | ||
import { tanstackConfig } from '@tanstack/config/eslint' | ||
|
||
export default [ | ||
...rootConfig, | ||
...tanstackConfig, | ||
{ | ||
name: 'tanstack/temp', | ||
name: 'tanstack/local', | ||
rules: { | ||
'@typescript-eslint/array-type': 'off', | ||
'@typescript-eslint/method-signature-style': 'off', | ||
'@typescript-eslint/naming-convention': 'off', | ||
'@typescript-eslint/no-empty-object-type': 'off', | ||
'@typescript-eslint/no-unnecessary-type-assertion': 'off', | ||
'@typescript-eslint/no-unsafe-function-type': 'off', | ||
'@typescript-eslint/no-unused-expressions': 'off', | ||
'@typescript-eslint/prefer-for-of': 'off', | ||
'ts/array-type': 'off', | ||
'ts/ban-types': 'off', | ||
'ts/method-signature-style': 'off', | ||
'ts/naming-convention': 'off', | ||
'ts/no-unnecessary-type-assertion': 'off', | ||
'ts/prefer-for-of': 'off', | ||
'ts/require-await': 'off', | ||
'no-async-promise-executor': 'off', | ||
'no-empty': 'off', | ||
}, | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import { useEffect, useLayoutEffect } from 'react' | ||
|
||
export const useIsomorphicLayoutEffect = | ||
// @ts-ignore | ||
typeof window !== 'undefined' ? useLayoutEffect : useEffect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.