chore: TypeScript 5.2 with Nx 16.8.1 (#10380)

This commit is contained in:
Nathan Walker
2023-09-09 08:55:39 -07:00
committed by GitHub
parent f54ebbb2bf
commit 7c2938d2ac
28 changed files with 612 additions and 793 deletions

View File

@ -2,10 +2,10 @@
* tsconfig file used for executing TS script in the build folder with ts-node
**/
{
"compilerOptions": {
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"strict": true, /* Enable all strict type-checking options. */
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
}
"compilerOptions": {
"target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
"strict": true /* Enable all strict type-checking options. */,
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
}
}

View File

@ -1,11 +1,11 @@
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
// It should be published with your NPM package. It should not be tracked by Git.
{
"tsdocVersion": "0.12",
"toolPackages": [
{
"packageName": "@microsoft/api-extractor",
"packageVersion": "7.9.1"
}
]
}
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
// It should be published with your NPM package. It should not be tracked by Git.
{
"tsdocVersion": "0.12",
"toolPackages": [
{
"packageName": "@microsoft/api-extractor",
"packageVersion": "7.9.1"
}
]
}

View File

@ -1,77 +1,54 @@
{
"rulesDirectory": [
"@nativescript/tslint-rules"
],
"rules": {
"arrow-return-shorthand": true,
"class-name": true,
"curly": true,
"deprecation": true,
"forin": false,
"indent": [true, "spaces", 4],
"jsdoc-format": false,
"max-line-length": [false, 120],
"newline-before-return": true,
"no-android-resources": true,
"no-arg": true,
"no-bitwise": false,
"no-consecutive-blank-lines": true,
"no-construct": true,
"no-debugger": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-irregular-whitespace": true,
"no-string-literal": false,
"no-trailing-whitespace": false,
"no-unused-expression": true,
"no-use-before-declare": false,
"no-var-requires": false,
"one-line": [false,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"quotemark": [true, "double"],
"radix": false,
"semicolon": true,
"triple-equals": [true, "allow-null-check"],
"typedef": [false,
"callSignature",
"indexSignature",
"parameter",
"propertySignature",
"variableDeclarator",
"memberVariableDeclarator"
],
"typedef-whitespace": [true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"variable-name": [false, "allow-leading-underscore"],
"whitespace": [true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-rest-spread",
"check-type",
"check-type-operator",
"check-preblock"
]
}
"rulesDirectory": ["@nativescript/tslint-rules"],
"rules": {
"arrow-return-shorthand": true,
"class-name": true,
"curly": true,
"deprecation": true,
"forin": false,
"indent": [true, "spaces", 4],
"jsdoc-format": false,
"max-line-length": [false, 120],
"newline-before-return": true,
"no-android-resources": true,
"no-arg": true,
"no-bitwise": false,
"no-consecutive-blank-lines": true,
"no-construct": true,
"no-debugger": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-irregular-whitespace": true,
"no-string-literal": false,
"no-trailing-whitespace": false,
"no-unused-expression": true,
"no-use-before-declare": false,
"no-var-requires": false,
"one-line": [false, "check-open-brace", "check-catch", "check-else", "check-whitespace"],
"quotemark": [true, "double"],
"radix": false,
"semicolon": true,
"triple-equals": [true, "allow-null-check"],
"typedef": [false, "callSignature", "indexSignature", "parameter", "propertySignature", "variableDeclarator", "memberVariableDeclarator"],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"variable-name": [false, "allow-leading-underscore"],
"whitespace": [true, "check-branch", "check-decl", "check-operator", "check-module", "check-separator", "check-rest-spread", "check-type", "check-type-operator", "check-preblock"]
}
}