Skip to content

Commit 9068f24

Browse files
committed
Configure TypeScript support for IDE
1 parent 72e6bae commit 9068f24

File tree

2 files changed

+89
-0
lines changed

2 files changed

+89
-0
lines changed

.idea/compiler.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/tsconfig.json

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"compilerOptions": {
3+
/* Language and Environment */
4+
// Set the JavaScript language version for emitted JavaScript and include compatible library declarations.
5+
"target": "ES2022",
6+
// Specify a set of bundled library declaration files that describe the target runtime environment.
7+
// "lib": [],
8+
/* Modules */
9+
// Specify what module code is generated.
10+
"module": "ES2022",
11+
// Specify the root folder within your source files.
12+
// "rootDir": "./assets/js",
13+
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
14+
15+
/* JavaScript Support */
16+
// Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files.
17+
"allowJs": false,
18+
/* Emit */
19+
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
20+
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
21+
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
22+
"sourceMap": true,
23+
/* Create source map files for emitted JavaScript files. */
24+
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
25+
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
26+
// "outDir": "./", /* Specify an output folder for all emitted files. */
27+
// "removeComments": true, /* Disable emitting comments. */
28+
// "noEmit": true, /* Disable emitting files from a compilation. */
29+
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
30+
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
31+
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
32+
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
33+
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
34+
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
35+
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
36+
// "newLine": "crlf", /* Set the newline character for emitting files. */
37+
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
38+
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
39+
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
40+
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
41+
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
42+
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
43+
44+
/* Interop Constraints */
45+
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
46+
// "verbatimModuleSyntax": true, /* 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. */
47+
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
48+
// "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
49+
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
50+
"forceConsistentCasingInFileNames": true,
51+
/* Ensure that casing is correct in imports. */
52+
53+
/* Type Checking */
54+
"strict": true,
55+
/* Enable all strict type-checking options. */
56+
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
57+
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
58+
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
59+
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
60+
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
61+
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
62+
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
63+
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
64+
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
65+
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
66+
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
67+
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
68+
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
69+
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
70+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
71+
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
72+
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
73+
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
74+
75+
/* Completeness */
76+
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
77+
"skipLibCheck": true
78+
/* Skip type checking all .d.ts files. */
79+
},
80+
"include": [
81+
"./js/**/*"
82+
]
83+
}

0 commit comments

Comments
 (0)