@shi-corp/development-utilities 1.0.6 → 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
 
@@ -0,0 +1,2 @@
1
+ /** Array of configuration objects merged together to form baseline for linting of the code. */
2
+ export declare const eslintConfig: import("eslint/config").Config[];
@@ -1,21 +1,17 @@
1
+ import { defineConfig, globalIgnores } from 'eslint/config';
1
2
  import eslint from '@eslint/js';
2
3
  import globals from 'globals';
3
4
  import jsdoc from 'eslint-plugin-jsdoc';
4
5
  import stylistic from '@stylistic/eslint-plugin';
5
6
  import tseslint from 'typescript-eslint';
6
- export const eslintConfig = tseslint.config(eslint.configs.recommended, jsdoc.configs['flat/recommended-typescript'], ...tseslint.configs.strictTypeChecked, ...tseslint.configs.stylisticTypeChecked, {
7
- 'ignores': ['eslint.config.mjs']
8
- }, {
7
+ export const eslintConfig = defineConfig(eslint.configs.recommended, jsdoc.configs['flat/recommended-typescript'], ...tseslint.configs.strictTypeChecked, ...tseslint.configs.stylisticTypeChecked, {
9
8
  'languageOptions': {
10
9
  'globals': {
11
- ...globals.browser,
12
10
  ...globals.mocha,
13
11
  ...globals.node,
14
12
  ...globals.es2021
15
13
  },
16
- 'parserOptions': {
17
- 'projectService': true
18
- }
14
+ 'parserOptions': { 'projectService': true }
19
15
  },
20
16
  'linterOptions': { 'reportUnusedDisableDirectives': true },
21
17
  'plugins': {
@@ -28,9 +24,6 @@ export const eslintConfig = tseslint.config(eslint.configs.recommended, jsdoc.co
28
24
  '@typescript-eslint/default-param-last': 'warn',
29
25
  '@typescript-eslint/explicit-function-return-type': 'warn',
30
26
  '@typescript-eslint/init-declarations': 'warn',
31
- '@typescript-eslint/no-array-constructor': 'warn',
32
- '@typescript-eslint/no-empty-function': 'warn',
33
- '@typescript-eslint/no-implied-eval': 'warn',
34
27
  '@typescript-eslint/no-invalid-this': 'warn',
35
28
  '@typescript-eslint/no-loop-func': 'warn',
36
29
  '@typescript-eslint/no-misused-promises': [
@@ -44,7 +37,6 @@ export const eslintConfig = tseslint.config(eslint.configs.recommended, jsdoc.co
44
37
  '@typescript-eslint/no-non-null-assertion': 'off',
45
38
  '@typescript-eslint/no-restricted-imports': 'warn',
46
39
  '@typescript-eslint/no-shadow': 'warn',
47
- '@typescript-eslint/no-unused-expressions': 'warn',
48
40
  '@typescript-eslint/no-unused-vars': [
49
41
  'warn',
50
42
  {
@@ -53,10 +45,7 @@ export const eslintConfig = tseslint.config(eslint.configs.recommended, jsdoc.co
53
45
  }
54
46
  ],
55
47
  '@typescript-eslint/no-use-before-define': 'warn',
56
- '@typescript-eslint/no-useless-constructor': 'warn',
57
48
  '@typescript-eslint/prefer-destructuring': 'warn',
58
- '@typescript-eslint/prefer-promise-reject-errors': 'warn',
59
- '@typescript-eslint/require-await': 'warn',
60
49
  '@typescript-eslint/restrict-template-expressions': [
61
50
  'warn',
62
51
  {
@@ -89,7 +78,6 @@ export const eslintConfig = tseslint.config(eslint.configs.recommended, jsdoc.co
89
78
  'id-length': 'warn',
90
79
  'id-match': 'warn',
91
80
  'init-declarations': 'off',
92
- 'jsdoc/check-alignment': 'warn',
93
81
  'jsdoc/check-indentation': [
94
82
  'warn',
95
83
  {
@@ -136,8 +124,6 @@ export const eslintConfig = tseslint.config(eslint.configs.recommended, jsdoc.co
136
124
  }
137
125
  }
138
126
  ],
139
- 'jsdoc/require-param': 'warn',
140
- 'jsdoc/valid-types': 'warn',
141
127
  'max-classes-per-file': 'warn',
142
128
  'max-depth': [
143
129
  'warn',
@@ -146,7 +132,6 @@ export const eslintConfig = tseslint.config(eslint.configs.recommended, jsdoc.co
146
132
  'max-nested-callbacks': 'warn',
147
133
  'new-cap': 'warn',
148
134
  'no-alert': 'warn',
149
- 'no-array-constructor': 'off',
150
135
  'no-bitwise': 'warn',
151
136
  'no-caller': 'warn',
152
137
  'no-console': 'warn',
@@ -155,7 +140,6 @@ export const eslintConfig = tseslint.config(eslint.configs.recommended, jsdoc.co
155
140
  'no-div-regex': 'warn',
156
141
  'no-duplicate-imports': 'warn',
157
142
  'no-else-return': 'warn',
158
- 'no-empty-function': 'off',
159
143
  'no-eq-null': 'warn',
160
144
  'no-eval': 'warn',
161
145
  'no-extend-native': 'warn',
@@ -163,7 +147,6 @@ export const eslintConfig = tseslint.config(eslint.configs.recommended, jsdoc.co
163
147
  'no-extra-label': 'warn',
164
148
  'no-implicit-coercion': 'warn',
165
149
  'no-implicit-globals': 'warn',
166
- 'no-implied-eval': 'off',
167
150
  'no-invalid-this': 'off',
168
151
  'no-iterator': 'warn',
169
152
  'no-label-var': 'warn',
@@ -204,23 +187,19 @@ export const eslintConfig = tseslint.config(eslint.configs.recommended, jsdoc.co
204
187
  'no-sequences': 'warn',
205
188
  'no-shadow': 'off',
206
189
  'no-template-curly-in-string': 'warn',
207
- 'no-throw-literal': 'warn',
208
190
  'no-undef-init': 'warn',
209
191
  'no-undefined': 'warn',
210
192
  'no-underscore-dangle': 'warn',
211
193
  'no-unmodified-loop-condition': 'warn',
212
194
  'no-unneeded-ternary': 'warn',
213
195
  'no-unreachable-loop': 'warn',
214
- 'no-unused-expressions': 'off',
215
196
  'no-unused-vars': 'off',
216
197
  'no-use-before-define': 'off',
217
198
  'no-useless-call': 'warn',
218
199
  'no-useless-computed-key': 'warn',
219
200
  'no-useless-concat': 'warn',
220
- 'no-useless-constructor': 'off',
221
201
  'no-useless-rename': 'warn',
222
202
  'no-useless-return': 'warn',
223
- 'no-var': 'warn',
224
203
  'no-warning-comments': [
225
204
  'warn',
226
205
  {
@@ -237,20 +216,15 @@ export const eslintConfig = tseslint.config(eslint.configs.recommended, jsdoc.co
237
216
  ],
238
217
  'operator-assignment': 'warn',
239
218
  'prefer-arrow-callback': 'warn',
240
- 'prefer-const': 'warn',
241
219
  'prefer-destructuring': 'off',
242
220
  'prefer-exponentiation-operator': 'warn',
243
221
  'prefer-named-capture-group': 'warn',
244
222
  'prefer-numeric-literals': 'warn',
245
223
  'prefer-object-spread': 'warn',
246
- 'prefer-promise-reject-errors': 'off',
247
224
  'prefer-regex-literals': 'warn',
248
- 'prefer-rest-params': 'warn',
249
- 'prefer-spread': 'warn',
250
225
  'prefer-template': 'warn',
251
226
  'radix': 'warn',
252
227
  'require-atomic-updates': 'warn',
253
- 'require-await': 'off',
254
228
  'require-unicode-regexp': 'warn',
255
229
  'sort-imports': 'warn',
256
230
  'sort-keys': 'warn',
@@ -289,6 +263,10 @@ export const eslintConfig = tseslint.config(eslint.configs.recommended, jsdoc.co
289
263
  'stylistic/function-paren-newline': 'warn',
290
264
  'stylistic/generator-star-spacing': 'warn',
291
265
  'stylistic/implicit-arrow-linebreak': 'warn',
266
+ 'stylistic/indent': [
267
+ 'warn',
268
+ 4
269
+ ],
292
270
  'stylistic/jsx-quotes': 'warn',
293
271
  'stylistic/key-spacing': 'warn',
294
272
  'stylistic/keyword-spacing': 'warn',
@@ -460,4 +438,10 @@ export const eslintConfig = tseslint.config(eslint.configs.recommended, jsdoc.co
460
438
  'contexts': ['TSInterfaceDeclaration']
461
439
  }
462
440
  }
463
- });
441
+ }, globalIgnores([
442
+ 'node_modules/',
443
+ 'eslint.config.mjs',
444
+ 'eslint.config.js',
445
+ 'bin/',
446
+ 'dist/'
447
+ ]));
@@ -0,0 +1,2 @@
1
+ /** Baseline configuration used for linting Next.JS projects the SHI - Lab way. */
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,2 +1,3 @@
1
- export { eslintConfig } from './config/baseLintConfig.js';
2
- 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,2 +1,3 @@
1
- export { eslintConfig } from './config/baseLintConfig.js';
2
- 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.0.6",
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"
@@ -33,19 +48,23 @@
33
48
  },
34
49
  "homepage": "https://github.com/Software-Hardware-Integration-Lab/Development-Utilities#readme",
35
50
  "dependencies": {
36
- "@stylistic/eslint-plugin": "~5.2.3",
37
- "eslint": "~9.35.0",
38
- "eslint-plugin-jsdoc": "~57.0.8",
39
- "typescript-eslint": "~8.40.0"
51
+ "@eslint/js": "~9.38.0",
52
+ "@stylistic/eslint-plugin": "~5.5.0",
53
+ "eslint": "~9.38.0",
54
+ "eslint-config-next": "~16.0.0",
55
+ "eslint-plugin-jsdoc": "~61.1.9",
56
+ "eslint-plugin-react": "~7.37.5",
57
+ "eslint-plugin-react-hooks": "~7.0.1",
58
+ "typescript-eslint": "~8.46.2"
40
59
  },
41
60
  "devDependencies": {
42
- "@types/chai": "~5.2.2",
61
+ "@types/chai": "~5.2.3",
43
62
  "@types/eslint": "~9.6.1",
44
63
  "@types/mocha": "~10.0.10",
45
- "chai": "~6.0.1",
46
- "mocha": "~11.7.2",
47
- "next": "~15.5.3",
48
- "typescript": "~5.9.2"
64
+ "chai": "~6.2.0",
65
+ "mocha": "~11.7.4",
66
+ "next": "~16.0.0",
67
+ "typescript": "~5.9.3"
49
68
  },
50
69
  "overrides": {
51
70
  "is-unicode-supported": "npm:@socketregistry/is-unicode-supported@^1",
@@ -1,4 +0,0 @@
1
- /**
2
- * Array of configuration objects merged together to form baseline for linting of the code.
3
- */
4
- export declare const eslintConfig: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
@@ -1,4 +0,0 @@
1
- export const nextConfig = {
2
- 'output': 'export',
3
- 'reactStrictMode': false
4
- };
@@ -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
- }