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