@shi-corp/development-utilities 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 CHANGED
@@ -1,4 +1,4 @@
1
- # Development Utilities [![Unit Test](https://github.com/Software-Hardware-Integration-Lab/Development-Utilities/actions/workflows/Unit-Test.yml/badge.svg)](https://github.com/Software-Hardware-Integration-Lab/Development-Utilities/actions/workflows/Unit-Test.yml) [![Lint Check](https://github.com/Software-Hardware-Integration-Lab/Development-Utilities/actions/workflows/Lint.yml/badge.svg)](https://github.com/Software-Hardware-Integration-Lab/Development-Utilities/actions/workflows/Lint.yml) [![CodeQL](https://github.com/Software-Hardware-Integration-Lab/Development-Utilities/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/Software-Hardware-Integration-Lab/Development-Utilities/actions/workflows/github-code-scanning/codeql)
1
+ # Development Utilities [![Unit Test](https://github.com/Software-Hardware-Integration-Lab/Development-Utilities/actions/workflows/Test-Unit.yml/badge.svg)](https://github.com/Software-Hardware-Integration-Lab/Development-Utilities/actions/workflows/Test-Unit.yml) [![Lint Check](https://github.com/Software-Hardware-Integration-Lab/Development-Utilities/actions/workflows/Test-Lint.yml/badge.svg)](https://github.com/Software-Hardware-Integration-Lab/Development-Utilities/actions/workflows/Test-Lint.yml) [![CodeQL](https://github.com/Software-Hardware-Integration-Lab/Development-Utilities/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/Software-Hardware-Integration-Lab/Development-Utilities/actions/workflows/github-code-scanning/codeql)
2
2
 
3
3
  Shared development-time configurations for TypeScript, ESLint (flat config), and Next.js. These utilities are dev-only and should not ship with application runtime artifacts.
4
4
 
@@ -22,7 +22,7 @@ in tsconfig.json make these changes
22
22
 
23
23
  ```jsonc
24
24
  {
25
- "extends": "@shi-corp/development-utilities/config/baseTsConfig.json",
25
+ "extends": "@shi-corp/development-utilities/config/typescript/baseTsConfig.json",
26
26
  "compilerOptions": {
27
27
  "outDir": "./bin" // Adjust for your project
28
28
  }
@@ -34,13 +34,26 @@ in tsconfig.json make these changes
34
34
 
35
35
  This project is using flat file for eslint (best results achieved with version >=9.9.0) and the intention to be compatible with that style only:
36
36
 
37
- in eslint.config.(m)js make these changes
37
+ In `eslint.config.(m)js` make these changes:
38
38
 
39
- ```JavaScript
40
- import { eslintConfig } from '@shi-corp/development-utilities';
39
+ ### Normal (Non-UI)
40
+
41
+ ```TypeScript
42
+ import { baseLintConfig } from '@shi-corp/development-utilities';
43
+
44
+ export default [
45
+ ...baseLintConfig,
46
+ // Add project-specific rules, ignores, or plugins here
47
+ ];
48
+ ```
49
+
50
+ ### User Interface (Next.JS)
51
+
52
+ ```TypeScript
53
+ import { baseLintConfig } from '@shi-corp/development-utilities';
41
54
 
42
55
  export default [
43
- ...eslintConfig,
56
+ ...nextLintConfig,
44
57
  // Add project-specific rules, ignores, or plugins here
45
58
  ];
46
59
  ```
@@ -49,7 +62,7 @@ export default [
49
62
 
50
63
  in next.config.(m)js make these changes
51
64
 
52
- ```JavaScript
65
+ ```TypeScript
53
66
  import { nextConfig } from '@shi-corp/development-utilities';
54
67
 
55
68
  export default {
@@ -67,9 +80,9 @@ export default {
67
80
  ## Compatibility
68
81
 
69
82
  - Node.JS (Latest LTS)
70
- - ES Lint >= 9.40
83
+ - ES Lint >= 9.38.0
71
84
  - TypeScript >= 5.9
72
- - Next.JS >= 15 (only if using the provided next config)
85
+ - Next.JS >= 16 (only if using the provided next config)
73
86
 
74
87
  ## License
75
88
 
@@ -1,25 +1,10 @@
1
- import { defineConfig } from 'eslint/config';
1
+ import { defineConfig, globalIgnores } from 'eslint/config';
2
2
  import eslint from '@eslint/js';
3
3
  import globals from 'globals';
4
4
  import jsdoc from 'eslint-plugin-jsdoc';
5
5
  import stylistic from '@stylistic/eslint-plugin';
6
6
  import tseslint from 'typescript-eslint';
7
7
  export const eslintConfig = defineConfig(eslint.configs.recommended, jsdoc.configs['flat/recommended-typescript'], ...tseslint.configs.strictTypeChecked, ...tseslint.configs.stylisticTypeChecked, {
8
- 'ignores': [
9
- 'eslint.config.mjs',
10
- 'eslint.config.js',
11
- 'next.config.mjs',
12
- 'next.config.js',
13
- 'jest.config.mjs',
14
- 'node_modules/',
15
- 'bin/',
16
- 'dist/',
17
- 'out/',
18
- 'build/',
19
- '.next/',
20
- 'next-env.d.ts'
21
- ]
22
- }, {
23
8
  'languageOptions': {
24
9
  'globals': {
25
10
  ...globals.mocha,
@@ -39,9 +24,6 @@ export const eslintConfig = defineConfig(eslint.configs.recommended, jsdoc.confi
39
24
  '@typescript-eslint/default-param-last': 'warn',
40
25
  '@typescript-eslint/explicit-function-return-type': 'warn',
41
26
  '@typescript-eslint/init-declarations': 'warn',
42
- '@typescript-eslint/no-array-constructor': 'warn',
43
- '@typescript-eslint/no-empty-function': 'warn',
44
- '@typescript-eslint/no-implied-eval': 'warn',
45
27
  '@typescript-eslint/no-invalid-this': 'warn',
46
28
  '@typescript-eslint/no-loop-func': 'warn',
47
29
  '@typescript-eslint/no-misused-promises': [
@@ -55,7 +37,6 @@ export const eslintConfig = defineConfig(eslint.configs.recommended, jsdoc.confi
55
37
  '@typescript-eslint/no-non-null-assertion': 'off',
56
38
  '@typescript-eslint/no-restricted-imports': 'warn',
57
39
  '@typescript-eslint/no-shadow': 'warn',
58
- '@typescript-eslint/no-unused-expressions': 'warn',
59
40
  '@typescript-eslint/no-unused-vars': [
60
41
  'warn',
61
42
  {
@@ -64,10 +45,7 @@ export const eslintConfig = defineConfig(eslint.configs.recommended, jsdoc.confi
64
45
  }
65
46
  ],
66
47
  '@typescript-eslint/no-use-before-define': 'warn',
67
- '@typescript-eslint/no-useless-constructor': 'warn',
68
48
  '@typescript-eslint/prefer-destructuring': 'warn',
69
- '@typescript-eslint/prefer-promise-reject-errors': 'warn',
70
- '@typescript-eslint/require-await': 'warn',
71
49
  '@typescript-eslint/restrict-template-expressions': [
72
50
  'warn',
73
51
  {
@@ -100,7 +78,6 @@ export const eslintConfig = defineConfig(eslint.configs.recommended, jsdoc.confi
100
78
  'id-length': 'warn',
101
79
  'id-match': 'warn',
102
80
  'init-declarations': 'off',
103
- 'jsdoc/check-alignment': 'warn',
104
81
  'jsdoc/check-indentation': [
105
82
  'warn',
106
83
  {
@@ -147,8 +124,6 @@ export const eslintConfig = defineConfig(eslint.configs.recommended, jsdoc.confi
147
124
  }
148
125
  }
149
126
  ],
150
- 'jsdoc/require-param': 'warn',
151
- 'jsdoc/valid-types': 'warn',
152
127
  'max-classes-per-file': 'warn',
153
128
  'max-depth': [
154
129
  'warn',
@@ -157,7 +132,6 @@ export const eslintConfig = defineConfig(eslint.configs.recommended, jsdoc.confi
157
132
  'max-nested-callbacks': 'warn',
158
133
  'new-cap': 'warn',
159
134
  'no-alert': 'warn',
160
- 'no-array-constructor': 'off',
161
135
  'no-bitwise': 'warn',
162
136
  'no-caller': 'warn',
163
137
  'no-console': 'warn',
@@ -166,7 +140,6 @@ export const eslintConfig = defineConfig(eslint.configs.recommended, jsdoc.confi
166
140
  'no-div-regex': 'warn',
167
141
  'no-duplicate-imports': 'warn',
168
142
  'no-else-return': 'warn',
169
- 'no-empty-function': 'off',
170
143
  'no-eq-null': 'warn',
171
144
  'no-eval': 'warn',
172
145
  'no-extend-native': 'warn',
@@ -174,7 +147,6 @@ export const eslintConfig = defineConfig(eslint.configs.recommended, jsdoc.confi
174
147
  'no-extra-label': 'warn',
175
148
  'no-implicit-coercion': 'warn',
176
149
  'no-implicit-globals': 'warn',
177
- 'no-implied-eval': 'off',
178
150
  'no-invalid-this': 'off',
179
151
  'no-iterator': 'warn',
180
152
  'no-label-var': 'warn',
@@ -215,23 +187,19 @@ export const eslintConfig = defineConfig(eslint.configs.recommended, jsdoc.confi
215
187
  'no-sequences': 'warn',
216
188
  'no-shadow': 'off',
217
189
  'no-template-curly-in-string': 'warn',
218
- 'no-throw-literal': 'warn',
219
190
  'no-undef-init': 'warn',
220
191
  'no-undefined': 'warn',
221
192
  'no-underscore-dangle': 'warn',
222
193
  'no-unmodified-loop-condition': 'warn',
223
194
  'no-unneeded-ternary': 'warn',
224
195
  'no-unreachable-loop': 'warn',
225
- 'no-unused-expressions': 'off',
226
196
  'no-unused-vars': 'off',
227
197
  'no-use-before-define': 'off',
228
198
  'no-useless-call': 'warn',
229
199
  'no-useless-computed-key': 'warn',
230
200
  'no-useless-concat': 'warn',
231
- 'no-useless-constructor': 'off',
232
201
  'no-useless-rename': 'warn',
233
202
  'no-useless-return': 'warn',
234
- 'no-var': 'warn',
235
203
  'no-warning-comments': [
236
204
  'warn',
237
205
  {
@@ -248,20 +216,15 @@ export const eslintConfig = defineConfig(eslint.configs.recommended, jsdoc.confi
248
216
  ],
249
217
  'operator-assignment': 'warn',
250
218
  'prefer-arrow-callback': 'warn',
251
- 'prefer-const': 'warn',
252
219
  'prefer-destructuring': 'off',
253
220
  'prefer-exponentiation-operator': 'warn',
254
221
  'prefer-named-capture-group': 'warn',
255
222
  'prefer-numeric-literals': 'warn',
256
223
  'prefer-object-spread': 'warn',
257
- 'prefer-promise-reject-errors': 'off',
258
224
  'prefer-regex-literals': 'warn',
259
- 'prefer-rest-params': 'warn',
260
- 'prefer-spread': 'warn',
261
225
  'prefer-template': 'warn',
262
226
  'radix': 'warn',
263
227
  'require-atomic-updates': 'warn',
264
- 'require-await': 'off',
265
228
  'require-unicode-regexp': 'warn',
266
229
  'sort-imports': 'warn',
267
230
  'sort-keys': 'warn',
@@ -300,6 +263,10 @@ export const eslintConfig = defineConfig(eslint.configs.recommended, jsdoc.confi
300
263
  'stylistic/function-paren-newline': 'warn',
301
264
  'stylistic/generator-star-spacing': 'warn',
302
265
  'stylistic/implicit-arrow-linebreak': 'warn',
266
+ 'stylistic/indent': [
267
+ 'warn',
268
+ 4
269
+ ],
303
270
  'stylistic/jsx-quotes': 'warn',
304
271
  'stylistic/key-spacing': 'warn',
305
272
  'stylistic/keyword-spacing': 'warn',
@@ -471,4 +438,10 @@ export const eslintConfig = defineConfig(eslint.configs.recommended, jsdoc.confi
471
438
  'contexts': ['TSInterfaceDeclaration']
472
439
  }
473
440
  }
474
- });
441
+ }, globalIgnores([
442
+ 'node_modules/',
443
+ 'eslint.config.mjs',
444
+ 'eslint.config.js',
445
+ 'bin/',
446
+ 'dist/'
447
+ ]));
@@ -1,2 +1,2 @@
1
1
  /** Baseline configuration used for linting Next.JS projects the SHI - Lab way. */
2
- export declare const nextLintConfig: import("eslint/config").Config[];
2
+ export declare const eslintConfig: import("eslint/config").Config[];
@@ -0,0 +1,26 @@
1
+ import { defineConfig, globalIgnores } from 'eslint/config';
2
+ import { eslintConfig as baselineConfig } from './base.js';
3
+ import globals from 'globals';
4
+ import nextVitals from 'eslint-config-next/core-web-vitals';
5
+ import react from 'eslint-plugin-react';
6
+ import reactHooks from 'eslint-plugin-react-hooks';
7
+ export const eslintConfig = defineConfig([
8
+ ...baselineConfig,
9
+ {
10
+ 'languageOptions': { 'globals': { ...globals.browser } },
11
+ 'settings': { 'react': { 'version': 'detect' } }
12
+ },
13
+ react.configs.flat['recommended'],
14
+ react.configs.flat['jsx-runtime'],
15
+ reactHooks.configs.flat.recommended,
16
+ ...nextVitals,
17
+ globalIgnores([
18
+ 'next.config.mjs',
19
+ 'next.config.js',
20
+ 'next-env.d.ts',
21
+ '.next/**',
22
+ 'out/**',
23
+ 'build/**',
24
+ 'jest.config.mjs'
25
+ ])
26
+ ]);
@@ -0,0 +1,3 @@
1
+ export const nextConfig = {
2
+ 'output': 'export'
3
+ };
package/bin/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { eslintConfig } from './config/baseLintConfig.js';
2
- export { nextLintConfig } from './config/nextLintConfig.js';
3
- export { nextConfig } from './config/baseNextConfig.js';
1
+ export { eslintConfig as baseLintConfig } from './config/linter/base.js';
2
+ export { eslintConfig as nextLintConfig } from './config/linter/next.js';
3
+ export { nextConfig } from './config/next/base.js';
package/bin/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { eslintConfig } from './config/baseLintConfig.js';
2
- export { nextLintConfig } from './config/nextLintConfig.js';
3
- export { nextConfig } from './config/baseNextConfig.js';
1
+ export { eslintConfig as baseLintConfig } from './config/linter/base.js';
2
+ export { eslintConfig as nextLintConfig } from './config/linter/next.js';
3
+ export { nextConfig } from './config/next/base.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shi-corp/development-utilities",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "description": "Collection of configurations, settings and packages to be common across multiple products/repositories.",
5
5
  "main": "bin/index.js",
6
6
  "type": "module",
@@ -11,6 +11,21 @@
11
11
  "lint": "eslint --max-warnings 0",
12
12
  "test:Unit": "mocha"
13
13
  },
14
+ "packageManager": "npm@11.6.2",
15
+ "devEngines": {
16
+ "runtime": {
17
+ "name": "node",
18
+ "version": ">=22.17.0",
19
+ "onFail": "error"
20
+ },
21
+ "packageManager": {
22
+ "name": "npm",
23
+ "onFail": "error"
24
+ }
25
+ },
26
+ "engines": {
27
+ "node": ">=22.17.0"
28
+ },
14
29
  "repository": {
15
30
  "type": "git",
16
31
  "url": "https://github.com/Software-Hardware-Integration-Lab/Development-Utilities"
@@ -36,18 +51,19 @@
36
51
  "@eslint/js": "~9.38.0",
37
52
  "@stylistic/eslint-plugin": "~5.5.0",
38
53
  "eslint": "~9.38.0",
39
- "eslint-plugin-jsdoc": "~61.1.4",
54
+ "eslint-config-next": "~16.0.0",
55
+ "eslint-plugin-jsdoc": "~61.1.9",
40
56
  "eslint-plugin-react": "~7.37.5",
41
- "eslint-plugin-react-hooks": "~7.0.0",
42
- "typescript-eslint": "~8.46.1"
57
+ "eslint-plugin-react-hooks": "~7.0.1",
58
+ "typescript-eslint": "~8.46.2"
43
59
  },
44
60
  "devDependencies": {
45
- "@types/chai": "~5.2.2",
61
+ "@types/chai": "~5.2.3",
46
62
  "@types/eslint": "~9.6.1",
47
63
  "@types/mocha": "~10.0.10",
48
64
  "chai": "~6.2.0",
49
65
  "mocha": "~11.7.4",
50
- "next": "~15.5.6",
66
+ "next": "~16.0.0",
51
67
  "typescript": "~5.9.3"
52
68
  },
53
69
  "overrides": {
@@ -1,4 +0,0 @@
1
- export const nextConfig = {
2
- 'output': 'export',
3
- 'reactStrictMode': false
4
- };
@@ -1,13 +0,0 @@
1
- import { eslintConfig as baselineConfig } from './baseLintConfig.js';
2
- import { defineConfig } from 'eslint/config';
3
- import globals from 'globals';
4
- import react from 'eslint-plugin-react';
5
- import reactHooks from 'eslint-plugin-react-hooks';
6
- export const nextLintConfig = defineConfig(...baselineConfig, react.configs.flat['recommended'], react.configs.flat['jsx-runtime'], reactHooks.configs.flat['recommended'], {
7
- 'languageOptions': { 'globals': { ...globals.browser } },
8
- 'settings': {
9
- 'react': {
10
- 'version': 'detect'
11
- }
12
- }
13
- });
@@ -1,105 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- /* Visit https://aka.ms/tsconfig to read more about this file */
4
- /* Projects */
5
- // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
6
- // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
7
- // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
8
- // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
9
- // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
10
- // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
11
- /* Language and Environment */
12
- "target": "ES2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
13
- // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
14
- // "jsx": "preserve", /* Specify what JSX code is generated. */
15
- // "libReplacement": true, /* Enable lib replacement. */
16
- // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
17
- // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
18
- // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
19
- // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
20
- // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
21
- // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
22
- // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
23
- // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
24
- // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
25
- /* Modules */
26
- "module": "NodeNext", /* Specify what module code is generated. */
27
- // "rootDir": "./", /* Specify the root folder within your source files. */
28
- "moduleResolution": "NodeNext", /* Specify how TypeScript looks up a file from a given module specifier. */
29
- // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
30
- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
31
- // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
32
- // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
33
- // "types": [], /* Specify type package names to be included without being referenced in a source file. */
34
- // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
35
- // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
36
- // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
37
- // "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */
38
- // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
39
- // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
40
- // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
41
- "noUncheckedSideEffectImports": true, /* Check side effect imports. */
42
- // "resolveJsonModule": true, /* Enable importing .json files. */
43
- // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
44
- // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
45
- /* JavaScript Support */
46
- "allowJs": false, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
47
- "checkJs": false, /* Enable error reporting in type-checked JavaScript files. */
48
- // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
49
- /* Emit */
50
- // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
51
- // "declarationMap": true, /* Create sourcemaps for d.ts files. */
52
- // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
53
- "sourceMap": true, /* Create source map files for emitted JavaScript files. */
54
- // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
55
- // "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. */
56
- // "outDir": "./bin", /* Specify an output folder for all emitted files. Would be different for each project and has to be defined after extending this config. */
57
- "removeComments": true, /* Disable emitting comments. */
58
- // "noEmit": true, /* Disable emitting files from a compilation. */
59
- // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
60
- // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
61
- // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
62
- // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
63
- // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
64
- // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
65
- // "newLine": "crlf", /* Set the newline character for emitting files. */
66
- // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
67
- // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
68
- // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
69
- // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
70
- // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
71
- /* Interop Constraints */
72
- "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
73
- "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. */
74
- // "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can trivially generate declaration files. */
75
- // "erasableSyntaxOnly": true, /* Do not allow runtime constructs that are not part of ECMAScript. */
76
- // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
77
- "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
78
- // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
79
- "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
80
- /* Type Checking */
81
- "strict": true, /* Enable all strict type-checking options. */
82
- "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
83
- "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
84
- "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
85
- "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
86
- "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
87
- "strictBuiltinIteratorReturn": true, /* Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'. */
88
- "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
89
- "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
90
- "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
91
- "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
92
- "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
93
- // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
94
- "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
95
- "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
96
- // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
97
- "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
98
- "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
99
- // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
100
- // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
101
- /* Completeness */
102
- // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
103
- "skipLibCheck": true /* Skip type checking all .d.ts files. */
104
- }
105
- }