@vfourny/node-toolkit 1.0.1
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/.commitlintrc.js +22 -0
- package/README.md +107 -0
- package/eslint.config.js +47 -0
- package/package.json +68 -0
- package/prettier.config.js +10 -0
- package/release.config.js +27 -0
- package/tsconfig.json +113 -0
package/.commitlintrc.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
extends: ["@commitlint/config-angular"],
|
|
3
|
+
rules: {
|
|
4
|
+
"type-enum": [
|
|
5
|
+
2,
|
|
6
|
+
"always",
|
|
7
|
+
[
|
|
8
|
+
"build",
|
|
9
|
+
"ci",
|
|
10
|
+
"docs",
|
|
11
|
+
"feat",
|
|
12
|
+
"fix",
|
|
13
|
+
"perf",
|
|
14
|
+
"refactor",
|
|
15
|
+
"revert",
|
|
16
|
+
"style",
|
|
17
|
+
"test",
|
|
18
|
+
"chore",
|
|
19
|
+
],
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
}
|
package/README.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# VFourny's Node Toolkit
|
|
2
|
+
|
|
3
|
+
[](https://github.com/vfourny/node-toolkit/blob/main/docs/README.fr.md)
|
|
4
|
+
|
|
5
|
+
Welcome to **VFourny's Node Toolkit**! This repository contains a collection of tools and configurations designed to simplify development and automation for your projects.
|
|
6
|
+
|
|
7
|
+
## Table of Contents
|
|
8
|
+
|
|
9
|
+
- [Installation](#installation)
|
|
10
|
+
- [Variables d'Environnement](#variables-d'environnement)
|
|
11
|
+
- [Fichiers de Configuration](#fichiers-de-configuration)
|
|
12
|
+
- [Eslint](#eslint)
|
|
13
|
+
- [Prettier](#prettier)
|
|
14
|
+
- [TypeScript](#typescript)
|
|
15
|
+
- [Semantic Release](#semantic-release)
|
|
16
|
+
- [Commitlint](#commitlint)
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
To install **VFourny's Node Toolkit** via npm, make sure you have [Node.js](https://nodejs.org/) installed on your machine. Then, run the following command in your terminal:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install -D @vfourny/node-toolkit
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Environment Variables
|
|
27
|
+
|
|
28
|
+
For `semantic-release` to work properly, certain environment variables must be defined in your GitHub repository configuration.
|
|
29
|
+
|
|
30
|
+
### Required Environment Variables
|
|
31
|
+
|
|
32
|
+
- `NPM_TOKEN`: Access token for npm to publish packages.
|
|
33
|
+
- `IS_PUBLISH`: Indicates whether the workflow should publish an npm package.
|
|
34
|
+
|
|
35
|
+
## Configuration Files
|
|
36
|
+
|
|
37
|
+
- `eslint.config.js`: ESLint configuration for JavaScript code linting.
|
|
38
|
+
- `prettier.config.js`: Prettier configuration for JavaScript code formatting.
|
|
39
|
+
- `tsconfig.json`: TypeScript configuration for transpiling TypeScript code.
|
|
40
|
+
- `release.config.js`: Semantic Release configuration for version management.
|
|
41
|
+
- `commitlintrc.js`: Commitlint configuration for commit message validation.
|
|
42
|
+
|
|
43
|
+
### ESLint
|
|
44
|
+
|
|
45
|
+
To import the ESLint configuration into your project, add the following code to your [ESLint](https://eslint.org/docs/latest/use/configure/configuration-files#configuration-file) configuration file:
|
|
46
|
+
|
|
47
|
+
```javascript
|
|
48
|
+
import nodeToolkitEslintConfig from "@vfourny/node-toolkit/eslint"
|
|
49
|
+
|
|
50
|
+
export default {
|
|
51
|
+
...nodeToolkitEslintConfig,
|
|
52
|
+
// Your custom configurations
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Prettier
|
|
57
|
+
|
|
58
|
+
To import the Prettier configuration into your project, add the following code to your [Prettier](https://prettier.io/docs/en/configuration.html) configuration file:
|
|
59
|
+
|
|
60
|
+
```javascript
|
|
61
|
+
import nodeToolkitPrettierConfig from "@vfourny/node-toolkit/prettier"
|
|
62
|
+
|
|
63
|
+
export default {
|
|
64
|
+
...nodeToolkitPrettierConfig,
|
|
65
|
+
// Your custom configurations
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### TypeScript
|
|
70
|
+
|
|
71
|
+
To import the TypeScript configuration into your project, add the following code to your [TypeScript](https://www.typescriptlang.org/tsconfig) configuration file:
|
|
72
|
+
|
|
73
|
+
```json
|
|
74
|
+
{
|
|
75
|
+
"extends": "@vfourny/node-toolkit/tsconfig",
|
|
76
|
+
"compilerOptions": {
|
|
77
|
+
// Your custom configurations
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Semantic Release
|
|
83
|
+
|
|
84
|
+
To import the Semantic Release configuration into your project, add the following code to your [Semantic Release](https://semantic-release.gitbook.io/semantic-release) configuration file:
|
|
85
|
+
|
|
86
|
+
```javascript
|
|
87
|
+
import nodeToolkitReleaseConfig from "@vfourny/node-toolkit/release"
|
|
88
|
+
|
|
89
|
+
export default {
|
|
90
|
+
extends: "@vfourny/node-toolkit/release",
|
|
91
|
+
// Your custom configurations
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Commitlint
|
|
96
|
+
|
|
97
|
+
To import the Commitlint configuration into your project, add the following code to your [Commitlint](https://commitlint.js.org/#/concepts-shareable-config) configuration file:
|
|
98
|
+
|
|
99
|
+
```javascript
|
|
100
|
+
export default {
|
|
101
|
+
extends: "@vfourny/node-toolkit/commitlint",
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
_Thank you for using **VFourny's Node Toolkit**! For any questions or support, please open an issue on the GitHub repository._
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import eslintJS from '@eslint/js';
|
|
2
|
+
import tseslint from 'typescript-eslint';
|
|
3
|
+
import globals from 'globals';
|
|
4
|
+
import eslintPluginVue from 'eslint-plugin-vue';
|
|
5
|
+
import typescriptEslint from 'typescript-eslint';
|
|
6
|
+
import eslintConfigPrettier from 'eslint-config-prettier';
|
|
7
|
+
|
|
8
|
+
const vueFilesConfig = {
|
|
9
|
+
name: 'eslint-config-seyrinian-tools/vue',
|
|
10
|
+
extends: [...eslintPluginVue.configs['flat/recommended']],
|
|
11
|
+
files: ['**/*.{ts,vue}'],
|
|
12
|
+
languageOptions: {
|
|
13
|
+
ecmaVersion: 'latest',
|
|
14
|
+
sourceType: 'module',
|
|
15
|
+
globals: globals.browser,
|
|
16
|
+
parserOptions: {
|
|
17
|
+
parser: typescriptEslint.parser,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
rules: {},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const defaultConfig = {
|
|
24
|
+
name: 'eslint-config-seyrinian-tools/default',
|
|
25
|
+
languageOptions: {
|
|
26
|
+
globals: {
|
|
27
|
+
...globals.node,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
rules: {
|
|
31
|
+
'no-console': 'error',
|
|
32
|
+
'no-debugger': 'error',
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export default tseslint.config(
|
|
37
|
+
eslintJS.configs.recommended,
|
|
38
|
+
...tseslint.configs.recommended,
|
|
39
|
+
...tseslint.configs.strict,
|
|
40
|
+
...tseslint.configs.stylistic,
|
|
41
|
+
vueFilesConfig,
|
|
42
|
+
defaultConfig,
|
|
43
|
+
eslintConfigPrettier,
|
|
44
|
+
{
|
|
45
|
+
ignores: ['node_modules', 'dist/'],
|
|
46
|
+
},
|
|
47
|
+
);
|
package/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vfourny/node-toolkit",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"private": false,
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "tsc",
|
|
11
|
+
"lint": "eslint .",
|
|
12
|
+
"lint:fix": "eslint --fix .",
|
|
13
|
+
"format": "prettier --write .",
|
|
14
|
+
"format:check": "prettier --check .",
|
|
15
|
+
"type-check": "tsc --noEmit",
|
|
16
|
+
"prepare": "husky"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"tsconfig.json",
|
|
20
|
+
".commitlintrc.js",
|
|
21
|
+
"release.config.js",
|
|
22
|
+
"eslint.config.js",
|
|
23
|
+
"prettier.config.js"
|
|
24
|
+
],
|
|
25
|
+
"exports": {
|
|
26
|
+
"./eslint": "./eslint.config.js",
|
|
27
|
+
"./prettier": "./prettier.config.js",
|
|
28
|
+
"./commitlint": "./.commitlintrc.js",
|
|
29
|
+
"./tsconfig": "./tsconfig.json",
|
|
30
|
+
"./release": "./release.config.js"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [],
|
|
33
|
+
"author": "",
|
|
34
|
+
"license": "ISC",
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@commitlint/config-angular": "^19.3.0",
|
|
37
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
38
|
+
"@semantic-release/git": "^10.0.1",
|
|
39
|
+
"eslint-config-prettier": "^10.0.1",
|
|
40
|
+
"eslint-plugin-vue": "^9.32.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@commitlint/cli": "^19.3.0",
|
|
44
|
+
"@eslint/js": "^9.4.0",
|
|
45
|
+
"@types/eslint__js": "^8.42.3",
|
|
46
|
+
"@types/node": "^22.0.0",
|
|
47
|
+
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
48
|
+
"eslint": "^9.3.0",
|
|
49
|
+
"globals": "^15.3.0",
|
|
50
|
+
"husky": "^9.0.11",
|
|
51
|
+
"prettier": "^3.2.5",
|
|
52
|
+
"semantic-release": "^24.0.0",
|
|
53
|
+
"typescript": "^5.4.5",
|
|
54
|
+
"typescript-eslint": "^8.0.0"
|
|
55
|
+
},
|
|
56
|
+
"repository": {
|
|
57
|
+
"type": "git",
|
|
58
|
+
"url": "git+https://github.com/vfourny/node-toolkit.git"
|
|
59
|
+
},
|
|
60
|
+
"publishConfig": {
|
|
61
|
+
"access": "public",
|
|
62
|
+
"registry": "https://registry.npmjs.org/"
|
|
63
|
+
},
|
|
64
|
+
"engines": {
|
|
65
|
+
"node": ">=20.13 <23",
|
|
66
|
+
"npm": ">= 10"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
branches: ['main'],
|
|
3
|
+
plugins: [
|
|
4
|
+
'@semantic-release/commit-analyzer',
|
|
5
|
+
'@semantic-release/release-notes-generator',
|
|
6
|
+
[
|
|
7
|
+
'@semantic-release/changelog',
|
|
8
|
+
{
|
|
9
|
+
changelogFile: 'docs/CHANGELOG.md',
|
|
10
|
+
},
|
|
11
|
+
],
|
|
12
|
+
'@semantic-release/github',
|
|
13
|
+
[
|
|
14
|
+
'@semantic-release/npm',
|
|
15
|
+
{
|
|
16
|
+
npmPublish: process.env.PUBLISH === 'true',
|
|
17
|
+
pkgRoot: '.',
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
'@semantic-release/git',
|
|
22
|
+
{
|
|
23
|
+
assets: ['docs/CHANGELOG.md', 'package.json', 'package-lock.json'],
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
],
|
|
27
|
+
};
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"exclude": ["node_modules", "dist"],
|
|
3
|
+
"include": ["src/**/*.ts"],
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
6
|
+
|
|
7
|
+
/* Projects */
|
|
8
|
+
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
|
|
9
|
+
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
|
10
|
+
"tsBuildInfoFile": "${configDir}/.cache/.tsbuildinfo" /* Specify the path to .tsbuildinfo incremental compilation file. */,
|
|
11
|
+
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
|
|
12
|
+
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
|
13
|
+
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
14
|
+
|
|
15
|
+
/* Language and Environment */
|
|
16
|
+
"target": "ES6" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
|
|
17
|
+
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
18
|
+
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
|
19
|
+
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
|
20
|
+
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
|
21
|
+
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
|
22
|
+
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
|
23
|
+
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
|
|
24
|
+
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
|
|
25
|
+
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
26
|
+
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
27
|
+
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
28
|
+
|
|
29
|
+
/* Modules */
|
|
30
|
+
"module": "NodeNext" /* Specify what module code is generated. */,
|
|
31
|
+
// "rootDir": "src" /* Specify the root folder within your source files. */,
|
|
32
|
+
"moduleResolution": "nodenext" /* Specify how TypeScript looks up a file from a given module specifier. */,
|
|
33
|
+
// "baseUrl": "." /* Specify the base directory to resolve non-relative module names. */,
|
|
34
|
+
// "paths": {} /* Specify a set of entries that re-map imports to additional lookup locations. */,
|
|
35
|
+
// "rootDirs": [] /* Allow multiple folders to be treated as one when resolving modules. */,
|
|
36
|
+
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
37
|
+
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
|
38
|
+
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
39
|
+
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
|
40
|
+
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
|
|
41
|
+
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
|
|
42
|
+
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
|
|
43
|
+
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
|
|
44
|
+
"resolveJsonModule": true /* Enable importing .json files. */,
|
|
45
|
+
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
|
46
|
+
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
|
47
|
+
|
|
48
|
+
/* JavaScript Support */
|
|
49
|
+
"allowJs": true /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */,
|
|
50
|
+
"checkJs": true /* Enable error reporting in type-checked JavaScript files. */,
|
|
51
|
+
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
52
|
+
|
|
53
|
+
/* Emit */
|
|
54
|
+
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
|
|
55
|
+
// "declarationMap": true /* Create sourcemaps for d.ts files. */,
|
|
56
|
+
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
57
|
+
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
|
58
|
+
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
59
|
+
// "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. */,
|
|
60
|
+
"outDir": "${configDir}/dist" /* Specify an output folder for all emitted files. */,
|
|
61
|
+
// "removeComments": true, /* Disable emitting comments. */
|
|
62
|
+
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
63
|
+
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
64
|
+
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
|
|
65
|
+
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
|
66
|
+
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
|
67
|
+
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
68
|
+
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
|
69
|
+
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
|
70
|
+
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
|
71
|
+
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
|
|
72
|
+
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
|
73
|
+
"noEmitOnError": true /* Disable emitting files if any type checking errors are reported. */,
|
|
74
|
+
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
|
75
|
+
// "declarationDir": "./dist/types" /* Specify the output directory for generated declaration files. */,
|
|
76
|
+
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
|
77
|
+
|
|
78
|
+
/* Interop Constraints */
|
|
79
|
+
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
80
|
+
// "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. */
|
|
81
|
+
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
82
|
+
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
|
|
83
|
+
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
84
|
+
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
|
85
|
+
|
|
86
|
+
/* Type Checking */
|
|
87
|
+
"strict": true /* Enable all strict type-checking options. */,
|
|
88
|
+
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
89
|
+
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
|
90
|
+
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
91
|
+
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
|
|
92
|
+
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
|
93
|
+
// "strictBuiltinIteratorReturn": false, /* Ensure that the return type of generators and async functions are correctly constrained. */
|
|
94
|
+
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
|
95
|
+
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
|
96
|
+
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
|
97
|
+
"noUnusedLocals": true /* Enable error reporting when local variables aren't read. */,
|
|
98
|
+
"noUnusedParameters": true /* Raise an error when a function parameter isn't read. */,
|
|
99
|
+
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
|
100
|
+
"noImplicitReturns": true /* Enable error reporting for codepaths that do not explicitly return in a function. */,
|
|
101
|
+
"noFallthroughCasesInSwitch": true /* Enable error reporting for fallthrough cases in switch statements. */,
|
|
102
|
+
"noUncheckedSideEffectImports": true /* Enable error reporting for imports that may be converted to a 'require' call. */,
|
|
103
|
+
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
|
104
|
+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
105
|
+
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
|
106
|
+
"allowUnusedLabels": true /* Disable error reporting for unused labels. */,
|
|
107
|
+
"allowUnreachableCode": true /* Disable error reporting for unreachable code. */,
|
|
108
|
+
|
|
109
|
+
/* Completeness */
|
|
110
|
+
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
111
|
+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
112
|
+
}
|
|
113
|
+
}
|