-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
- Loading branch information
1 parent
64cfb1a
commit def90ca
Showing
6 changed files
with
284 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,121 @@ | ||
/** | ||
* @file Test Baselines - COMPILER_OPTIONS | ||
* @module tests/baselines/COMPILER_OPTIONS | ||
*/ | ||
|
||
export default [ | ||
'allowArbitraryExtensions', | ||
'allowImportingTsExtensions', | ||
'allowJs', | ||
'allowSyntheticDefaultImports', | ||
'allowUmdGlobalAccess', | ||
'allowUnreachableCode', | ||
'allowUnusedLabels', | ||
'alwaysStrict', | ||
'assumeChangesOnlyAffectDirectDependencies', | ||
'baseUrl', | ||
'charset', | ||
'checkJs', | ||
'composite', | ||
'customConditions', | ||
'declaration', | ||
'declarationDir', | ||
'declarationMap', | ||
'diagnostics', | ||
'disableReferencedProjectLoad', | ||
'disableSizeLimit', | ||
'disableSolutionSearching', | ||
'disableSourceOfProjectReferenceRedirect', | ||
'downlevelIteration', | ||
'emitBOM', | ||
'emitDeclarationOnly', | ||
'emitDecoratorMetadata', | ||
'esModuleInterop', | ||
'exactOptionalPropertyTypes', | ||
'experimentalDecorators', | ||
'explainFiles', | ||
'extendedDiagnostics', | ||
'fallbackPolling', | ||
'forceConsistentCasingInFileNames', | ||
'generateCpuProfile', | ||
'ignoreDeprecations', | ||
'importHelpers', | ||
'importsNotUsedAsValues', | ||
'incremental', | ||
'inlineSourceMap', | ||
'inlineSources', | ||
'isolatedModules', | ||
'jsx', | ||
'jsxFactory', | ||
'jsxFragmentFactory', | ||
'jsxImportSource', | ||
'keyofStringsOnly', | ||
'lib', | ||
'listEmittedFiles', | ||
'listFiles', | ||
'listFilesOnly', | ||
'mapRoot', | ||
'maxNodeModuleJsDepth', | ||
'module', | ||
'moduleDetection', | ||
'moduleResolution', | ||
'moduleSuffixes', | ||
'newLine', | ||
'noEmit', | ||
'noEmitHelpers', | ||
'noEmitOnError', | ||
'noErrorTruncation', | ||
'noFallthroughCasesInSwitch', | ||
'noImplicitAny', | ||
'noImplicitOverride', | ||
'noImplicitReturns', | ||
'noImplicitThis', | ||
'noImplicitUseStrict', | ||
'noLib', | ||
'noPropertyAccessFromIndexSignature', | ||
'noResolve', | ||
'noStrictGenericChecks', | ||
'noUncheckedIndexedAccess', | ||
'noUnusedLocals', | ||
'noUnusedParameters', | ||
'out', | ||
'outDir', | ||
'outFile', | ||
'paths', | ||
'plugins', | ||
'preserveConstEnums', | ||
'preserveSymlinks', | ||
'preserveValueImports', | ||
'preserveWatchOutput', | ||
'pretty', | ||
'reactNamespace', | ||
'removeComments', | ||
'resolveJsonModule', | ||
'resolvePackageJsonExports', | ||
'resolvePackageJsonImports', | ||
'rootDir', | ||
'rootDirs', | ||
'skipDefaultLibCheck', | ||
'skipLibCheck', | ||
'sourceMap', | ||
'sourceRoot', | ||
'strict', | ||
'strictBindCallApply', | ||
'strictFunctionTypes', | ||
'strictNullChecks', | ||
'strictPropertyInitialization', | ||
'stripInternal', | ||
'suppressExcessPropertyErrors', | ||
'suppressImplicitAnyIndexErrors', | ||
'target', | ||
'traceResolution', | ||
'tsBuildInfoFile', | ||
'typeRoots', | ||
'types', | ||
'useDefineForClassFields', | ||
'useUnknownInCatchVariables', | ||
'verbatimModuleSyntax', | ||
'watch', | ||
'watchDirectory', | ||
'watchFile' | ||
] as const |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* @file Type Tests - COMPILER_OPTIONS | ||
* @module tsconfig-utils/utils/tests/unit-d/COMPILER_OPTIONS | ||
*/ | ||
|
||
import type { CompilerOption } from '@flex-development/tsconfig-types' | ||
import type TEST_SUBJECT from '../compiler-options' | ||
|
||
describe('unit-d:utils/COMPILER_OPTIONS', () => { | ||
it('should equal type of Set<CompilerOption>', () => { | ||
expectTypeOf<typeof TEST_SUBJECT>().toEqualTypeOf<Set<CompilerOption>>() | ||
}) | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* @file Unit Tests - COMPILER_OPTIONS | ||
* @module tsconfig-utils/utils/tests/unit/COMPILER_OPTIONS | ||
*/ | ||
|
||
import BASELINE from '#tests/baselines/compiler-options' | ||
import TEST_SUBJECT from '../compiler-options' | ||
|
||
describe('unit:utils/COMPILER_OPTIONS', () => { | ||
it('should be instance of Set', () => { | ||
expect(TEST_SUBJECT).to.be.instanceof(Set) | ||
}) | ||
|
||
it('should contain compiler option names', () => { | ||
expect([...TEST_SUBJECT]).to.deep.equal(BASELINE) | ||
}) | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,130 @@ | ||
/** | ||
* @file Utilities - COMPILER_OPTIONS | ||
* @module tsconfig-utils/utils/COMPILER_OPTIONS | ||
*/ | ||
|
||
import type { CompilerOption } from '@flex-development/tsconfig-types' | ||
|
||
/** | ||
* Compiler option names. | ||
* | ||
* @const {Set<CompilerOption>} COMPILER_OPTIONS | ||
*/ | ||
const COMPILER_OPTIONS: Set<CompilerOption> = new Set<CompilerOption>([ | ||
'allowArbitraryExtensions', | ||
'allowImportingTsExtensions', | ||
'allowJs', | ||
'allowSyntheticDefaultImports', | ||
'allowUmdGlobalAccess', | ||
'allowUnreachableCode', | ||
'allowUnusedLabels', | ||
'alwaysStrict', | ||
'assumeChangesOnlyAffectDirectDependencies', | ||
'baseUrl', | ||
'charset', | ||
'checkJs', | ||
'composite', | ||
'customConditions', | ||
'declaration', | ||
'declarationDir', | ||
'declarationMap', | ||
'diagnostics', | ||
'disableReferencedProjectLoad', | ||
'disableSizeLimit', | ||
'disableSolutionSearching', | ||
'disableSourceOfProjectReferenceRedirect', | ||
'downlevelIteration', | ||
'emitBOM', | ||
'emitDeclarationOnly', | ||
'emitDecoratorMetadata', | ||
'esModuleInterop', | ||
'exactOptionalPropertyTypes', | ||
'experimentalDecorators', | ||
'explainFiles', | ||
'extendedDiagnostics', | ||
'fallbackPolling', | ||
'forceConsistentCasingInFileNames', | ||
'generateCpuProfile', | ||
'ignoreDeprecations', | ||
'importHelpers', | ||
'importsNotUsedAsValues', | ||
'incremental', | ||
'inlineSourceMap', | ||
'inlineSources', | ||
'isolatedModules', | ||
'jsx', | ||
'jsxFactory', | ||
'jsxFragmentFactory', | ||
'jsxImportSource', | ||
'keyofStringsOnly', | ||
'lib', | ||
'listEmittedFiles', | ||
'listFiles', | ||
'listFilesOnly', | ||
'mapRoot', | ||
'maxNodeModuleJsDepth', | ||
'module', | ||
'moduleDetection', | ||
'moduleResolution', | ||
'moduleSuffixes', | ||
'newLine', | ||
'noEmit', | ||
'noEmitHelpers', | ||
'noEmitOnError', | ||
'noErrorTruncation', | ||
'noFallthroughCasesInSwitch', | ||
'noImplicitAny', | ||
'noImplicitOverride', | ||
'noImplicitReturns', | ||
'noImplicitThis', | ||
'noImplicitUseStrict', | ||
'noLib', | ||
'noPropertyAccessFromIndexSignature', | ||
'noResolve', | ||
'noStrictGenericChecks', | ||
'noUncheckedIndexedAccess', | ||
'noUnusedLocals', | ||
'noUnusedParameters', | ||
'out', | ||
'outDir', | ||
'outFile', | ||
'paths', | ||
'plugins', | ||
'preserveConstEnums', | ||
'preserveSymlinks', | ||
'preserveValueImports', | ||
'preserveWatchOutput', | ||
'pretty', | ||
'reactNamespace', | ||
'removeComments', | ||
'resolveJsonModule', | ||
'resolvePackageJsonExports', | ||
'resolvePackageJsonImports', | ||
'rootDir', | ||
'rootDirs', | ||
'skipDefaultLibCheck', | ||
'skipLibCheck', | ||
'sourceMap', | ||
'sourceRoot', | ||
'strict', | ||
'strictBindCallApply', | ||
'strictFunctionTypes', | ||
'strictNullChecks', | ||
'strictPropertyInitialization', | ||
'stripInternal', | ||
'suppressExcessPropertyErrors', | ||
'suppressImplicitAnyIndexErrors', | ||
'target', | ||
'traceResolution', | ||
'tsBuildInfoFile', | ||
'typeRoots', | ||
'types', | ||
'useDefineForClassFields', | ||
'useUnknownInCatchVariables', | ||
'verbatimModuleSyntax', | ||
'watch', | ||
'watchDirectory', | ||
'watchFile' | ||
]) | ||
|
||
export default COMPILER_OPTIONS |
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