@wtf/project-docs 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/api/.generated +134 -12
- package/api/@wtf/project-astro/README.md +53 -14
- package/api/@wtf/project-astro/config/functions/baseConfig.md +1 -1
- package/api/@wtf/project-astro/config/functions/baseOf.md +1 -1
- package/api/@wtf/project-astro/config/functions/siteOf.md +1 -1
- package/api/@wtf/project-astro/config/type-aliases/BaseOptions.md +6 -6
- package/api/@wtf/project-astro/config/type-aliases/Env.md +1 -1
- package/api/@wtf/project-astro/errors/classes/BrokenLinksError.md +5 -5
- package/api/@wtf/project-astro/errors/classes/InvalidRedirectError.md +6 -6
- package/api/@wtf/project-astro/errors/classes/RedirectedLinksError.md +5 -5
- package/api/@wtf/project-astro/errors/classes/SiteError.md +4 -4
- package/api/@wtf/project-astro/index/type-aliases/BrokenLink.md +3 -3
- package/api/@wtf/project-astro/index/type-aliases/IgnoredLine.md +4 -4
- package/api/@wtf/project-astro/index/type-aliases/RedirectInput.md +2 -2
- package/api/@wtf/project-astro/index/type-aliases/RedirectMatch.md +3 -3
- package/api/@wtf/project-astro/index/type-aliases/RedirectRule.md +5 -5
- package/api/@wtf/project-astro/index/type-aliases/RedirectStatus.md +1 -1
- package/api/@wtf/project-astro/index/type-aliases/RedirectedLink.md +2 -2
- package/api/@wtf/project-astro/index/type-aliases/Redirects.md +3 -3
- package/api/@wtf/project-astro/links/functions/brokenLinksIn.md +1 -1
- package/api/@wtf/project-astro/links/functions/links.md +2 -2
- package/api/@wtf/project-astro/links/functions/redirectedLinksIn.md +1 -1
- package/api/@wtf/project-astro/links/variables/LINKS.md +1 -1
- package/api/@wtf/project-astro/pages/README.md +1 -1
- package/api/@wtf/project-astro/pages/functions/fixSearchUrlsIn.md +1 -1
- package/api/@wtf/project-astro/pages/functions/moveConflictingPages.md +1 -1
- package/api/@wtf/project-astro/pages/functions/pages.md +1 -1
- package/api/@wtf/project-astro/pages/functions/slashFolderLinksIn.md +1 -1
- package/api/@wtf/project-astro/pages/variables/PAGES.md +1 -1
- package/api/@wtf/project-astro/preview/README.md +20 -10
- package/api/@wtf/project-astro/preview/functions/files.md +5 -1
- package/api/@wtf/project-astro/preview/functions/listen.md +4 -2
- package/api/@wtf/project-astro/preview/functions/notFound.md +3 -2
- package/api/@wtf/project-astro/preview/functions/pagesOf.md +4 -3
- package/api/@wtf/project-astro/preview/functions/previewOf.md +25 -0
- package/api/@wtf/project-astro/preview/type-aliases/FilesOptions.md +2 -2
- package/api/@wtf/project-astro/preview/type-aliases/Handler.md +1 -1
- package/api/@wtf/project-astro/preview/type-aliases/ListenOptions.md +15 -3
- package/api/@wtf/project-astro/preview/type-aliases/Listening.md +16 -4
- package/api/@wtf/project-astro/preview/type-aliases/Pages.md +3 -3
- package/api/@wtf/project-astro/preview/type-aliases/Preview.md +19 -0
- package/api/@wtf/project-astro/preview/type-aliases/PreviewOptions.md +36 -0
- package/api/@wtf/project-astro/redirects/functions/formatRedirects.md +1 -1
- package/api/@wtf/project-astro/redirects/functions/matchRedirect.md +1 -1
- package/api/@wtf/project-astro/redirects/functions/parseRedirects.md +1 -1
- package/api/@wtf/project-astro/redirects/variables/MAX_PARTS.md +1 -1
- package/api/@wtf/project-astro/redirects/variables/MAX_RULES.md +1 -1
- package/api/@wtf/project-astro/redirects/variables/MAX_SIZE.md +1 -1
- package/api/@wtf/project-astro/schema/README.md +23 -0
- package/api/@wtf/project-astro/schema/variables/astroSchema.md +13 -0
- package/api/@wtf/project-config/README.md +94 -0
- package/api/@wtf/project-config/define/README.md +23 -0
- package/api/@wtf/project-config/define/functions/defineConfig.md +29 -0
- package/api/@wtf/project-config/env/README.md +33 -0
- package/api/@wtf/project-config/env/functions/envNameOf.md +22 -0
- package/api/@wtf/project-config/env/functions/envPrefixOf.md +22 -0
- package/api/@wtf/project-config/env/functions/jsonSchemaOf.md +23 -0
- package/api/@wtf/project-config/env/functions/variablesOf.md +23 -0
- package/api/@wtf/project-config/env/functions/withEnvironment.md +34 -0
- package/api/@wtf/project-config/env/type-aliases/Environment.md +11 -0
- package/api/@wtf/project-config/env/type-aliases/EnvironmentValue.md +32 -0
- package/api/@wtf/project-config/env/type-aliases/WithEnvironment.md +31 -0
- package/api/@wtf/project-config/errors/README.md +31 -0
- package/api/@wtf/project-config/errors/classes/ConfigError.md +200 -0
- package/api/@wtf/project-config/errors/classes/ConfigFileMismatchError.md +175 -0
- package/api/@wtf/project-config/errors/classes/ConfigInCodeError.md +177 -0
- package/api/@wtf/project-config/errors/classes/ConfigPathError.md +174 -0
- package/api/@wtf/project-config/errors/classes/EnvPlaceholderUnsetError.md +176 -0
- package/api/@wtf/project-config/errors/classes/InvalidConfigFileError.md +179 -0
- package/api/@wtf/project-config/errors/classes/InvalidSectionError.md +185 -0
- package/api/@wtf/project-config/errors/classes/NoConfigFileError.md +178 -0
- package/api/@wtf/project-config/errors/classes/NoConfigValueError.md +174 -0
- package/api/@wtf/project-config/errors/classes/SyncConfigInCodeError.md +177 -0
- package/api/@wtf/project-config/errors/classes/SyncSchemaError.md +174 -0
- package/api/@wtf/project-config/errors/classes/UnwritableConfigFileError.md +175 -0
- package/api/@wtf/project-config/index/README.md +35 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigDefaults.md +36 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigEnvironment.md +44 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigIssue.md +31 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigNames.md +52 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigPath.md +12 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigPlatform.md +14 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigSection.md +19 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigSource.md +35 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigSyncPlatform.md +33 -0
- package/api/@wtf/project-config/index/type-aliases/ConfigWrite.md +116 -0
- package/api/@wtf/project-config/index/type-aliases/ImportModule.md +22 -0
- package/api/@wtf/project-config/index/type-aliases/JsonSchema.md +15 -0
- package/api/@wtf/project-config/index/type-aliases/LocatedConfig.md +45 -0
- package/api/@wtf/project-config/index/type-aliases/NamespaceConfig.md +29 -0
- package/api/@wtf/project-config/index/type-aliases/ResolvedConfig.md +109 -0
- package/api/@wtf/project-config/index/type-aliases/SectionSchema.md +23 -0
- package/api/@wtf/project-config/index/type-aliases/SectionsOf.md +19 -0
- package/api/@wtf/project-config/index/type-aliases/SyncFiles.md +55 -0
- package/api/@wtf/project-config/index/type-aliases/ValidateSection.md +24 -0
- package/api/@wtf/project-config/load/README.md +33 -0
- package/api/@wtf/project-config/load/functions/ignoredWarning.md +22 -0
- package/api/@wtf/project-config/load/functions/importFileModule.md +24 -0
- package/api/@wtf/project-config/load/functions/loadConfig.md +30 -0
- package/api/@wtf/project-config/load/functions/loadConfigSync.md +25 -0
- package/api/@wtf/project-config/load/type-aliases/LoadLayers.md +19 -0
- package/api/@wtf/project-config/load/type-aliases/LoadOptions.md +17 -0
- package/api/@wtf/project-config/load/type-aliases/LoadSyncOptions.md +11 -0
- package/api/@wtf/project-config/locate/README.md +40 -0
- package/api/@wtf/project-config/locate/functions/configFilesOf.md +23 -0
- package/api/@wtf/project-config/locate/functions/configNamesOf.md +24 -0
- package/api/@wtf/project-config/locate/functions/jsonFilesOf.md +22 -0
- package/api/@wtf/project-config/locate/functions/locateConfig.md +27 -0
- package/api/@wtf/project-config/locate/functions/locateConfigSync.md +23 -0
- package/api/@wtf/project-config/locate/functions/projectRootOf.md +25 -0
- package/api/@wtf/project-config/locate/functions/projectRootOfSync.md +23 -0
- package/api/@wtf/project-config/locate/type-aliases/LocateNames.md +18 -0
- package/api/@wtf/project-config/locate/type-aliases/LocateOptions.md +17 -0
- package/api/@wtf/project-config/locate/type-aliases/LocateSyncOptions.md +17 -0
- package/api/@wtf/project-config/locate/type-aliases/NamespaceNames.md +18 -0
- package/api/@wtf/project-config/locate/variables/DEFAULT_NAMESPACE.md +11 -0
- package/api/@wtf/project-config/node/README.md +27 -0
- package/api/@wtf/project-config/node/functions/loadConfig.md +24 -0
- package/api/@wtf/project-config/node/functions/loadConfigSync.md +24 -0
- package/api/@wtf/project-config/node/functions/nodeConfigPlatform.md +16 -0
- package/api/@wtf/project-config/node/functions/nodeSyncPlatform.md +16 -0
- package/api/@wtf/project-config/path/README.md +13 -0
- package/api/@wtf/project-config/path/functions/configPathOf.md +23 -0
- package/api/@wtf/project-config/path/functions/textOfConfigPath.md +21 -0
- package/api/@wtf/project-config/path/functions/valueAt.md +23 -0
- package/api/@wtf/project-config/placeholder/README.md +24 -0
- package/api/@wtf/project-config/placeholder/functions/expandPlaceholders.md +31 -0
- package/api/@wtf/project-config/placeholder/functions/expandString.md +31 -0
- package/api/@wtf/project-config/schema/README.md +29 -0
- package/api/@wtf/project-config/schema/functions/namespaceSchema.md +31 -0
- package/api/@wtf/project-config/schema/functions/sectionIdOf.md +23 -0
- package/api/@wtf/project-config/schema/type-aliases/NamespaceSchemaOptions.md +31 -0
- package/api/@wtf/project-config/schema/variables/JSON_SCHEMA_DRAFT.md +11 -0
- package/api/@wtf/project-config/section/README.md +34 -0
- package/api/@wtf/project-config/section/functions/issuesOf.md +30 -0
- package/api/@wtf/project-config/section/functions/issuesOfSync.md +34 -0
- package/api/@wtf/project-config/section/functions/mergeSection.md +28 -0
- package/api/@wtf/project-config/section/functions/sectionOf.md +43 -0
- package/api/@wtf/project-config/section/functions/sectionOfSync.md +35 -0
- package/api/@wtf/project-config/section/type-aliases/Checked.md +38 -0
- package/api/@wtf/project-config/write/README.md +30 -0
- package/api/@wtf/project-config/write/functions/setConfigValue.md +39 -0
- package/api/@wtf/project-config/write/functions/unsetConfigValue.md +31 -0
- package/api/@wtf/project-config/write/type-aliases/WriteOptions.md +18 -0
- package/api/@wtf/project-oxfmt/README.md +32 -8
- package/api/@wtf/project-oxfmt/config/README.md +23 -0
- package/api/@wtf/project-oxfmt/config/functions/oxfmtConfig.md +30 -0
- package/api/@wtf/project-oxfmt/config/type-aliases/OxfmtOptions.md +11 -0
- package/api/@wtf/project-oxfmt/config/variables/OXFMT_DEFAULTS.md +21 -0
- package/api/@wtf/project-oxfmt/config/variables/default.md +11 -0
- package/api/@wtf/project-oxfmt/schema/README.md +25 -0
- package/api/@wtf/project-oxfmt/schema/variables/oxfmtSchema.md +13 -0
- package/api/@wtf/project-oxlint/README.md +35 -8
- package/api/@wtf/project-oxlint/config/README.md +23 -0
- package/api/@wtf/project-oxlint/config/functions/oxlintConfig.md +30 -0
- package/api/@wtf/project-oxlint/config/type-aliases/OxlintOptions.md +13 -0
- package/api/@wtf/project-oxlint/config/variables/OXLINT_DEFAULTS.md +32 -0
- package/api/@wtf/project-oxlint/config/variables/default.md +11 -0
- package/api/@wtf/project-oxlint/schema/README.md +27 -0
- package/api/@wtf/project-oxlint/schema/variables/oxlintSchema.md +12 -0
- package/api/@wtf/project-resolve/condition/variables/SOURCE_CONDITION.md +1 -1
- package/api/@wtf/project-resolve/env/functions/isHook.md +1 -1
- package/api/@wtf/project-resolve/env/functions/optionsWithoutHook.md +1 -1
- package/api/@wtf/project-resolve/env/functions/withoutHook.md +1 -1
- package/api/@wtf/project-resolve/env/type-aliases/Env.md +1 -1
- package/api/@wtf/project-resolve/errors/classes/ResolveError.md +4 -4
- package/api/@wtf/project-resolve/errors/classes/UnreadableWorkspaceError.md +6 -6
- package/api/@wtf/project-resolve/errors/classes/WorkspaceError.md +5 -5
- package/api/@wtf/project-resolve/hooks/functions/candidatesOf.md +1 -1
- package/api/@wtf/project-resolve/hooks/functions/sourcesHookOf.md +1 -1
- package/api/@wtf/project-resolve/hooks/functions/sourcesOf.md +1 -1
- package/api/@wtf/project-resolve/hooks/variables/resolveTypeScript.md +1 -1
- package/api/@wtf/project-resolve/node/functions/nodePlatform.md +5 -5
- package/api/@wtf/project-resolve/register/variables/REGISTERED.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/filesOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/packagesOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceAt.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceRootAbove.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceRootOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/Agent.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/DirectoryEntry.md +4 -4
- package/api/@wtf/project-resolve/workspace/type-aliases/FileContents.md +3 -3
- package/api/@wtf/project-resolve/workspace/type-aliases/PackageManager.md +4 -4
- package/api/@wtf/project-resolve/workspace/type-aliases/PackageManagerName.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/ProcessWorkspaceOptions.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/Workspace.md +5 -5
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceDirectoryHandle.md +6 -6
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFileHandle.md +3 -3
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFiles.md +6 -6
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceOptions.md +2 -2
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePackage.md +4 -4
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePaths.md +7 -7
- package/api/@wtf/project-typedoc/README.md +31 -4
- package/api/@wtf/project-typedoc/config/functions/gitRevisionOf.md +1 -1
- package/api/@wtf/project-typedoc/config/functions/typedocConfig.md +1 -1
- package/api/@wtf/project-typedoc/config/type-aliases/RevisionSources.md +3 -3
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocConfig.md +1 -1
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocOptions.md +6 -6
- package/api/@wtf/project-typedoc/config/variables/nodeRun.md +1 -1
- package/api/@wtf/project-typedoc/plugins/functions/cleanGeneratedMarkdown.md +1 -1
- package/api/@wtf/project-typedoc/plugins/functions/linkTrackedSources.md +1 -1
- package/api/@wtf/project-typedoc/plugins/functions/preventMediaFiles.md +1 -1
- package/api/@wtf/project-typedoc/plugins/type-aliases/CleanGeneratedMarkdownOptions.md +3 -3
- package/api/@wtf/project-typedoc/plugins/type-aliases/LinkTrackedSourcesOptions.md +3 -3
- package/api/@wtf/project-typedoc/plugins/type-aliases/PreventMediaFilesOptions.md +3 -3
- package/api/@wtf/project-typedoc/plugins/type-aliases/Run.md +1 -1
- package/api/@wtf/project-typedoc/plugins/type-aliases/TypedocPlugin.md +1 -1
- package/api/@wtf/project-typedoc/schema/README.md +28 -0
- package/api/@wtf/project-typedoc/schema/variables/typedocSchema.md +13 -0
- package/api/@wtf/project-vite/README.md +17 -33
- package/api/@wtf/project-vite/config/README.md +46 -0
- package/api/@wtf/project-vite/{functions → config/functions}/baseConfig.md +5 -5
- package/api/@wtf/project-vite/{functions → config/functions}/buildsSite.md +2 -2
- package/api/@wtf/project-vite/{functions → config/functions}/compress.md +2 -2
- package/api/@wtf/project-vite/{functions → config/functions}/conditionsOf.md +2 -2
- package/api/@wtf/project-vite/{type-aliases → config/type-aliases}/BaseOptions.md +3 -3
- package/api/@wtf/project-vite/{type-aliases → config/type-aliases}/CompressOptions.md +5 -5
- package/api/@wtf/project-vite/{variables → config/variables}/CLIENT_CONDITIONS.md +2 -2
- package/api/@wtf/project-vite/{variables → config/variables}/COMPRESSIBLE.md +2 -2
- package/api/@wtf/project-vite/{variables → config/variables}/FROM_DIST.md +2 -2
- package/api/@wtf/project-vite/{variables → config/variables}/THRESHOLD.md +2 -2
- package/api/@wtf/project-vite/schema/README.md +21 -0
- package/api/@wtf/project-vite/schema/variables/viteSchema.md +12 -0
- package/api/@wtf/project-vitest/README.md +26 -0
- package/api/@wtf/project-vitest/browser/functions/browserConfig.md +1 -1
- package/api/@wtf/project-vitest/browser/functions/browserRootConfig.md +1 -1
- package/api/@wtf/project-vitest/browser/type-aliases/BrowserOptions.md +3 -3
- package/api/@wtf/project-vitest/config/functions/integrationConfig.md +1 -1
- package/api/@wtf/project-vitest/config/functions/packageConfig.md +1 -1
- package/api/@wtf/project-vitest/config/functions/rootConfig.md +1 -1
- package/api/@wtf/project-vitest/config/type-aliases/RootConfigOptions.md +2 -2
- package/api/@wtf/project-vitest/config/type-aliases/RootOptions.md +7 -7
- package/api/@wtf/project-vitest/config/variables/FROM_DIST.md +1 -1
- package/api/@wtf/project-vitest/config/variables/GUARD_TIMEOUT.md +1 -1
- package/api/@wtf/project-vitest/config/variables/integration.md +9 -9
- package/api/@wtf/project-vitest/process/functions/childEnv.md +1 -1
- package/api/@wtf/project-vitest/process/type-aliases/Env.md +1 -1
- package/api/@wtf/project-vitest/schema/README.md +22 -0
- package/api/@wtf/project-vitest/schema/variables/vitestSchema.md +13 -0
- package/api/@wtf/project-vitest/storybook/functions/storybookConfig.md +1 -1
- package/api/@wtf/project-vitest/storybook/type-aliases/StorybookOptions.md +2 -2
- package/api/@wtf/project-wpt/README.md +44 -0
- package/api/@wtf/project-wpt/builtins/functions/builtins.md +1 -1
- package/api/@wtf/project-wpt/builtins/functions/intrinsics.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/checkoutFolderOf.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/checkoutTests.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/checkoutWpt.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/fileOf.md +1 -1
- package/api/@wtf/project-wpt/checkout/type-aliases/CheckedOutTests.md +3 -3
- package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutOptions.md +8 -8
- package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutTestsOptions.md +2 -2
- package/api/@wtf/project-wpt/checkout/variables/HARNESS.md +1 -1
- package/api/@wtf/project-wpt/checkout/variables/REWRITES.md +1 -1
- package/api/@wtf/project-wpt/checkout/variables/WPT_REPOSITORY.md +1 -1
- package/api/@wtf/project-wpt/errors/classes/HarnessFailedError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/InvalidCommitError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/InvalidExpectationsError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/NoSuiteError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/NotInWptError.md +5 -5
- package/api/@wtf/project-wpt/errors/classes/StaleExpectationError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/SubtestFailedError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/UnexpectedPassError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/WptError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/WptFetchError.md +4 -4
- package/api/@wtf/project-wpt/expectations/functions/checkHarness.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/checkSubtest.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/expectationOf.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/expectationsIssues.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/readExpectations.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/staleOf.md +1 -1
- package/api/@wtf/project-wpt/expectations/type-aliases/ReadExpectations.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/ClearTimeout.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/CreateRealm.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Env.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Exec.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Expectations.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/FileExpectation.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/FileResult.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/Globals.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/HarnessResult.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/HarnessStatus.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/HoldRejections.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Performance.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/Realm.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/SetTimeout.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/SubtestResult.md +5 -5
- package/api/@wtf/project-wpt/index/type-aliases/SubtestStatus.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/WptFile.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/WptFiles.md +9 -9
- package/api/@wtf/project-wpt/index/type-aliases/WptPaths.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/WptPlatform.md +6 -6
- package/api/@wtf/project-wpt/index/type-aliases/WptSystem.md +6 -6
- package/api/@wtf/project-wpt/index/type-aliases/WptTest.md +3 -3
- package/api/@wtf/project-wpt/meta/functions/idOf.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/metaOf.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/runsOutsideWindow.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/scriptPathsOf.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/testsOf.md +1 -1
- package/api/@wtf/project-wpt/meta/type-aliases/Meta.md +6 -6
- package/api/@wtf/project-wpt/node/functions/nodePlatform.md +1 -1
- package/api/@wtf/project-wpt/node/functions/nodeSystem.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeExec.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeFiles.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeRealm.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeRejections.md +1 -1
- package/api/@wtf/project-wpt/run/functions/runTest.md +1 -1
- package/api/@wtf/project-wpt/run/type-aliases/RunOptions.md +8 -8
- package/api/@wtf/project-wpt/run/type-aliases/RunPlatform.md +1 -1
- package/api/@wtf/project-wpt/run/variables/LONG_TIMEOUT.md +1 -1
- package/api/@wtf/project-wpt/run/variables/TIMEOUT.md +1 -1
- package/api/@wtf/project-wpt/run/variables/WPT_ORIGIN.md +1 -1
- package/api/@wtf/project-wpt/schema/README.md +39 -0
- package/api/@wtf/project-wpt/schema/type-aliases/WptConfig.md +27 -0
- package/api/@wtf/project-wpt/schema/type-aliases/WptSuiteConfig.md +19 -0
- package/api/@wtf/project-wpt/schema/variables/wptSchema.md +13 -0
- package/api/@wtf/project-wpt/suite/functions/wptSuite.md +1 -1
- package/api/@wtf/project-wpt/suite/type-aliases/WptSuiteOptions.md +8 -8
- package/api/README.md +1 -0
- package/api/trains.json +3 -0
- package/guides/astro.md +37 -20
- package/guides/config.md +153 -0
- package/guides/presets.md +16 -0
- package/package.json +10 -9
- package/api/@wtf/project-oxfmt/variables/default.md +0 -19
- package/api/@wtf/project-oxlint/variables/default.md +0 -30
|
@@ -6,9 +6,10 @@ A shared oxfmt config: 100 columns, single quotes, no semicolons and no trailing
|
|
|
6
6
|
the build, the lockfile, the changelogs and a generated reference in `packages/docs/api` alone.
|
|
7
7
|
oxfmt is a peer dependency.
|
|
8
8
|
|
|
9
|
-
| Subpath | What you get
|
|
10
|
-
| ---------- |
|
|
11
|
-
| `./config` | The config, as the default export |
|
|
9
|
+
| Subpath | What you get |
|
|
10
|
+
| ---------- | ------------------------------------------------------------------------------------------------------ |
|
|
11
|
+
| `./config` | The config, as the default export; `oxfmtConfig(options)`, the config with options of your own over it |
|
|
12
|
+
| `./schema` | `oxfmtSchema`: the Standard Schema of the options of `oxfmtConfig()`, which gives their JSON Schema |
|
|
12
13
|
|
|
13
14
|
```ts
|
|
14
15
|
// oxfmt.config.ts
|
|
@@ -18,12 +19,35 @@ import { defineConfig } from 'oxfmt'
|
|
|
18
19
|
export default defineConfig({ ...preset })
|
|
19
20
|
```
|
|
20
21
|
|
|
22
|
+
`oxfmtConfig(options)` gives the config with your options over it, each in place of the preset's,
|
|
23
|
+
so `ignorePatterns` given is the whole list.
|
|
24
|
+
|
|
21
25
|
See the [presets guide](../../../guides/presets.md).
|
|
22
26
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
## From the wtf configuration
|
|
28
|
+
|
|
29
|
+
The config reads no file of its own. Keep its options in the `oxfmt` section of the repo's `wtf`
|
|
30
|
+
configuration, load it with [`@wtf/project-config`](../project-config/README.md), and spread the
|
|
31
|
+
section in, checked by `oxfmtSchema`. oxfmt imports `oxfmt.config.ts`, so the config may await the
|
|
32
|
+
load, and a `wtf.config.ts` is read too:
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
// oxfmt.config.ts
|
|
36
|
+
import { loadConfig } from '@wtf/project-config/node'
|
|
37
|
+
import { sectionOf } from '@wtf/project-config/section'
|
|
38
|
+
import { oxfmtConfig } from '@wtf/project-oxfmt/config'
|
|
39
|
+
import { oxfmtSchema } from '@wtf/project-oxfmt/schema'
|
|
40
|
+
import { defineConfig } from 'oxfmt'
|
|
41
|
+
|
|
42
|
+
const config = await loadConfig()
|
|
43
|
+
export default defineConfig(oxfmtConfig({ ...(await sectionOf(config, 'oxfmt', oxfmtSchema)) }))
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{ "oxfmt": { "printWidth": 120 } }
|
|
48
|
+
```
|
|
26
49
|
|
|
27
|
-
##
|
|
50
|
+
## Modules
|
|
28
51
|
|
|
29
|
-
- [
|
|
52
|
+
- [config](config/README.md)
|
|
53
|
+
- [schema](schema/README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[Documentation](../../../README.md) / [@wtf/project-oxfmt](../README.md) / config
|
|
2
|
+
|
|
3
|
+
# config
|
|
4
|
+
|
|
5
|
+
oxfmt's shared config, which a repo's oxfmt.config.ts is, or spreads: 100 columns, single
|
|
6
|
+
quotes, no semicolons and no trailing commas; the build, the lockfile, the changelogs and the
|
|
7
|
+
generated reference left as they are.
|
|
8
|
+
|
|
9
|
+
The default export is the preset; [oxfmtConfig](functions/oxfmtConfig.md) gives it with options of a repo's own
|
|
10
|
+
over it, as a section of its configuration spread in (`oxfmtSchema` of ./schema).
|
|
11
|
+
|
|
12
|
+
## Type Aliases
|
|
13
|
+
|
|
14
|
+
- [OxfmtOptions](type-aliases/OxfmtOptions.md)
|
|
15
|
+
|
|
16
|
+
## Variables
|
|
17
|
+
|
|
18
|
+
- [default](variables/default.md)
|
|
19
|
+
- [OXFMT\_DEFAULTS](variables/OXFMT_DEFAULTS.md)
|
|
20
|
+
|
|
21
|
+
## Functions
|
|
22
|
+
|
|
23
|
+
- [oxfmtConfig](functions/oxfmtConfig.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-oxfmt](../../README.md) / [config](../README.md) / oxfmtConfig
|
|
2
|
+
|
|
3
|
+
# Function: oxfmtConfig()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
function oxfmtConfig(options?): OxfmtConfig;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-oxfmt/src/config.ts:37](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxfmt/src/config.ts#L37)
|
|
10
|
+
|
|
11
|
+
The preset with `options` over it, each in place of the preset's: `ignorePatterns` given is the
|
|
12
|
+
whole list.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
// oxfmt.config.ts
|
|
16
|
+
import { oxfmtConfig } from '@wtf/project-oxfmt/config'
|
|
17
|
+
import { defineConfig } from 'oxfmt'
|
|
18
|
+
|
|
19
|
+
export default defineConfig(oxfmtConfig({ printWidth: 120 }))
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Parameters
|
|
23
|
+
|
|
24
|
+
| Parameter | Type |
|
|
25
|
+
| ------ | ------ |
|
|
26
|
+
| `options` | `OxfmtConfig` |
|
|
27
|
+
|
|
28
|
+
## Returns
|
|
29
|
+
|
|
30
|
+
`OxfmtConfig`
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-oxfmt](../../README.md) / [config](../README.md) / OxfmtOptions
|
|
2
|
+
|
|
3
|
+
# Type Alias: OxfmtOptions
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
type OxfmtOptions = OxfmtConfig;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-oxfmt/src/config.ts:14](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxfmt/src/config.ts#L14)
|
|
10
|
+
|
|
11
|
+
What [oxfmtConfig](../functions/oxfmtConfig.md) takes: any option of oxfmt's config, each in place of the preset's.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-oxfmt](../../README.md) / [config](../README.md) / OXFMT\_DEFAULTS
|
|
2
|
+
|
|
3
|
+
# Variable: OXFMT\_DEFAULTS
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
const OXFMT_DEFAULTS: object;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-oxfmt/src/config.ts:17](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxfmt/src/config.ts#L17)
|
|
10
|
+
|
|
11
|
+
The preset's own options, which [oxfmtConfig](../functions/oxfmtConfig.md) lays a repo's over.
|
|
12
|
+
|
|
13
|
+
## Type Declaration
|
|
14
|
+
|
|
15
|
+
| Name | Type | Default value | Defined in |
|
|
16
|
+
| ------ | ------ | ------ | ------ |
|
|
17
|
+
| <a id="property-ignorepatterns"></a> `ignorePatterns` | `string`[] | - | [packages/project-oxfmt/src/config.ts:18](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxfmt/src/config.ts#L18) |
|
|
18
|
+
| <a id="property-printwidth"></a> `printWidth` | `number` | `100` | [packages/project-oxfmt/src/config.ts:19](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxfmt/src/config.ts#L19) |
|
|
19
|
+
| <a id="property-semi"></a> `semi` | `false` | `false` | [packages/project-oxfmt/src/config.ts:21](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxfmt/src/config.ts#L21) |
|
|
20
|
+
| <a id="property-singlequote"></a> `singleQuote` | `true` | `true` | [packages/project-oxfmt/src/config.ts:22](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxfmt/src/config.ts#L22) |
|
|
21
|
+
| <a id="property-trailingcomma"></a> `trailingComma` | `"none"` | `'none'` | [packages/project-oxfmt/src/config.ts:20](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxfmt/src/config.ts#L20) |
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-oxfmt](../../README.md) / [config](../README.md) / default
|
|
2
|
+
|
|
3
|
+
# Variable: default
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
default: OxfmtConfig;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-oxfmt/src/config.ts:41](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxfmt/src/config.ts#L41)
|
|
10
|
+
|
|
11
|
+
The preset, with no options of a repo's own: [oxfmtConfig](../functions/oxfmtConfig.md) of none.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[Documentation](../../../README.md) / [@wtf/project-oxfmt](../README.md) / schema
|
|
2
|
+
|
|
3
|
+
# schema
|
|
4
|
+
|
|
5
|
+
The schema of the options of `oxfmtConfig()` of ./config: [oxfmtSchema](variables/oxfmtSchema.md), a Standard
|
|
6
|
+
Schema that checks them and gives their JSON Schema, so a repo can keep them in its
|
|
7
|
+
configuration, as the `oxfmt` section of `wtf.config.json`, check them, and spread them into
|
|
8
|
+
`oxfmtConfig()`. oxfmt imports an oxfmt.config.ts, so the config can await the load, of a code
|
|
9
|
+
config too.
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
// oxfmt.config.ts
|
|
13
|
+
import { loadConfig } from '@wtf/project-config/node'
|
|
14
|
+
import { sectionOf } from '@wtf/project-config/section'
|
|
15
|
+
import { oxfmtConfig } from '@wtf/project-oxfmt/config'
|
|
16
|
+
import { oxfmtSchema } from '@wtf/project-oxfmt/schema'
|
|
17
|
+
import { defineConfig } from 'oxfmt'
|
|
18
|
+
|
|
19
|
+
const config = await loadConfig()
|
|
20
|
+
export default defineConfig(oxfmtConfig({ ...(await sectionOf(config, 'oxfmt', oxfmtSchema)) }))
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Variables
|
|
24
|
+
|
|
25
|
+
- [oxfmtSchema](variables/oxfmtSchema.md)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-oxfmt](../../README.md) / [schema](../README.md) / oxfmtSchema
|
|
2
|
+
|
|
3
|
+
# Variable: oxfmtSchema
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
const oxfmtSchema: StandardSchemaV1<OxfmtOptions> & StandardJSONSchemaV1<OxfmtOptions>;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-oxfmt/src/schema.ts:49](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxfmt/src/schema.ts#L49)
|
|
10
|
+
|
|
11
|
+
The schema of the options of `oxfmtConfig()` of ./config: oxfmt's config, of the options the
|
|
12
|
+
preset sets checked, `ignorePatterns`, `printWidth`, `trailingComma`, `semi` and `singleQuote`,
|
|
13
|
+
and any other option of oxfmt.
|
|
@@ -7,9 +7,10 @@ suspicious and perf rules as warnings, and `import/no-cycle`, `eqeqeq` and
|
|
|
7
7
|
`typescript/no-explicit-any` as errors. It leaves the build and a generated reference in
|
|
8
8
|
`packages/docs/api` alone. oxlint is a peer dependency.
|
|
9
9
|
|
|
10
|
-
| Subpath | What you get
|
|
11
|
-
| ---------- |
|
|
12
|
-
| `./config` | The config, as the default export |
|
|
10
|
+
| Subpath | What you get |
|
|
11
|
+
| ---------- | ------------------------------------------------------------------------------------------------------- |
|
|
12
|
+
| `./config` | The config, as the default export; `oxlintConfig(options)`, the config with options of your own over it |
|
|
13
|
+
| `./schema` | `oxlintSchema`: the Standard Schema of the options of `oxlintConfig()`, which gives their JSON Schema |
|
|
13
14
|
|
|
14
15
|
```ts
|
|
15
16
|
// oxlint.config.ts
|
|
@@ -19,13 +20,39 @@ import { defineConfig } from 'oxlint'
|
|
|
19
20
|
export default defineConfig({ extends: [preset] })
|
|
20
21
|
```
|
|
21
22
|
|
|
23
|
+
`oxlintConfig(options)` gives the config with your options over it: `categories`, `rules` and
|
|
24
|
+
`env` key by key over the preset's, and any other option, as `plugins` or `ignorePatterns`, in
|
|
25
|
+
place of the preset's.
|
|
26
|
+
|
|
22
27
|
Run it as `oxlint --deny-warnings`, so a warning fails the lint just as an error does. See the
|
|
23
28
|
[presets guide](../../../guides/presets.md).
|
|
24
29
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
## From the wtf configuration
|
|
31
|
+
|
|
32
|
+
The config reads no file of its own. Keep its options in the `oxlint` section of the repo's `wtf`
|
|
33
|
+
configuration, load it with [`@wtf/project-config`](../project-config/README.md), and spread the
|
|
34
|
+
section in, checked by `oxlintSchema`. oxlint imports `oxlint.config.ts`, so the config may await
|
|
35
|
+
the load, and a `wtf.config.ts` is read too:
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
// oxlint.config.ts
|
|
39
|
+
import { loadConfig } from '@wtf/project-config/node'
|
|
40
|
+
import { sectionOf } from '@wtf/project-config/section'
|
|
41
|
+
import { oxlintConfig } from '@wtf/project-oxlint/config'
|
|
42
|
+
import { oxlintSchema } from '@wtf/project-oxlint/schema'
|
|
43
|
+
import { defineConfig } from 'oxlint'
|
|
44
|
+
|
|
45
|
+
const config = await loadConfig()
|
|
46
|
+
export default defineConfig({
|
|
47
|
+
extends: [oxlintConfig({ ...(await sectionOf(config, 'oxlint', oxlintSchema)) })]
|
|
48
|
+
})
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
```json
|
|
52
|
+
{ "oxlint": { "rules": { "no-console": "error" }, "ignorePatterns": ["**/dist/**", "site/**"] } }
|
|
53
|
+
```
|
|
28
54
|
|
|
29
|
-
##
|
|
55
|
+
## Modules
|
|
30
56
|
|
|
31
|
-
- [
|
|
57
|
+
- [config](config/README.md)
|
|
58
|
+
- [schema](schema/README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[Documentation](../../../README.md) / [@wtf/project-oxlint](../README.md) / config
|
|
2
|
+
|
|
3
|
+
# config
|
|
4
|
+
|
|
5
|
+
oxlint's shared config, which a repo's oxlint.config.ts extends: the typescript, unicorn and
|
|
6
|
+
import plugins, correctness as errors, suspicious and perf as warnings, and `import/no-cycle`,
|
|
7
|
+
`eqeqeq` and `typescript/no-explicit-any` as errors. Run it with `--deny-warnings`.
|
|
8
|
+
|
|
9
|
+
The default export is the preset; [oxlintConfig](functions/oxlintConfig.md) gives it with options of a repo's own
|
|
10
|
+
over it, as a section of its configuration spread in (`oxlintSchema` of ./schema).
|
|
11
|
+
|
|
12
|
+
## Type Aliases
|
|
13
|
+
|
|
14
|
+
- [OxlintOptions](type-aliases/OxlintOptions.md)
|
|
15
|
+
|
|
16
|
+
## Variables
|
|
17
|
+
|
|
18
|
+
- [default](variables/default.md)
|
|
19
|
+
- [OXLINT\_DEFAULTS](variables/OXLINT_DEFAULTS.md)
|
|
20
|
+
|
|
21
|
+
## Functions
|
|
22
|
+
|
|
23
|
+
- [oxlintConfig](functions/oxlintConfig.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-oxlint](../../README.md) / [config](../README.md) / oxlintConfig
|
|
2
|
+
|
|
3
|
+
# Function: oxlintConfig()
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
function oxlintConfig(options?): OxlintConfig;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-oxlint/src/config.ts:52](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L52)
|
|
10
|
+
|
|
11
|
+
The preset with `options` over it: `categories`, `rules` and `env` key by key over the preset's,
|
|
12
|
+
so a rule given is set and every other kept; and each other option in place of the preset's.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
// oxlint.config.ts
|
|
16
|
+
import { oxlintConfig } from '@wtf/project-oxlint/config'
|
|
17
|
+
import { defineConfig } from 'oxlint'
|
|
18
|
+
|
|
19
|
+
export default defineConfig({ extends: [oxlintConfig({ rules: { 'no-console': 'error' } })] })
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Parameters
|
|
23
|
+
|
|
24
|
+
| Parameter | Type |
|
|
25
|
+
| ------ | ------ |
|
|
26
|
+
| `options` | `OxlintConfig` |
|
|
27
|
+
|
|
28
|
+
## Returns
|
|
29
|
+
|
|
30
|
+
`OxlintConfig`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-oxlint](../../README.md) / [config](../README.md) / OxlintOptions
|
|
2
|
+
|
|
3
|
+
# Type Alias: OxlintOptions
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
type OxlintOptions = OxlintConfig;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-oxlint/src/config.ts:18](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L18)
|
|
10
|
+
|
|
11
|
+
What [oxlintConfig](../functions/oxlintConfig.md) takes: any option of oxlint's config. `categories`, `rules` and `env`
|
|
12
|
+
are laid over the preset's, key by key; each other option, as `plugins` or `ignorePatterns`,
|
|
13
|
+
replaces the preset's.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-oxlint](../../README.md) / [config](../README.md) / OXLINT\_DEFAULTS
|
|
2
|
+
|
|
3
|
+
# Variable: OXLINT\_DEFAULTS
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
const OXLINT_DEFAULTS: object;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-oxlint/src/config.ts:21](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L21)
|
|
10
|
+
|
|
11
|
+
The preset's own options, which [oxlintConfig](../functions/oxlintConfig.md) lays a repo's over.
|
|
12
|
+
|
|
13
|
+
## Type Declaration
|
|
14
|
+
|
|
15
|
+
| Name | Type | Default value | Defined in |
|
|
16
|
+
| ------ | ------ | ------ | ------ |
|
|
17
|
+
| <a id="property-categories"></a> `categories` | `object` | - | [packages/project-oxlint/src/config.ts:23](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L23) |
|
|
18
|
+
| `categories.correctness` | `"error"` | `'error'` | [packages/project-oxlint/src/config.ts:24](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L24) |
|
|
19
|
+
| `categories.pedantic` | `"off"` | `'off'` | [packages/project-oxlint/src/config.ts:26](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L26) |
|
|
20
|
+
| `categories.perf` | `"warn"` | `'warn'` | [packages/project-oxlint/src/config.ts:27](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L27) |
|
|
21
|
+
| `categories.style` | `"off"` | `'off'` | [packages/project-oxlint/src/config.ts:28](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L28) |
|
|
22
|
+
| `categories.suspicious` | `"warn"` | `'warn'` | [packages/project-oxlint/src/config.ts:25](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L25) |
|
|
23
|
+
| <a id="property-env"></a> `env` | `object` | - | [packages/project-oxlint/src/config.ts:36](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L36) |
|
|
24
|
+
| `env.es2025` | `true` | `true` | [packages/project-oxlint/src/config.ts:36](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L36) |
|
|
25
|
+
| `env.node` | `true` | `true` | [packages/project-oxlint/src/config.ts:36](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L36) |
|
|
26
|
+
| <a id="property-ignorepatterns"></a> `ignorePatterns` | `string`[] | - | [packages/project-oxlint/src/config.ts:37](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L37) |
|
|
27
|
+
| <a id="property-plugins"></a> `plugins` | (`"unicorn"` \| `"typescript"` \| `"import"`)[] | - | [packages/project-oxlint/src/config.ts:22](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L22) |
|
|
28
|
+
| <a id="property-rules"></a> `rules` | `object` | - | [packages/project-oxlint/src/config.ts:30](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L30) |
|
|
29
|
+
| `rules.eqeqeq` | `"error"` | `'error'` | [packages/project-oxlint/src/config.ts:32](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L32) |
|
|
30
|
+
| `rules.import/no-cycle` | `"error"` | `'error'` | [packages/project-oxlint/src/config.ts:31](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L31) |
|
|
31
|
+
| `rules.typescript/no-explicit-any` | `"error"` | `'error'` | [packages/project-oxlint/src/config.ts:33](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L33) |
|
|
32
|
+
| `rules.typescript/no-unused-vars` | \[`"error"`, \{ `argsIgnorePattern`: `"^_"`; `varsIgnorePattern`: `"^_"`; \}\] | - | [packages/project-oxlint/src/config.ts:34](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L34) |
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-oxlint](../../README.md) / [config](../README.md) / default
|
|
2
|
+
|
|
3
|
+
# Variable: default
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
default: OxlintConfig;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-oxlint/src/config.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/config.ts#L64)
|
|
10
|
+
|
|
11
|
+
The preset, with no options of a repo's own: [oxlintConfig](../functions/oxlintConfig.md) of none.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[Documentation](../../../README.md) / [@wtf/project-oxlint](../README.md) / schema
|
|
2
|
+
|
|
3
|
+
# schema
|
|
4
|
+
|
|
5
|
+
The schema of the options of `oxlintConfig()` of ./config: [oxlintSchema](variables/oxlintSchema.md), a Standard
|
|
6
|
+
Schema that checks them and gives their JSON Schema, so a repo can keep them in its
|
|
7
|
+
configuration, as the `oxlint` section of `wtf.config.json`, check them, and spread them into
|
|
8
|
+
`oxlintConfig()`. oxlint imports an oxlint.config.ts, so the config can await the load, of a code
|
|
9
|
+
config too.
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
// oxlint.config.ts
|
|
13
|
+
import { loadConfig } from '@wtf/project-config/node'
|
|
14
|
+
import { sectionOf } from '@wtf/project-config/section'
|
|
15
|
+
import { oxlintConfig } from '@wtf/project-oxlint/config'
|
|
16
|
+
import { oxlintSchema } from '@wtf/project-oxlint/schema'
|
|
17
|
+
import { defineConfig } from 'oxlint'
|
|
18
|
+
|
|
19
|
+
const config = await loadConfig()
|
|
20
|
+
export default defineConfig({
|
|
21
|
+
extends: [oxlintConfig({ ...(await sectionOf(config, 'oxlint', oxlintSchema)) })]
|
|
22
|
+
})
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Variables
|
|
26
|
+
|
|
27
|
+
- [oxlintSchema](variables/oxlintSchema.md)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
[Documentation](../../../../README.md) / [@wtf/project-oxlint](../../README.md) / [schema](../README.md) / oxlintSchema
|
|
2
|
+
|
|
3
|
+
# Variable: oxlintSchema
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
const oxlintSchema: StandardSchemaV1<OxlintOptions> & StandardJSONSchemaV1<OxlintOptions>;
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/project-oxlint/src/schema.ts:72](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-oxlint/src/schema.ts#L72)
|
|
10
|
+
|
|
11
|
+
The schema of the options of `oxlintConfig()` of ./config: oxlint's config, of its `plugins`,
|
|
12
|
+
`categories`, `rules`, `env` and `ignorePatterns` checked, and any other option of oxlint.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
const SOURCE_CONDITION: "@wtf/source" = '@wtf/source';
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/condition.ts:21](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-resolve/src/condition.ts:21](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/condition.ts#L21)
|
|
10
10
|
|
|
11
11
|
The export condition of a package's TypeScript source, `@wtf/source`: in an export map, the
|
|
12
12
|
entry before `types` and `default`, as `"@wtf/source": "./src/index.ts"`. A workspace resolves a
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
function isHook(specifier): boolean;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/env.ts:34](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-resolve/src/env.ts:34](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/env.ts#L34)
|
|
10
10
|
|
|
11
11
|
Whether `specifier`, as `--import` takes it, is the module of the resolve hook.
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
function optionsWithoutHook(options): string;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/env.ts:40](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-resolve/src/env.ts:40](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/env.ts#L40)
|
|
10
10
|
|
|
11
11
|
`NODE_OPTIONS` with no resolve hook: each `--import` of it, as `--import=<hook>` or
|
|
12
12
|
`--import <hook>`, taken out, and each other option kept, in order.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
function withoutHook(env): Readonly<Record<string, string | undefined>> & object;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/env.ts:60](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-resolve/src/env.ts:60](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/env.ts#L60)
|
|
10
10
|
|
|
11
11
|
`env`, an environment as a process has it, with no resolve hook in `NODE_OPTIONS`, and every
|
|
12
12
|
other variable and option as it is. `NODE_OPTIONS` is a string, empty when nothing is left, so it
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
type Env = Readonly<Record<string, string | undefined>>;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/env.ts:24](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-resolve/src/env.ts:24](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/env.ts#L24)
|
|
10
10
|
|
|
11
11
|
An environment, as Node's `process.env` is, and as a spawn takes it.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: ResolveError
|
|
4
4
|
|
|
5
|
-
Defined in: [packages/project-resolve/src/errors.ts:13](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
5
|
+
Defined in: [packages/project-resolve/src/errors.ts:13](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/errors.ts#L13)
|
|
6
6
|
|
|
7
7
|
What this package throws: an Error with a stable SCREAMING_SNAKE `code`, and the `exitCode` a
|
|
8
8
|
command that fails by it exits with, 1.
|
|
@@ -28,7 +28,7 @@ new ResolveError(
|
|
|
28
28
|
): ResolveError;
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
Defined in: [packages/project-resolve/src/errors.ts:18](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
31
|
+
Defined in: [packages/project-resolve/src/errors.ts:18](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/errors.ts#L18)
|
|
32
32
|
|
|
33
33
|
#### Parameters
|
|
34
34
|
|
|
@@ -53,8 +53,8 @@ Error.constructor
|
|
|
53
53
|
| Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
|
|
54
54
|
| ------ | ------ | ------ | ------ | ------ | ------ | ------ |
|
|
55
55
|
| <a id="property-cause"></a> `cause?` | `public` | `unknown` | `undefined` | - | `Error.cause` | - |
|
|
56
|
-
| <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | - | [packages/project-resolve/src/errors.ts:14](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
57
|
-
| <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | - | [packages/project-resolve/src/errors.ts:16](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
56
|
+
| <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | - | [packages/project-resolve/src/errors.ts:14](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/errors.ts#L14) |
|
|
57
|
+
| <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | - | [packages/project-resolve/src/errors.ts:16](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/errors.ts#L16) |
|
|
58
58
|
| <a id="property-message"></a> `message` | `public` | `string` | `undefined` | - | `Error.message` | - |
|
|
59
59
|
| <a id="property-name"></a> `name` | `public` | `string` | `undefined` | - | `Error.name` | - |
|
|
60
60
|
| <a id="property-stack"></a> `stack?` | `public` | `string` | `undefined` | - | `Error.stack` | - |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: UnreadableWorkspaceError
|
|
4
4
|
|
|
5
|
-
Defined in: [packages/project-resolve/src/errors.ts:56](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
5
|
+
Defined in: [packages/project-resolve/src/errors.ts:56](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/errors.ts#L56)
|
|
6
6
|
|
|
7
7
|
The file that defines a workspace, its pnpm-workspace.yaml, which is there and cannot be read: a
|
|
8
8
|
folder of that name, a file the process may not read, or a link that loops. It is no workspace
|
|
@@ -20,7 +20,7 @@ that is not there, which the package manager would read as none: it refuses it,
|
|
|
20
20
|
new UnreadableWorkspaceError(file, error): UnreadableWorkspaceError;
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Defined in: [packages/project-resolve/src/errors.ts:66](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
23
|
+
Defined in: [packages/project-resolve/src/errors.ts:66](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/errors.ts#L66)
|
|
24
24
|
|
|
25
25
|
#### Parameters
|
|
26
26
|
|
|
@@ -42,12 +42,12 @@ Defined in: [packages/project-resolve/src/errors.ts:66](https://gitlab.com/wetry
|
|
|
42
42
|
| Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
|
|
43
43
|
| ------ | ------ | ------ | ------ | ------ | ------ | ------ |
|
|
44
44
|
| <a id="property-cause"></a> `cause?` | `public` | `unknown` | `undefined` | - | [`ResolveError`](ResolveError.md).[`cause`](ResolveError.md#property-cause) | - |
|
|
45
|
-
| <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | [`ResolveError`](ResolveError.md).[`code`](ResolveError.md#property-code) | [packages/project-resolve/src/errors.ts:14](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
46
|
-
| <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | [`ResolveError`](ResolveError.md).[`exitCode`](ResolveError.md#property-exitcode) | [packages/project-resolve/src/errors.ts:16](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
47
|
-
| <a id="property-file"></a> `file` | `readonly` | `string` | `undefined` | The file that cannot be read: a pnpm-workspace.yaml. | - | [packages/project-resolve/src/errors.ts:58](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
45
|
+
| <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | [`ResolveError`](ResolveError.md).[`code`](ResolveError.md#property-code) | [packages/project-resolve/src/errors.ts:14](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/errors.ts#L14) |
|
|
46
|
+
| <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | [`ResolveError`](ResolveError.md).[`exitCode`](ResolveError.md#property-exitcode) | [packages/project-resolve/src/errors.ts:16](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/errors.ts#L16) |
|
|
47
|
+
| <a id="property-file"></a> `file` | `readonly` | `string` | `undefined` | The file that cannot be read: a pnpm-workspace.yaml. | - | [packages/project-resolve/src/errors.ts:58](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/errors.ts#L58) |
|
|
48
48
|
| <a id="property-message"></a> `message` | `public` | `string` | `undefined` | - | [`ResolveError`](ResolveError.md).[`message`](ResolveError.md#property-message) | - |
|
|
49
49
|
| <a id="property-name"></a> `name` | `public` | `string` | `undefined` | - | [`ResolveError`](ResolveError.md).[`name`](ResolveError.md#property-name) | - |
|
|
50
|
-
| <a id="property-reason"></a> `reason` | `readonly` | `string` \| `undefined` | `undefined` | What the file system said of it: the code of Node's error, `EISDIR`, `EACCES` or `ELOOP`, or the name of a handle's `DOMException`, as `TypeMismatchError` of a folder; `undefined` of an error of neither. | - | [packages/project-resolve/src/errors.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
50
|
+
| <a id="property-reason"></a> `reason` | `readonly` | `string` \| `undefined` | `undefined` | What the file system said of it: the code of Node's error, `EISDIR`, `EACCES` or `ELOOP`, or the name of a handle's `DOMException`, as `TypeMismatchError` of a folder; `undefined` of an error of neither. | - | [packages/project-resolve/src/errors.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/errors.ts#L64) |
|
|
51
51
|
| <a id="property-stack"></a> `stack?` | `public` | `string` | `undefined` | - | [`ResolveError`](ResolveError.md).[`stack`](ResolveError.md#property-stack) | - |
|
|
52
52
|
| <a id="property-stacktracelimit"></a> `stackTraceLimit` | `static` | `number` | `undefined` | The `Error.stackTraceLimit` property specifies the number of stack frames collected by a stack trace (whether generated by `new Error().stack` or `Error.captureStackTrace(obj)`). The default value is `10` but may be set to any valid JavaScript number. Changes will affect any stack trace captured _after_ the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | [`ResolveError`](ResolveError.md).[`stackTraceLimit`](ResolveError.md#property-stacktracelimit) | - |
|
|
53
53
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: WorkspaceError
|
|
4
4
|
|
|
5
|
-
Defined in: [packages/project-resolve/src/errors.ts:30](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
5
|
+
Defined in: [packages/project-resolve/src/errors.ts:30](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/errors.ts#L30)
|
|
6
6
|
|
|
7
7
|
A workspace that a file of it says wrong: a package.json that is no JSON object, `workspaces`
|
|
8
8
|
or the `packages` of a pnpm-workspace.yaml that is no list of patterns, or two packages of one
|
|
@@ -24,7 +24,7 @@ new WorkspaceError(
|
|
|
24
24
|
): WorkspaceError;
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
Defined in: [packages/project-resolve/src/errors.ts:34](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
27
|
+
Defined in: [packages/project-resolve/src/errors.ts:34](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/errors.ts#L34)
|
|
28
28
|
|
|
29
29
|
#### Parameters
|
|
30
30
|
|
|
@@ -47,9 +47,9 @@ Defined in: [packages/project-resolve/src/errors.ts:34](https://gitlab.com/wetry
|
|
|
47
47
|
| Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
|
|
48
48
|
| ------ | ------ | ------ | ------ | ------ | ------ | ------ |
|
|
49
49
|
| <a id="property-cause"></a> `cause?` | `public` | `unknown` | `undefined` | - | [`ResolveError`](ResolveError.md).[`cause`](ResolveError.md#property-cause) | - |
|
|
50
|
-
| <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | [`ResolveError`](ResolveError.md).[`code`](ResolveError.md#property-code) | [packages/project-resolve/src/errors.ts:14](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
51
|
-
| <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | [`ResolveError`](ResolveError.md).[`exitCode`](ResolveError.md#property-exitcode) | [packages/project-resolve/src/errors.ts:16](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
52
|
-
| <a id="property-file"></a> `file` | `readonly` | `string` | `undefined` | The file that says it: a package.json, or a pnpm-workspace.yaml. | - | [packages/project-resolve/src/errors.ts:32](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
50
|
+
| <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | [`ResolveError`](ResolveError.md).[`code`](ResolveError.md#property-code) | [packages/project-resolve/src/errors.ts:14](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/errors.ts#L14) |
|
|
51
|
+
| <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | [`ResolveError`](ResolveError.md).[`exitCode`](ResolveError.md#property-exitcode) | [packages/project-resolve/src/errors.ts:16](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/errors.ts#L16) |
|
|
52
|
+
| <a id="property-file"></a> `file` | `readonly` | `string` | `undefined` | The file that says it: a package.json, or a pnpm-workspace.yaml. | - | [packages/project-resolve/src/errors.ts:32](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/errors.ts#L32) |
|
|
53
53
|
| <a id="property-message"></a> `message` | `public` | `string` | `undefined` | - | [`ResolveError`](ResolveError.md).[`message`](ResolveError.md#property-message) | - |
|
|
54
54
|
| <a id="property-name"></a> `name` | `public` | `string` | `undefined` | - | [`ResolveError`](ResolveError.md).[`name`](ResolveError.md#property-name) | - |
|
|
55
55
|
| <a id="property-stack"></a> `stack?` | `public` | `string` | `undefined` | - | [`ResolveError`](ResolveError.md).[`stack`](ResolveError.md#property-stack) | - |
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
function candidatesOf(specifier): string[];
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/hooks.ts:132](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-resolve/src/hooks.ts:132](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/hooks.ts#L132)
|
|
10
10
|
|
|
11
11
|
The modules of TypeScript a relative specifier names, in the order TypeScript looks for them:
|
|
12
12
|
the `.ts` of the `.js`, or, of a specifier with no extension of JavaScript, its `.ts` and then
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
function sourcesHookOf(packages, realpath): ResolveHookSync;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/hooks.ts:86](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-resolve/src/hooks.ts:86](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/hooks.ts#L86)
|
|
10
10
|
|
|
11
11
|
The hook of the packages given, each a package of the workspace: an import of one of them, or of
|
|
12
12
|
one of its subpaths, resolves by its `@wtf/source` condition first. A package of the registry is
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
function sourcesOf(packages): ReadonlyMap<string, string>;
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/project-resolve/src/hooks.ts:29](https://gitlab.com/wetryfun/project/project/-/blob/docs-
|
|
9
|
+
Defined in: [packages/project-resolve/src/hooks.ts:29](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.0.0/packages/project-resolve/src/hooks.ts#L29)
|
|
10
10
|
|
|
11
11
|
The TypeScript of each package of the workspace, and of each subpath it exports, by its
|
|
12
12
|
`@wtf/source` condition, keyed by the specifier that imports it: `@scope/lib`, `@scope/lib/sub`.
|