Skip to content

Commit

Permalink
feat: re-organize tsconfig sort
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Oct 2, 2023
1 parent 7efac1b commit 1261b2e
Showing 1 changed file with 48 additions and 48 deletions.
96 changes: 48 additions & 48 deletions src/configs/sort.ts
Expand Up @@ -121,7 +121,7 @@ export function sortTsconfig(): FlatESLintConfigItem[] {
},
{
order: [
/* Projects */
/* Projects */
'incremental',
'composite',
'tsBuildInfoFile',
Expand All @@ -130,70 +130,39 @@ export function sortTsconfig(): FlatESLintConfigItem[] {
'disableReferencedProjectLoad',
/* Language and Environment */
'target',
'lib',
'jsx',
'experimentalDecorators',
'emitDecoratorMetadata',
'jsxFactory',
'jsxFragmentFactory',
'jsxImportSource',
'reactNamespace',
'lib',
'moduleDetection',
'noLib',
'reactNamespace',
'useDefineForClassFields',
'moduleDetection',
'emitDecoratorMetadata',
'experimentalDecorators',
/* Modules */
'module',
'rootDir',
'moduleResolution',
'baseUrl',
'paths',
'rootDir',
'rootDirs',
'typeRoots',
'types',
'allowUmdGlobalAccess',
'customConditions',
'module',
'moduleResolution',
'moduleSuffixes',
'allowImportingTsExtensions',
'noResolve',
'paths',
'resolveJsonModule',
'resolvePackageJsonExports',
'resolvePackageJsonImports',
'customConditions',
'resolveJsonModule',
'typeRoots',
'types',
'allowArbitraryExtensions',
'noResolve',
'allowImportingTsExtensions',
'allowUmdGlobalAccess',
/* JavaScript Support */
'allowJs',
'checkJs',
'maxNodeModuleJsDepth',
/* Emit */
'declaration',
'declarationMap',
'emitDeclarationOnly',
'sourceMap',
'inlineSourceMap',
'outFile',
'outDir',
'removeComments',
'noEmit',
'importHelpers',
'importsNotUsedAsValues',
'downlevelIteration',
'sourceRoot',
'mapRoot',
'inlineSources',
'emitBOM',
'newLine',
'stripInternal',
'noEmitHelpers',
'noEmitOnError',
'preserveConstEnums',
'declarationDir',
'preserveValueImports',
/* Interop Constraints */
'isolatedModules',
'verbatimModuleSyntax',
'allowSyntheticDefaultImports',
'esModuleInterop',
'preserveSymlinks',
'forceConsistentCasingInFileNames',
/* Type Checking */
'strict',
'strictBindCallApply',
Expand All @@ -214,6 +183,37 @@ export function sortTsconfig(): FlatESLintConfigItem[] {
'noUnusedLocals',
'noUnusedParameters',
'useUnknownInCatchVariables',
/* Emit */
'declaration',
'declarationDir',
'declarationMap',
'downlevelIteration',
'emitBOM',
'emitDeclarationOnly',
'importHelpers',
'importsNotUsedAsValues',
'inlineSourceMap',
'inlineSources',
'mapRoot',
'newLine',
'noEmit',
'noEmitHelpers',
'noEmitOnError',
'outDir',
'outFile',
'preserveConstEnums',
'preserveValueImports',
'removeComments',
'sourceMap',
'sourceRoot',
'stripInternal',
/* Interop Constraints */
'allowSyntheticDefaultImports',
'esModuleInterop',
'forceConsistentCasingInFileNames',
'isolatedModules',
'preserveSymlinks',
'verbatimModuleSyntax',
/* Completeness */
'skipDefaultLibCheck',
'skipLibCheck',
Expand Down

0 comments on commit 1261b2e

Please sign in to comment.