Skip to content

Commit d4dacc7

Browse files
committed
feat: re-organize tsconfig sort
1 parent 8166c59 commit d4dacc7

File tree

2 files changed

+50
-47
lines changed

2 files changed

+50
-47
lines changed

src/configs/sort.ts

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -131,70 +131,39 @@ export function sortTsconfig(): FlatESLintConfigItem[] {
131131
'disableReferencedProjectLoad',
132132
/* Language and Environment */
133133
'target',
134-
'lib',
135134
'jsx',
136-
'experimentalDecorators',
137-
'emitDecoratorMetadata',
138135
'jsxFactory',
139136
'jsxFragmentFactory',
140137
'jsxImportSource',
141-
'reactNamespace',
138+
'lib',
139+
'moduleDetection',
142140
'noLib',
141+
'reactNamespace',
143142
'useDefineForClassFields',
144-
'moduleDetection',
143+
'emitDecoratorMetadata',
144+
'experimentalDecorators',
145145
/* Modules */
146-
'module',
147-
'rootDir',
148-
'moduleResolution',
149146
'baseUrl',
150-
'paths',
147+
'rootDir',
151148
'rootDirs',
152-
'typeRoots',
153-
'types',
154-
'allowUmdGlobalAccess',
149+
'customConditions',
150+
'module',
151+
'moduleResolution',
155152
'moduleSuffixes',
156-
'allowImportingTsExtensions',
153+
'noResolve',
154+
'paths',
155+
'resolveJsonModule',
157156
'resolvePackageJsonExports',
158157
'resolvePackageJsonImports',
159-
'customConditions',
160-
'resolveJsonModule',
158+
'typeRoots',
159+
'types',
161160
'allowArbitraryExtensions',
162-
'noResolve',
161+
'allowImportingTsExtensions',
162+
'allowUmdGlobalAccess',
163163
/* JavaScript Support */
164164
'allowJs',
165165
'checkJs',
166166
'maxNodeModuleJsDepth',
167-
/* Emit */
168-
'declaration',
169-
'declarationMap',
170-
'emitDeclarationOnly',
171-
'sourceMap',
172-
'inlineSourceMap',
173-
'outFile',
174-
'outDir',
175-
'removeComments',
176-
'noEmit',
177-
'importHelpers',
178-
'importsNotUsedAsValues',
179-
'downlevelIteration',
180-
'sourceRoot',
181-
'mapRoot',
182-
'inlineSources',
183-
'emitBOM',
184-
'newLine',
185-
'stripInternal',
186-
'noEmitHelpers',
187-
'noEmitOnError',
188-
'preserveConstEnums',
189-
'declarationDir',
190-
'preserveValueImports',
191-
/* Interop Constraints */
192-
'isolatedModules',
193-
'verbatimModuleSyntax',
194-
'allowSyntheticDefaultImports',
195-
'esModuleInterop',
196-
'preserveSymlinks',
197-
'forceConsistentCasingInFileNames',
198167
/* Type Checking */
199168
'strict',
200169
'strictBindCallApply',
@@ -215,6 +184,37 @@ export function sortTsconfig(): FlatESLintConfigItem[] {
215184
'noUnusedLocals',
216185
'noUnusedParameters',
217186
'useUnknownInCatchVariables',
187+
/* Emit */
188+
'declaration',
189+
'declarationDir',
190+
'declarationMap',
191+
'downlevelIteration',
192+
'emitBOM',
193+
'emitDeclarationOnly',
194+
'importHelpers',
195+
'importsNotUsedAsValues',
196+
'inlineSourceMap',
197+
'inlineSources',
198+
'mapRoot',
199+
'newLine',
200+
'noEmit',
201+
'noEmitHelpers',
202+
'noEmitOnError',
203+
'outDir',
204+
'outFile',
205+
'preserveConstEnums',
206+
'preserveValueImports',
207+
'removeComments',
208+
'sourceMap',
209+
'sourceRoot',
210+
'stripInternal',
211+
/* Interop Constraints */
212+
'allowSyntheticDefaultImports',
213+
'esModuleInterop',
214+
'forceConsistentCasingInFileNames',
215+
'isolatedModules',
216+
'preserveSymlinks',
217+
'verbatimModuleSyntax',
218218
/* Completeness */
219219
'skipDefaultLibCheck',
220220
'skipLibCheck',

src/globs.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ export const GLOB_TESTS = [
2828
`**/__tests__/**/*.${GLOB_SRC_EXT}`,
2929
`**/*.spec.${GLOB_SRC_EXT}`,
3030
`**/*.test.${GLOB_SRC_EXT}`,
31+
`**/*.bench.${GLOB_SRC_EXT}`,
32+
`**/*.benchmark.${GLOB_SRC_EXT}`,
3133
]
3234

3335
export const GLOB_ALL_SRC = [
@@ -47,6 +49,7 @@ export const GLOB_EXCLUDE = [
4749
'**/package-lock.json',
4850
'**/yarn.lock',
4951
'**/pnpm-lock.yaml',
52+
'**/bun.lockb',
5053

5154
'**/output',
5255
'**/coverage',

0 commit comments

Comments
 (0)