-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(deps): update to
@typescript-eslint/*
v6 (#945)
- Loading branch information
1 parent
33bde4f
commit f07ee64
Showing
17 changed files
with
613 additions
and
340 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
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,24 +1,22 @@ | ||
import { join } from 'path'; | ||
|
||
import { type TSESLint } from '@typescript-eslint/utils'; | ||
import type { TSESLint } from '@typescript-eslint/utils'; | ||
|
||
import { | ||
importDefault, | ||
SUPPORTED_TESTING_FRAMEWORKS, | ||
SupportedTestingFramework, | ||
} from '../utils'; | ||
|
||
export type LinterConfigRules = Pick<Required<TSESLint.Linter.Config>, 'rules'>; | ||
|
||
const configsDir = __dirname; | ||
|
||
const getConfigForFramework = (framework: SupportedTestingFramework) => | ||
importDefault<LinterConfigRules>(join(configsDir, framework)); | ||
importDefault<TSESLint.SharedConfig.RulesRecord>(join(configsDir, framework)); | ||
|
||
export default SUPPORTED_TESTING_FRAMEWORKS.reduce( | ||
(allConfigs, framework) => ({ | ||
...allConfigs, | ||
[framework]: getConfigForFramework(framework), | ||
}), | ||
{} | ||
) as Record<SupportedTestingFramework, LinterConfigRules>; | ||
) as Record<SupportedTestingFramework, TSESLint.SharedConfig.RulesRecord>; |
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
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
Oops, something went wrong.