Deno Config (deno.json)
A JSON representation of a Deno configuration file
| Type | object |
|---|---|
| File match |
deno.json
deno.jsonc
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/deno-config-deno-json/latest.json |
| Source | https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json |
Validate with Lintel
npx @lintel/lintel check
A JSON representation of a Deno configuration file.
Properties
Configuration for deno compile.
3 nested properties
List of additional modules or files/directories to include in the compiled executable.
List of files/directories to exclude from the compiled executable.
A permission set name to use or inline permission set.
Instructs the TypeScript compiler how to compile .ts files.
41 nested properties
Allow JavaScript files to be a part of your program. Use the checkJS option to get errors from these files.
See more: https://www.typescriptlang.org/tsconfig#allowJs
Disable error reporting for unreachable code.
See more: https://www.typescriptlang.org/tsconfig#allowUnreachableCode
Disable error reporting for unused labels.
See more: https://www.typescriptlang.org/tsconfig#allowUnusedLabels
Enable error reporting in type-checked JavaScript files.
See more: https://www.typescriptlang.org/tsconfig#checkJs
Emit design-type metadata for decorated declarations in source files.
See more: https://www.typescriptlang.org/tsconfig/#emitDecoratorMetadata
Do not allow runtime constructs that are not part of ECMAScript.
See more: https://www.typescriptlang.org/tsconfig#erasableSyntaxOnly
Interpret optional property types as written, rather than adding 'undefined'.
See more: https://www.typescriptlang.org/tsconfig#exactOptionalPropertyTypes
Enable experimental support for legacy experimental decorators.
See more: https://www.typescriptlang.org/tsconfig#experimentalDecorators
Require sufficient annotation on exports so other tools can trivially generate declaration files.
See more: https://www.typescriptlang.org/tsconfig/#isolatedDeclarations
Specify what JSX code is generated.
Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'
See more: https://www.typescriptlang.org/tsconfig#jsxFactory
Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'.
See more: https://www.typescriptlang.org/tsconfig#jsxFragmentFactory
Specify module specifier used to import the JSX factory functions when using jsx: react-jsx*.
See more: https://www.typescriptlang.org/tsconfig/#jsxImportSource
Specify module specifier used to import the types for the JSX factory functions when using jsx: react-jsx*. This is the logical equivalent of prefixing an import to the jsxImportSource with // @deno-types="...".
Specify list of elements that should be exempt from being precompiled when the jsx precompile transform is used.
Specify a set of bundled library declaration files that describe the target runtime environment.
See more: https://www.typescriptlang.org/tsconfig#lib
[
"deno.window",
"deno.unstable",
"node"
]
Specify what module code is generated.
See more: https://www.typescriptlang.org/tsconfig#module
Specify how TypeScript looks up a file from a given module specifier.
See more: https://www.typescriptlang.org/tsconfig#moduleResolution
Do not truncate error messages.
See more: https://www.typescriptlang.org/tsconfig#noErrorTruncation
Enable error reporting for fallthrough cases in switch statements.
See more: https://www.typescriptlang.org/tsconfig#noFallthroughCasesInSwitch
Enable error reporting for expressions and declarations with an implied any type.
See more: https://www.typescriptlang.org/tsconfig#noImplicitAny
Ensure overriding members in derived classes are marked with an override modifier.
See more: https://www.typescriptlang.org/tsconfig#noImplicitOverride
Enable error reporting for codepaths that do not explicitly return in a function.
See more: https://www.typescriptlang.org/tsconfig#noImplicitReturns
Enable error reporting when this is given the type any.
See more: https://www.typescriptlang.org/tsconfig#noImplicitThis
Enforces using indexed accessors for keys declared using an indexed type.
See more: https://www.typescriptlang.org/tsconfig#noPropertyAccessFromIndexSignature
Add undefined to a type when accessed using an index.
See more: https://www.typescriptlang.org/tsconfig#noUncheckedIndexedAccess
Enable error reporting when a local variables aren't read.
See more: https://www.typescriptlang.org/tsconfig#noUnusedLocals
Raise an error when a function parameter isn't read
See more: https://www.typescriptlang.org/tsconfig#noUnusedParameters
Specify the base directory to resolve non-relative module names.
In Deno, this is only applied to bare specifier entries in compilerOptions.paths and compilerOptions.rootDirs.
See more: https://www.typescriptlang.org/tsconfig#baseUrl
Specify a set of entries that re-map imports to additional lookup locations.
See more: https://www.typescriptlang.org/tsconfig#paths
Declare many “virtual” directories acting as a single root.
See more: https://www.typescriptlang.org/tsconfig#rootDirs
Skip type checking all .d.ts files.
See more: https://www.typescriptlang.org/tsconfig#skipLibCheck
Enable all strict type checking options.
See more: https://www.typescriptlang.org/tsconfig#strict
Check that the arguments for bind, call, and apply methods match the original function.
See more: https://www.typescriptlang.org/tsconfig#strictBindCallApply
Built-in iterators are instantiated with a TReturn type of undefined instead of any.
See more: https://www.typescriptlang.org/tsconfig/#strictBuiltinIteratorReturn
When assigning functions, check to ensure parameters and the return values are subtype-compatible.
See more: https://www.typescriptlang.org/tsconfig#strictFunctionTypes
When type checking, take into account null and undefined.
See more: https://www.typescriptlang.org/tsconfig#strictNullChecks
Check for class properties that are declared but not set in the constructor.
See more: https://www.typescriptlang.org/tsconfig#strictPropertyInitialization
Specify type package names to be included without being referenced in a source file.
See more: https://www.typescriptlang.org/tsconfig/#types
Default catch clause variables as unknown instead of any.
See more: https://www.typescriptlang.org/tsconfig#useUnknownInCatchVariables
Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting.
See more: https://www.typescriptlang.org/tsconfig/#verbatimModuleSyntax
Configuration for deno deploy and deno sandbox.
9 nested properties
The organization slug or ID to interact with.
The application slug or ID to interact with.
The framework this application is built with, such as nextjs or fresh. Part of the build configuration. When specified, takes precedence over all configuration specified in the console.
The command to install dependencies. Part of the build configuration. When specified, takes precedence over all configuration specified in the console.
The command to build the application. Part of the build configuration. When specified, takes precedence over all configuration specified in the console.
The command to run before deploying, usually used to run database migrations. When specified, takes precedence over all configuration specified in the console.
Runtime configuration for the deployed application. When specified, takes precedence over all configuration specified in the console.
5 nested properties
The runtime mode. Use 'dynamic' for server-rendered applications or 'static' for pre-built static files.
The entrypoint file for dynamic mode (e.g., 'main.ts').
Arguments to pass to the entrypoint for dynamic mode.
The working directory. For dynamic mode, this is the current working directory. For static mode, this is the directory containing static files to serve.
Enable single-page application mode for static deployments. When enabled, all routes will fall back to index.html.
List of files, directories or globs that will be included in deployments.
List of files, directories or globs that will not be included in deployments.
The location of an import map to be used when resolving modules. If an import map is specified as an --importmap flag or using "imports" and "scopes" properties, they will override this value.
A map of specifiers to their remapped specifiers.
Define a scope which remaps a specifier in only a specified scope
{}
List of files, directories or globs that will be ignored by all other configurations. Requires Deno 1.34 or later.
Configuration for linter
5 nested properties
List of files, directories or globs that will be linted.
List of files, directories or globs that will not be linted.
UNSTABLE: List of plugins to load. These can be paths, npm or jsr specifiers
3 nested properties
List of tag names that will be run. Empty list disables all tags and will only use rules from include.
List of rule names that will be excluded from configured tag sets. If the same rule is in include it will be run.
List of rule names that will be run. Even if the same rule is in exclude it will be run.
The default report format to use when linting
Configuration for formatter
25 nested properties
List of files, directories or globs that will be formatted.
List of files, directories or globs that will not be formatted.
Whether to use tabs (true) or spaces (false) for indentation.
The width of a line the printer will try to stay under. Note that the printer may exceed this width in certain cases.
The number of characters for an indent.
Whether to use single quote (true) or double quote (false) for quotation.
Define how prose should be wrapped in Markdown files.
Whether to prefer using semicolons.
Change when properties in objects are quoted in JavaScript and TypeScript.
The newline character to use.
Whether to use braces for if statements, for statements, and while statements in JavaScript and TypeScript.
The position of opening braces for blocks in JavaScript and TypeScript.
The position of the body in single body blocks in JavaScript and TypeScript.
Where to place the next control flow within a control flow statement in JavaScript and TypeScript.
Whether to add trailing commas in JavaScript and TypeScript.
Where to place the operator for expressions that span multiple lines in JavaScript and TypeScript.
If the end angle bracket of a jsx open element or self closing element should be on the same or next line when the attributes span multiple lines.
Forces newlines surrounding the content of JSX elements.
Surrounds the top-most JSX element or fragment in parentheses when it spans multiple lines.
The kind of separator to use in type literals.
Whether to place spaces around enclosed expressions in JavaScript and TypeScript.
Whether to add a space surrounding the properties of single line object-like nodes in JavaScript and TypeScript.
Case style for Vue component tags.
Whether Angular next control-flow clauses stay on the same line.
6 nested properties
Whether to use tabs (true) or spaces (false) for indentation.
The width of a line the printer will try to stay under. Note that the printer may exceed this width in certain cases.
The number of characters for an indent.
Whether to use single quote (true) or double quote (false) for quotation.
Define how prose should be wrapped in Markdown files.
Whether to prefer using semicolons.
Enables or disables the use of a local vendor folder as a local cache for remote modules and node_modules folder for npm packages. Alternatively, use the --vendor flag or override the config via --vendor=false. Requires Deno 1.36.1 or later.
Configuration for deno task
Configuration for deno test
3 nested properties
List of files, directories or globs that will be searched for tests.
List of files, directories or globs that will not be searched for tests.
A permission set name to use or inline permission set.
Configuration for deno bench
3 nested properties
List of files, directories or globs that will be searched for benchmarks.
List of files, directories or globs that will not be searched for benchmarks.
A permission set name to use or inline permission set.
The SPDX license identifier if this is a JSR package. Specify this or add a license file to the package.
Whether to use a lock file or the path to use for the lock file. Can be overridden by CLI arguments.
2 nested properties
The path to use for the lock file.
Whether to exit with an error if lock file is out of date.
List of unstable features to enable.
The name of this JSR or workspace package.
The version of this JSR package.
Named permission sets that can be selected with -P/--permission-set or referenced in "test", "bench", or "compile" permissions. A special name "default" is used when -P is passed without a value.
This unstable property was renamed to "links" in Deno 2.3.6.
UNSTABLE: List of relative paths to folders containing JSR packages to use local versions of.
Definitions
Object form to allow, deny, and/or ignore permissions.
Object form to allow and/or deny permissions.
List of npm package constraints to allow or deny for lifecycle scripts.
Collection of permissions.
Allow all permissions for the program to run unrestricted.
A permission set name to use or inline permission set.