Compare commits
No commits in common. "b06e50dc087c36173afb2e8e330cbeb35786ec3c" and "697c039b6873fbca4e97b13500d58039b819b058" have entirely different histories.
b06e50dc08
...
697c039b68
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,6 +0,0 @@
|
|||||||
node_modules
|
|
||||||
logs
|
|
||||||
.env
|
|
||||||
|
|
||||||
coverage
|
|
||||||
build
|
|
@ -1,321 +1,233 @@
|
|||||||
{
|
{
|
||||||
"plugins": [
|
"plugins": ["jest", "@typescript-eslint"],
|
||||||
"jest",
|
"env": {
|
||||||
"@typescript-eslint"
|
"es6": true,
|
||||||
],
|
"node": true,
|
||||||
"env": {
|
"jest/globals": true
|
||||||
"es6": true,
|
},
|
||||||
"node": true,
|
"extends": [ "eslint:recommended", "plugin:@typescript-eslint/recommended" ],
|
||||||
"jest/globals": true
|
"globals": {
|
||||||
},
|
"Atomics": "readonly",
|
||||||
"extends": [
|
"SharedArrayBuffer": "readonly"
|
||||||
"eslint:recommended",
|
},
|
||||||
"plugin:@typescript-eslint/recommended"
|
"parser": "@typescript-eslint/parser",
|
||||||
],
|
"parserOptions": {
|
||||||
"globals": {
|
"ecmaVersion": 2022,
|
||||||
"Atomics": "readonly",
|
"sourceType": "module"
|
||||||
"SharedArrayBuffer": "readonly",
|
},
|
||||||
"BigInt": true
|
"rules": {
|
||||||
},
|
"@typescript-eslint/no-unused-vars": "off",
|
||||||
"parser": "@typescript-eslint/parser",
|
"accessor-pairs": "warn",
|
||||||
"parserOptions": {
|
"array-callback-return": "warn",
|
||||||
"ecmaVersion": 2022,
|
"array-bracket-newline": ["warn", "consistent"],
|
||||||
"sourceType": "module"
|
"array-bracket-spacing": ["warn", "always", { "objectsInArrays": false, "arraysInArrays": false }],
|
||||||
},
|
// "arrow-parens": "warn",
|
||||||
"rules": {
|
"arrow-spacing": "warn",
|
||||||
"@typescript-eslint/no-unused-vars": "off",
|
"block-scoped-var": "warn",
|
||||||
"@typescript-eslint/no-non-null-assertion": "off",
|
"block-spacing": ["warn", "always"],
|
||||||
"accessor-pairs": "warn",
|
"brace-style": ["warn", "1tbs"],
|
||||||
"array-callback-return": "warn",
|
"callback-return": "warn",
|
||||||
"array-bracket-newline": [
|
"camelcase": "warn",
|
||||||
"warn",
|
"comma-dangle": ["warn", "only-multiline"],
|
||||||
"consistent"
|
"comma-spacing": [
|
||||||
],
|
"warn",
|
||||||
"array-bracket-spacing": [
|
{
|
||||||
"warn",
|
"after": true,
|
||||||
"always",
|
"before": false
|
||||||
{
|
}
|
||||||
"objectsInArrays": false,
|
],
|
||||||
"arraysInArrays": false
|
"comma-style": "warn",
|
||||||
}
|
"computed-property-spacing": [
|
||||||
],
|
"warn",
|
||||||
"arrow-spacing": "warn",
|
"never"
|
||||||
"block-scoped-var": "warn",
|
],
|
||||||
"block-spacing": [
|
"consistent-this": "warn",
|
||||||
"warn",
|
"dot-notation": [
|
||||||
"always"
|
"warn",
|
||||||
],
|
{
|
||||||
"brace-style": [
|
"allowKeywords": true
|
||||||
"warn",
|
}
|
||||||
"allman"
|
],
|
||||||
],
|
"dot-location": [
|
||||||
"callback-return": "warn",
|
"error",
|
||||||
"camelcase": "warn",
|
"property"
|
||||||
"comma-dangle": [
|
],
|
||||||
"warn",
|
"eol-last": [
|
||||||
"only-multiline"
|
"warn",
|
||||||
],
|
"never"
|
||||||
"comma-spacing": [
|
],
|
||||||
"warn",
|
"eqeqeq": "warn",
|
||||||
{
|
"func-call-spacing": "warn",
|
||||||
"after": true,
|
"func-name-matching": "warn",
|
||||||
"before": false
|
"func-names": "warn",
|
||||||
}
|
"func-style": "warn",
|
||||||
],
|
"function-paren-newline": "warn",
|
||||||
"comma-style": "warn",
|
"generator-star-spacing": "warn",
|
||||||
"computed-property-spacing": [
|
"grouped-accessor-pairs": "warn",
|
||||||
"warn",
|
"guard-for-in": "warn",
|
||||||
"never"
|
"handle-callback-err": "warn",
|
||||||
],
|
"id-blacklist": "warn",
|
||||||
"consistent-this": "warn",
|
"id-match": "warn",
|
||||||
"dot-notation": [
|
"implicit-arrow-linebreak": "warn",
|
||||||
"warn",
|
"indent": "warn",
|
||||||
{
|
"init-declarations": "warn",
|
||||||
"allowKeywords": true
|
"quotes": ["error" , "single"],
|
||||||
}
|
"jsx-quotes": ["warn", "prefer-single"],
|
||||||
],
|
"key-spacing": ["warn", { "beforeColon": false, "afterColon": true }],
|
||||||
"dot-location": [
|
"keyword-spacing": ["warn", { "after": true, "before": true }],
|
||||||
"error",
|
"linebreak-style": [
|
||||||
"property"
|
"error",
|
||||||
],
|
"unix"
|
||||||
"eol-last": [
|
],
|
||||||
"warn",
|
"lines-around-comment": "warn",
|
||||||
"never"
|
"lines-around-directive": "warn",
|
||||||
],
|
"max-classes-per-file": "warn",
|
||||||
"eqeqeq": "warn",
|
"max-nested-callbacks": "warn",
|
||||||
"func-call-spacing": "warn",
|
"max-len": ["warn", {
|
||||||
"func-name-matching": "warn",
|
"code": 140,
|
||||||
"func-names": "warn",
|
"ignoreComments": true,
|
||||||
"func-style": "warn",
|
"ignoreStrings": true,
|
||||||
"function-paren-newline": "warn",
|
"ignoreTemplateLiterals": true,
|
||||||
"generator-star-spacing": "warn",
|
"ignoreRegExpLiterals": true
|
||||||
"grouped-accessor-pairs": "warn",
|
}],
|
||||||
"guard-for-in": "warn",
|
|
||||||
"handle-callback-err": "warn",
|
"max-lines-per-function": ["warn", 100],
|
||||||
"id-blacklist": "warn",
|
"max-depth": ["warn", 3],
|
||||||
"id-match": "warn",
|
"new-parens": "warn",
|
||||||
"implicit-arrow-linebreak": "warn",
|
"no-alert": "warn",
|
||||||
"indent": ["warn", 4, {
|
"no-array-constructor": "warn",
|
||||||
"SwitchCase": 1
|
"no-bitwise": "warn",
|
||||||
}],
|
"no-buffer-constructor": "warn",
|
||||||
"init-declarations": "warn",
|
"no-caller": "warn",
|
||||||
"quotes": [
|
"no-console": "warn",
|
||||||
"error",
|
"no-constant-binary-expression": "error",
|
||||||
"single"
|
"no-div-regex": "warn",
|
||||||
],
|
"no-dupe-else-if": "warn",
|
||||||
"jsx-quotes": [
|
"no-duplicate-imports": "warn",
|
||||||
"warn",
|
"no-else-return": "warn",
|
||||||
"prefer-single"
|
"no-empty-function": "warn",
|
||||||
],
|
"no-eq-null": "warn",
|
||||||
"key-spacing": [
|
"no-eval": "warn",
|
||||||
"warn",
|
"no-extend-native": "warn",
|
||||||
{
|
"no-extra-bind": "warn",
|
||||||
"beforeColon": false,
|
"no-extra-label": "warn",
|
||||||
"afterColon": true
|
"no-floating-decimal": "warn",
|
||||||
}
|
"no-implicit-coercion": "warn",
|
||||||
],
|
"no-implicit-globals": "warn",
|
||||||
"keyword-spacing": [
|
"no-implied-eval": "error",
|
||||||
"warn",
|
"no-import-assign": "warn",
|
||||||
{
|
"no-invalid-this": "warn",
|
||||||
"after": true,
|
"no-iterator": "warn",
|
||||||
"before": true
|
"no-label-var": "warn",
|
||||||
}
|
"no-lone-blocks": "warn",
|
||||||
],
|
"no-lonely-if": "warn",
|
||||||
"linebreak-style": [
|
"no-loop-func": "warn",
|
||||||
"error",
|
"no-mixed-requires": "warn",
|
||||||
"unix"
|
"no-multi-assign": "warn",
|
||||||
],
|
"no-multi-spaces": "warn",
|
||||||
"lines-around-comment": "warn",
|
"no-multi-str": "warn",
|
||||||
"lines-around-directive": "warn",
|
"no-multiple-empty-lines": "warn",
|
||||||
"max-classes-per-file": "warn",
|
"no-native-reassign": "warn",
|
||||||
"max-nested-callbacks": "warn",
|
"no-negated-in-lhs": "warn",
|
||||||
"max-len": [
|
"no-negated-condition": "error",
|
||||||
"warn",
|
"no-nested-ternary": "warn",
|
||||||
{
|
"no-new": "warn",
|
||||||
"code": 140,
|
"no-new-func": "warn",
|
||||||
"ignoreComments": true,
|
"no-new-object": "warn",
|
||||||
"ignoreStrings": true,
|
"no-new-require": "warn",
|
||||||
"ignoreTemplateLiterals": true,
|
"no-new-wrappers": "warn",
|
||||||
"ignoreRegExpLiterals": true
|
"no-octal-escape": "warn",
|
||||||
}
|
"no-path-concat": "warn",
|
||||||
],
|
"no-process-exit": "warn",
|
||||||
"max-lines-per-function": [
|
"no-proto": "warn",
|
||||||
"warn",
|
"no-restricted-globals": "warn",
|
||||||
140
|
"no-restricted-imports": "warn",
|
||||||
],
|
"no-restricted-modules": "warn",
|
||||||
"max-depth": [
|
"no-restricted-properties": "warn",
|
||||||
"warn",
|
"no-restricted-syntax": "warn",
|
||||||
3
|
"no-return-assign": "warn",
|
||||||
],
|
"no-return-await": "warn",
|
||||||
"new-parens": "warn",
|
"no-script-url": "warn",
|
||||||
"no-alert": "warn",
|
"no-self-compare": "warn",
|
||||||
"no-array-constructor": "warn",
|
"no-sequences": "warn",
|
||||||
"no-buffer-constructor": "warn",
|
"no-setter-return": "warn",
|
||||||
"no-caller": "warn",
|
"no-spaced-func": "warn",
|
||||||
"no-console": "warn",
|
"@typescript-eslint/no-shadow": "error",
|
||||||
"no-constant-binary-expression": "error",
|
"no-tabs": "warn",
|
||||||
"no-div-regex": "warn",
|
"no-template-curly-in-string": "error",
|
||||||
"no-dupe-else-if": "warn",
|
"no-throw-literal": "warn",
|
||||||
"no-duplicate-imports": "warn",
|
"no-undef-init": "error",
|
||||||
"no-else-return": "warn",
|
"no-undefined": "error",
|
||||||
"no-empty-function": "warn",
|
"no-unmodified-loop-condition": "warn",
|
||||||
"no-eq-null": "warn",
|
"no-unneeded-ternary": "error",
|
||||||
"no-eval": "warn",
|
"no-unused-expressions": "warn",
|
||||||
"no-extend-native": "warn",
|
"@typescript-eslint/no-use-before-define": "error",
|
||||||
"no-extra-bind": "warn",
|
"no-useless-call": "warn",
|
||||||
"no-extra-label": "warn",
|
"no-useless-computed-key": "warn",
|
||||||
"no-floating-decimal": "warn",
|
"no-useless-concat": "warn",
|
||||||
"no-implicit-coercion": "warn",
|
"no-useless-constructor": "warn",
|
||||||
"no-implicit-globals": "warn",
|
"no-useless-rename": "warn",
|
||||||
"no-implied-eval": "error",
|
"no-useless-return": "warn",
|
||||||
"no-import-assign": "warn",
|
"no-var": "warn",
|
||||||
"no-invalid-this": "warn",
|
"no-void": "warn",
|
||||||
"no-iterator": "warn",
|
"no-whitespace-before-property": "error",
|
||||||
"no-label-var": "warn",
|
"nonblock-statement-body-position": ["warn", "below"],
|
||||||
"no-lone-blocks": "warn",
|
"object-curly-spacing": [
|
||||||
"no-lonely-if": "warn",
|
"warn",
|
||||||
"no-loop-func": "warn",
|
"always"
|
||||||
"no-mixed-requires": "warn",
|
],
|
||||||
"no-multi-assign": "warn",
|
"object-property-newline": ["warn", { "allowAllPropertiesOnSameLine": true }],
|
||||||
"no-multi-spaces": "warn",
|
"object-shorthand": "warn",
|
||||||
"no-multi-str": "warn",
|
"one-var-declaration-per-line": "warn",
|
||||||
"no-multiple-empty-lines": "warn",
|
"operator-assignment": "warn",
|
||||||
"no-native-reassign": "warn",
|
"operator-linebreak": ["warn", "before"],
|
||||||
"no-negated-in-lhs": "warn",
|
"padding-line-between-statements": "warn",
|
||||||
"no-negated-condition": "error",
|
"padded-blocks": ["warn", { "switches": "never" }, { "allowSingleLineBlocks": true }],
|
||||||
"no-nested-ternary": "warn",
|
"prefer-arrow-callback": "warn",
|
||||||
"no-new": "warn",
|
"prefer-const": "warn",
|
||||||
"no-new-func": "warn",
|
"prefer-destructuring": "warn",
|
||||||
"no-new-object": "warn",
|
"prefer-exponentiation-operator": "warn",
|
||||||
"no-new-require": "warn",
|
"prefer-numeric-literals": "warn",
|
||||||
"no-new-wrappers": "warn",
|
"prefer-object-spread": "error",
|
||||||
"no-octal-escape": "warn",
|
"prefer-promise-reject-errors": "warn",
|
||||||
"no-path-concat": "warn",
|
"prefer-regex-literals": "warn",
|
||||||
"no-process-exit": "warn",
|
"prefer-rest-params": "warn",
|
||||||
"no-proto": "warn",
|
"prefer-spread": "warn",
|
||||||
"no-restricted-globals": "warn",
|
"require-jsdoc": "warn",
|
||||||
"no-restricted-imports": "warn",
|
"require-unicode-regexp": "warn",
|
||||||
"no-restricted-modules": "warn",
|
"rest-spread-spacing": "warn",
|
||||||
"no-restricted-properties": "warn",
|
"semi": "error",
|
||||||
"no-restricted-syntax": "warn",
|
"semi-spacing": "warn",
|
||||||
"no-return-assign": ["warn", "except-parens"],
|
"semi-style": [
|
||||||
"no-return-await": "warn",
|
"warn",
|
||||||
"no-script-url": "warn",
|
"last"
|
||||||
"no-self-compare": "warn",
|
],
|
||||||
"no-sequences": "warn",
|
"space-before-blocks": "warn",
|
||||||
"no-setter-return": "warn",
|
"space-before-function-paren":["error", "always"],
|
||||||
"no-spaced-func": "warn",
|
"space-in-parens": [
|
||||||
"@typescript-eslint/no-shadow": "error",
|
"warn",
|
||||||
"no-tabs": "warn",
|
"never"
|
||||||
"no-template-curly-in-string": "error",
|
],
|
||||||
"no-throw-literal": "warn",
|
"spaced-comment": ["warn", "always"],
|
||||||
"no-trailing-spaces": "warn",
|
"strict": "warn",
|
||||||
"no-undef-init": "error",
|
"switch-colon-spacing": "warn",
|
||||||
"no-undefined": "error",
|
"symbol-description": "warn",
|
||||||
"no-unmodified-loop-condition": "warn",
|
"template-curly-spacing": [
|
||||||
"no-unneeded-ternary": "error",
|
"warn",
|
||||||
"no-unused-expressions": "warn",
|
"never"
|
||||||
"@typescript-eslint/no-use-before-define": "error",
|
],
|
||||||
"no-useless-call": "warn",
|
"template-tag-spacing": "warn",
|
||||||
"no-useless-computed-key": "warn",
|
"unicode-bom": [
|
||||||
"no-useless-concat": "warn",
|
"warn",
|
||||||
"no-useless-constructor": "warn",
|
"never"
|
||||||
"no-useless-rename": "warn",
|
],
|
||||||
"no-useless-return": "warn",
|
"vars-on-top": "warn",
|
||||||
"no-var": "warn",
|
"wrap-iife": "warn",
|
||||||
"no-whitespace-before-property": "error",
|
"wrap-regex": "error",
|
||||||
"nonblock-statement-body-position": [
|
"yield-star-spacing": "warn",
|
||||||
"warn",
|
"yoda": [
|
||||||
"below"
|
"warn",
|
||||||
],
|
"never"
|
||||||
"object-curly-spacing": [
|
]
|
||||||
"warn",
|
}
|
||||||
"always"
|
|
||||||
],
|
|
||||||
"object-property-newline": [
|
|
||||||
"warn",
|
|
||||||
{
|
|
||||||
"allowAllPropertiesOnSameLine": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"object-shorthand": "warn",
|
|
||||||
"one-var-declaration-per-line": "warn",
|
|
||||||
"operator-assignment": "warn",
|
|
||||||
"operator-linebreak": [
|
|
||||||
"warn",
|
|
||||||
"before"
|
|
||||||
],
|
|
||||||
"padding-line-between-statements": "warn",
|
|
||||||
"padded-blocks": [
|
|
||||||
"warn",
|
|
||||||
{
|
|
||||||
"switches": "never"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"allowSingleLineBlocks": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"prefer-arrow-callback": "warn",
|
|
||||||
"prefer-const": "warn",
|
|
||||||
"prefer-destructuring": "warn",
|
|
||||||
"prefer-exponentiation-operator": "warn",
|
|
||||||
"prefer-numeric-literals": "warn",
|
|
||||||
"prefer-object-spread": "error",
|
|
||||||
"prefer-promise-reject-errors": "warn",
|
|
||||||
"prefer-regex-literals": "warn",
|
|
||||||
"prefer-rest-params": "warn",
|
|
||||||
"prefer-spread": "warn",
|
|
||||||
"require-jsdoc": "warn",
|
|
||||||
"require-unicode-regexp": "warn",
|
|
||||||
"rest-spread-spacing": "warn",
|
|
||||||
"semi": "error",
|
|
||||||
"semi-spacing": "warn",
|
|
||||||
"semi-style": [
|
|
||||||
"warn",
|
|
||||||
"last"
|
|
||||||
],
|
|
||||||
"space-before-blocks": "warn",
|
|
||||||
"space-before-function-paren": [
|
|
||||||
"error",
|
|
||||||
"always"
|
|
||||||
],
|
|
||||||
"space-in-parens": [
|
|
||||||
"warn",
|
|
||||||
"never"
|
|
||||||
],
|
|
||||||
"spaced-comment": [
|
|
||||||
"warn",
|
|
||||||
"always"
|
|
||||||
],
|
|
||||||
"strict": "warn",
|
|
||||||
"switch-colon-spacing": "warn",
|
|
||||||
"symbol-description": "warn",
|
|
||||||
"template-curly-spacing": [
|
|
||||||
"warn",
|
|
||||||
"never"
|
|
||||||
],
|
|
||||||
"template-tag-spacing": "warn",
|
|
||||||
"unicode-bom": [
|
|
||||||
"warn",
|
|
||||||
"never"
|
|
||||||
],
|
|
||||||
"vars-on-top": "warn",
|
|
||||||
"wrap-iife": "warn",
|
|
||||||
"wrap-regex": "error",
|
|
||||||
"yield-star-spacing": "warn",
|
|
||||||
"yoda": [
|
|
||||||
"warn",
|
|
||||||
"never"
|
|
||||||
],
|
|
||||||
"no-warning-comments": [
|
|
||||||
1,
|
|
||||||
{
|
|
||||||
"terms": [
|
|
||||||
"todo",
|
|
||||||
"fixme"
|
|
||||||
],
|
|
||||||
"location": "anywhere"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -31,7 +31,6 @@
|
|||||||
},
|
},
|
||||||
"dependencies": { },
|
"dependencies": { },
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node --enable-source-maps build/index.js",
|
|
||||||
"test": "yarn build && jest",
|
"test": "yarn build && jest",
|
||||||
"build": "tsc && tsc -p tsconfig.cjs.json && node ./scripts/declareTypes.js",
|
"build": "tsc && tsc -p tsconfig.cjs.json && node ./scripts/declareTypes.js",
|
||||||
"release": "yarn build && yarn publish",
|
"release": "yarn build && yarn publish",
|
||||||
|
228
tsconfig.json
228
tsconfig.json
@ -1,115 +1,113 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
// "watch": true,
|
/* Visit https://aka.ms/tsconfig to read more about this file */
|
||||||
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
||||||
|
/* Projects */
|
||||||
/* Projects */
|
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
|
||||||
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
|
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
||||||
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
|
||||||
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
|
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
|
||||||
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
|
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
||||||
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
||||||
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
||||||
|
/* Language and Environment */
|
||||||
/* Language and Environment */
|
"target": "ES2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
||||||
"target": "ES2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
"lib": ["ES2022"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
||||||
"lib": ["ES2022"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
||||||
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
||||||
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
||||||
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
||||||
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
||||||
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
|
||||||
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
|
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
|
||||||
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
|
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
||||||
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
||||||
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
||||||
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
||||||
|
/* Modules */
|
||||||
/* Modules */
|
"module": "ES2022", /* Specify what module code is generated. */
|
||||||
"module": "NodeNext", /* Specify what module code is generated. */
|
// "rootDir": "./", /* Specify the root folder within your source files. */
|
||||||
// "module": "AMD",
|
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
|
||||||
// "rootDir": "./", /* Specify the root folder within your source files. */
|
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
||||||
"moduleResolution": "nodenext", /* Specify how TypeScript looks up a file from a given module specifier. */
|
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
||||||
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
||||||
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
"typeRoots": [
|
||||||
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
"./node_modules/@types",
|
||||||
"typeRoots": [
|
"./@types"
|
||||||
"./node_modules/@types",
|
], /* Specify multiple folders that act like './node_modules/@types'. */
|
||||||
"./@types/**"
|
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
||||||
], /* Specify multiple folders that act like './node_modules/@types'. */
|
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
||||||
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
||||||
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
|
||||||
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
|
||||||
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
|
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
|
||||||
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
|
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
|
||||||
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
|
// "resolveJsonModule": true, /* Enable importing .json files. */
|
||||||
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
|
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
||||||
// "resolveJsonModule": true, /* Enable importing .json files. */
|
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
||||||
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
|
||||||
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
/* JavaScript Support */
|
||||||
|
"allowJs": false, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
||||||
/* JavaScript Support */
|
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
||||||
"allowJs": false, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
||||||
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
||||||
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
/* Emit */
|
||||||
|
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
||||||
/* Emit */
|
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
||||||
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
||||||
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
||||||
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
||||||
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
// "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. */
|
||||||
"inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
"outDir": "./build/esm", /* Specify an output folder for all emitted files. */
|
||||||
// "outFile": "./build/out-esm.js", /* 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. */
|
// "removeComments": true, /* Disable emitting comments. */
|
||||||
"outDir": "./build", /* Specify an output folder for all emitted files. */
|
// "noEmit": true, /* Disable emitting files from a compilation. */
|
||||||
"removeComments": true, /* Disable emitting comments. */
|
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
||||||
// "noEmit": true, /* Disable emitting files from a compilation. */
|
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
|
||||||
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
||||||
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
|
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
||||||
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
||||||
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
||||||
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
||||||
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
||||||
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
"stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
|
||||||
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
||||||
"stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
|
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
||||||
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
||||||
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
||||||
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
||||||
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
|
||||||
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
/* Interop Constraints */
|
||||||
|
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
||||||
/* Interop Constraints */
|
// "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. */
|
||||||
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
||||||
// "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. */
|
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
||||||
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
||||||
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
||||||
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
||||||
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
/* Type Checking */
|
||||||
|
"strict": true, /* Enable all strict type-checking options. */
|
||||||
/* Type Checking */
|
"noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
||||||
"strict": true, /* Enable all strict type-checking options. */
|
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
||||||
"noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
||||||
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
|
||||||
"strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
||||||
"strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
|
"noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
||||||
"strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
||||||
"noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
"alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
||||||
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
"noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
||||||
"alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
"noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
||||||
"noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
||||||
"noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
"noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
||||||
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
"noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
||||||
"noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
||||||
"noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
||||||
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
||||||
"noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
||||||
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
||||||
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
|
||||||
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
/* Completeness */
|
||||||
|
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
||||||
/* Completeness */
|
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
||||||
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
},
|
||||||
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
"compileOnSave": true
|
||||||
},
|
}
|
||||||
"compileOnSave": true
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user