feat(tsconfig): base TypeScript configs for working with Node (#2886)

This commit is contained in:
Tommy Nguyen 2023-12-18 12:05:07 +01:00 коммит произвёл GitHub
Родитель 91a9ffe51b
Коммит bf893a2e82
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
87 изменённых файлов: 208 добавлений и 41 удалений

Просмотреть файл

@ -0,0 +1,5 @@
---
"@rnx-kit/tsconfig": major
---
Base TypeScript configurations for working with Node

Просмотреть файл

@ -46,6 +46,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/node": "^20.0.0",
"eslint": "^8.23.0",
"jest": "^29.2.1",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -45,6 +45,7 @@
"@babel/preset-env": "^7.20.0",
"@rnx-kit/eslint-config": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"eslint": "^8.23.0",
"jest": "^29.2.1",
"prettier": "^3.0.0",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -38,6 +38,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"eslint": "^8.23.0",
"prettier": "^3.0.0",
"typescript": "^5.0.0"

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-esm.json",
"extends": "@rnx-kit/tsconfig/tsconfig.esm.json",
"include": ["src"]
}

Просмотреть файл

@ -55,6 +55,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/jest": "^29.2.1",
"@types/node": "^20.0.0",
"@types/qrcode": "^1.4.2",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-esm.json",
"extends": "@rnx-kit/tsconfig/tsconfig.esm.json",
"include": ["src"]
}

Просмотреть файл

@ -39,6 +39,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/mkdirp": "^1.0.1",
"@types/rimraf": "^3.0.0",
"@types/sinon": "^9.0.1",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -35,6 +35,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/node": "^20.0.0",
"eslint": "^8.23.0",
"jest": "^29.2.1",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-esm.json",
"extends": "@rnx-kit/tsconfig/tsconfig.esm.json",
"include": ["src"]
}

Просмотреть файл

@ -43,6 +43,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/jest": "^29.2.1",
"@types/node": "^20.0.0",
"@types/yargs": "^16.0.0",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -34,6 +34,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/fs-extra": "^9.0.0",
"@types/istextorbinary": "^2.3.0",
"@types/node": "^20.0.0",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -46,6 +46,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/babel__core": "^7.0.0",
"@types/babel__helper-plugin-utils": "^7.0.0",
"@types/babel__template": "^7.0.0",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -32,6 +32,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/node": "^20.0.0",
"@types/yargs": "^16.0.0",
"eslint": "^8.23.0",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -32,6 +32,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/fast-levenshtein": "0.0.4",
"@types/node": "^20.0.0",
"chalk": "^4.1.0",

Просмотреть файл

@ -1,5 +1,5 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"compilerOptions": {
"lib": ["ES2019.Object"],
"alwaysStrict": false

Просмотреть файл

@ -36,6 +36,7 @@
"@rnx-kit/tools-language": "*",
"@rnx-kit/tools-node": "*",
"@rnx-kit/tools-workspaces": "*",
"@rnx-kit/tsconfig": "*",
"@types/jest": "^29.2.1",
"@types/prompts": "^2.0.0",
"@types/semver": "^7.0.0",

Просмотреть файл

@ -1,5 +1,5 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"compilerOptions": {
"alwaysStrict": false
},

Просмотреть файл

@ -28,6 +28,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/babel__core": "^7.0.0",
"@types/babel__helper-plugin-utils": "^7.0.0",
"@types/jest": "^29.2.1",

Просмотреть файл

@ -1,5 +1,5 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"compilerOptions": {
"noEmit": true
},

Просмотреть файл

@ -45,6 +45,7 @@
"@rnx-kit/babel-plugin-import-path-remapper": "*",
"@rnx-kit/eslint-config": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/babel__core": "^7.0.0",
"@types/jest": "^29.2.1",
"@types/node": "^20.0.0",

Просмотреть файл

@ -1,5 +1,5 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"compilerOptions": {
"noEmit": true
},

Просмотреть файл

@ -27,6 +27,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/jest": "^29.2.1",
"@types/node": "^20.0.0",
"eslint": "^8.23.0",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -67,6 +67,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/connect": "^3.4.36",
"@types/fs-extra": "^9.0.0",
"@types/jest": "^29.2.1",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -43,6 +43,7 @@
"@rnx-kit/metro-serializer-esbuild": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tools-react-native": "*",
"@rnx-kit/tsconfig": "*",
"@types/node": "^20.0.0",
"@types/semver": "^7.0.0",
"eslint": "^8.23.0",

Просмотреть файл

@ -1,5 +1,5 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"],
"exclude": ["src/__fixtures__/**/*", "src/__snapshots__/**/*"]
}

Просмотреть файл

@ -36,6 +36,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/jest": "^29.2.1",
"@types/node": "^20.0.0",
"eslint": "^8.23.0",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -24,6 +24,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/node": "^20.0.0",
"esbuild": "^0.19.0",
"eslint": "^8.23.0",

Просмотреть файл

@ -1,5 +1,5 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"],
"compilerOptions": {
"outDir": "lib"

Просмотреть файл

@ -56,6 +56,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/eslint": "^8.0.0",
"@types/eslint__eslintrc": "^2.1.1",
"@types/eslint__js": "^8.0.0",

Просмотреть файл

@ -1,5 +1,5 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"compilerOptions": {
"noEmit": true
},

Просмотреть файл

@ -39,6 +39,7 @@
"@jest/types": "^29.2.1",
"@react-native-community/cli-types": "^11.0.0",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/jest": "^29.2.1",
"@types/node": "^20.0.0",
"eslint": "^8.23.0",

Просмотреть файл

@ -1,5 +1,5 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"compilerOptions": {
"noEmit": true,
"sourceMap": false

Просмотреть файл

@ -41,6 +41,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/babel__core": "^7.0.0",
"@types/connect": "^3.4.36",
"@types/jest": "^29.2.1",

Просмотреть файл

@ -1,5 +1,5 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"compilerOptions": {
"declarationDir": "./",
"declarationMap": false,

Просмотреть файл

@ -29,6 +29,7 @@
"@rnx-kit/jest-preset": "*",
"@rnx-kit/metro-serializer": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/jest": "^29.2.1",
"@types/node": "^20.0.0",
"eslint": "^8.23.0",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -32,6 +32,7 @@
"@rnx-kit/jest-preset": "*",
"@rnx-kit/metro-serializer": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/jest": "^29.2.1",
"@types/node": "^20.0.0",
"eslint": "^8.23.0",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -40,6 +40,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/node": "^20.0.0",
"@types/semver": "^7.0.0",
"eslint": "^8.23.0",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -31,6 +31,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/jest": "^29.2.1",
"@types/node": "^20.0.0",
"eslint": "^8.23.0",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -41,6 +41,7 @@
"@rnx-kit/metro-serializer": "*",
"@rnx-kit/metro-service": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/jest": "^29.2.1",
"@types/node": "^20.0.0",
"eslint": "^8.23.0",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -28,6 +28,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/node": "^20.0.0",
"@types/semver": "^7.0.0",
"eslint": "^8.23.0",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -53,6 +53,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/node": "^20.0.0",
"@types/node-fetch": "^2.6.5",
"eslint": "^8.23.0",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -39,6 +39,7 @@
"@react-native/metro-config": "^0.72.0",
"@rnx-kit/eslint-config": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"eslint": "^8.23.0",
"prettier": "^3.0.0",
"react": "18.2.0",

Просмотреть файл

@ -1,5 +1,5 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"compilerOptions": {
"checkJs": false
},

Просмотреть файл

@ -28,6 +28,7 @@
},
"devDependencies": {
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"prettier": "^3.0.0"
}
}

Просмотреть файл

@ -45,6 +45,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/jest": "^29.2.1",
"@types/node": "^20.0.0",
"eslint": "^8.23.0",

Просмотреть файл

@ -1,5 +1,5 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"compilerOptions": {
"noEmit": true
},

Просмотреть файл

@ -32,6 +32,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"eslint": "^8.23.0",
"jest": "^29.2.1",
"prettier": "^3.0.0",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -53,6 +53,7 @@
"@rnx-kit/react-native-test-app-msal": "workspace:*",
"@rnx-kit/scripts": "workspace:*",
"@rnx-kit/third-party-notices": "workspace:*",
"@rnx-kit/tsconfig": "workspace:*",
"@types/react": "^18.0.0",
"eslint": "^8.23.0",
"jest": "^29.2.1",

Просмотреть файл

@ -1,5 +1,5 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"compilerOptions": {
"checkJs": false,
"noEmit": true,

Просмотреть файл

@ -35,6 +35,7 @@
"@rnx-kit/jest-preset": "*",
"@rnx-kit/metro-serializer": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/jest": "^29.2.1",
"@types/node": "^20.0.0",
"@types/yargs": "^16.0.0",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -41,6 +41,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/node": "^20.0.0",
"eslint": "^8.23.0",
"jest": "^29.2.1",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -55,6 +55,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/node": "^20.0.0",
"eslint": "^8.23.0",
"jest": "^29.2.1",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -51,6 +51,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/node": "^20.0.0",
"eslint": "^8.23.0",
"jest": "^29.2.1",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -44,6 +44,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/node": "^20.0.0",
"eslint": "^8.23.0",
"jest": "^29.2.1",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -0,0 +1,32 @@
# @rnx-kit/tsconfig
[![Build](https://github.com/microsoft/rnx-kit/actions/workflows/build.yml/badge.svg)](https://github.com/microsoft/rnx-kit/actions/workflows/build.yml)
[![npm version](https://img.shields.io/npm/v/@rnx-kit/tsconfig)](https://www.npmjs.com/package/@rnx-kit/tsconfig)
`@rnx-kit/tsconfig` is a set of TypeScript configurations for working with Node.
## Install
```
yarn add @rnx-kit/tsconfig --dev
```
or if you're using npm:
```
npm add --save-dev @rnx-kit/tsconfig
```
## Usage
Add the following to your `tsconfig.json`:
```json
"extends": "@rnx-kit/tsconfig/tsconfig.json"
```
Or if you're targeting ESM:
```json
"extends": "@rnx-kit/tsconfig/tsconfig.esm.json"
```

Просмотреть файл

@ -0,0 +1,40 @@
{
"name": "@rnx-kit/tsconfig",
"version": "0.0.1",
"description": "Base TypeScript configs for working with Node",
"keywords": [
"node",
"tsconfig",
"typescript"
],
"homepage": "https://github.com/microsoft/rnx-kit/tree/main/packages/tsconfig#readme",
"license": "MIT",
"files": [
"tsconfig.esm.json",
"tsconfig.json"
],
"main": "tsconfig.json",
"exports": {
".": {
"default": "./tsconfig.json"
},
"./tsconfig.esm.json": {
"default": "./tsconfig.esm.json"
},
"./tsconfig.json": {
"default": "./tsconfig.json"
},
"./package.json": "./package.json"
},
"repository": {
"type": "git",
"url": "https://github.com/microsoft/rnx-kit",
"directory": "packages/tsconfig"
},
"scripts": {
"format": "prettier --write --log-level error package.json tsconfig.esm.json tsconfig.json"
},
"devDependencies": {
"prettier": "^3.0.0"
}
}

Просмотреть файл

@ -1,5 +1,5 @@
{
"extends": "./tsconfig-shared.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"target": "ES2020",
"module": "Node16",

Просмотреть файл

Просмотреть файл

@ -31,6 +31,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/node": "^20.0.0",
"eslint": "^8.23.0",
"jest": "^29.2.1",

Просмотреть файл

@ -1,4 +1,4 @@
{
"extends": "@rnx-kit/scripts/tsconfig-shared.json",
"extends": "@rnx-kit/tsconfig/tsconfig.json",
"include": ["src"]
}

Просмотреть файл

@ -26,6 +26,7 @@
},
"devDependencies": {
"@eslint/js": "^8.33.0",
"@rnx-kit/tsconfig": "workspace:*",
"@types/jest": "^29.2.1",
"@types/node": "^20.0.0",
"@types/yargs": "^16.0.0"

Просмотреть файл

@ -1,5 +1,5 @@
{
"extends": "./tsconfig-esm.json",
"extends": "@rnx-kit/tsconfig/tsconfig.esm.json",
"compilerOptions": {
"noEmit": true
},

Просмотреть файл

@ -3179,6 +3179,7 @@ __metadata:
"@rnx-kit/eslint-config": "*"
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
"@types/node": ^20.0.0
eslint: ^8.23.0
jest: ^29.2.1
@ -3200,6 +3201,7 @@ __metadata:
"@babel/preset-env": ^7.20.0
"@rnx-kit/eslint-config": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
eslint: ^8.23.0
jest: ^29.2.1
prettier: ^3.0.0
@ -3407,6 +3409,7 @@ __metadata:
"@rnx-kit/tools-language": "*"
"@rnx-kit/tools-node": "*"
"@rnx-kit/tools-workspaces": "*"
"@rnx-kit/tsconfig": "*"
"@types/jest": ^29.2.1
"@types/prompts": ^2.0.0
"@types/semver": ^7.0.0
@ -3437,6 +3440,7 @@ __metadata:
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tools-node": ^2.0.1
"@rnx-kit/tsconfig": "*"
"@types/babel__core": ^7.0.0
"@types/babel__helper-plugin-utils": ^7.0.0
"@types/jest": ^29.2.1
@ -3457,6 +3461,7 @@ __metadata:
"@rnx-kit/babel-plugin-import-path-remapper": "*"
"@rnx-kit/eslint-config": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
"@types/babel__core": ^7.0.0
"@types/jest": ^29.2.1
"@types/node": ^20.0.0
@ -3489,6 +3494,7 @@ __metadata:
"@rnx-kit/eslint-config": "*"
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
eslint: ^8.23.0
prettier: ^3.0.0
typescript: ^5.0.0
@ -3509,6 +3515,7 @@ __metadata:
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tools-node": ^2.1.1
"@rnx-kit/tsconfig": "*"
"@types/jest": ^29.2.1
"@types/node": ^20.0.0
"@types/qrcode": ^1.4.2
@ -3536,6 +3543,7 @@ __metadata:
"@rnx-kit/eslint-config": "*"
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
"@types/jest": ^29.2.1
"@types/node": ^20.0.0
eslint: ^8.23.0
@ -3554,6 +3562,7 @@ __metadata:
"@rnx-kit/eslint-config": "*"
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
"@types/mkdirp": ^1.0.1
"@types/node": ^20.0.0
"@types/rimraf": ^3.0.0
@ -3595,6 +3604,7 @@ __metadata:
"@rnx-kit/tools-language": ^2.0.0
"@rnx-kit/tools-node": ^2.1.1
"@rnx-kit/tools-react-native": ^1.3.4
"@rnx-kit/tsconfig": "*"
"@types/connect": ^3.4.36
"@types/fs-extra": ^9.0.0
"@types/jest": ^29.2.1
@ -3636,6 +3646,7 @@ __metadata:
"@rnx-kit/eslint-config": "*"
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
"@types/node": ^20.0.0
eslint: ^8.23.0
jest: ^29.2.1
@ -3659,6 +3670,7 @@ __metadata:
"@rnx-kit/scripts": "*"
"@rnx-kit/tools-node": ^2.0.1
"@rnx-kit/tools-react-native": "*"
"@rnx-kit/tsconfig": "*"
"@types/node": ^20.0.0
"@types/semver": ^7.0.0
eslint: ^8.23.0
@ -3677,6 +3689,7 @@ __metadata:
"@rnx-kit/eslint-config": "*"
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
"@types/jest": ^29.2.1
"@types/node": ^20.0.0
chalk: ^4.1.0
@ -3698,6 +3711,7 @@ __metadata:
"@rnx-kit/metro-plugin-duplicates-checker": ^2.1.2
"@rnx-kit/scripts": "*"
"@rnx-kit/tools-node": ^2.1.1
"@rnx-kit/tsconfig": "*"
"@types/jest": ^29.2.1
"@types/node": ^20.0.0
"@types/yargs": ^16.0.0
@ -3719,6 +3733,7 @@ __metadata:
"@rnx-kit/eslint-config": "*"
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
"@types/node": ^20.0.0
esbuild: ^0.19.0
eslint: ^8.23.0
@ -3752,6 +3767,7 @@ __metadata:
"@rnx-kit/eslint-config": "*"
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
"@types/eslint": ^8.0.0
"@types/eslint__eslintrc": ^2.1.1
"@types/eslint__js": ^8.0.0
@ -3791,6 +3807,7 @@ __metadata:
"@jest/types": ^29.2.1
"@react-native-community/cli-types": ^11.0.0
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
"@types/jest": ^29.2.1
"@types/node": ^20.0.0
eslint: ^8.23.0
@ -3821,6 +3838,7 @@ __metadata:
"@rnx-kit/tools-node": ^2.0.0
"@rnx-kit/tools-react-native": ^1.3.4
"@rnx-kit/tools-workspaces": ^0.1.3
"@rnx-kit/tsconfig": "*"
"@types/babel__core": ^7.0.0
"@types/connect": ^3.4.36
"@types/jest": ^29.2.1
@ -3854,6 +3872,7 @@ __metadata:
"@rnx-kit/metro-serializer": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tools-node": ^2.0.0
"@rnx-kit/tsconfig": "*"
"@types/jest": ^29.2.1
"@types/node": ^20.0.0
eslint: ^8.23.0
@ -3874,6 +3893,7 @@ __metadata:
"@rnx-kit/metro-serializer": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tools-node": ^2.0.0
"@rnx-kit/tsconfig": "*"
"@types/jest": ^29.2.1
"@types/node": ^20.0.0
eslint: ^8.23.0
@ -3899,6 +3919,7 @@ __metadata:
"@rnx-kit/scripts": "*"
"@rnx-kit/tools-node": ^2.0.0
"@rnx-kit/tools-react-native": ^1.3.2
"@rnx-kit/tsconfig": "*"
"@rnx-kit/typescript-service": ^1.5.7
"@types/node": ^20.0.0
"@types/semver": ^7.0.0
@ -3921,6 +3942,7 @@ __metadata:
"@rnx-kit/scripts": "*"
"@rnx-kit/tools-node": ^2.1.0
"@rnx-kit/tools-react-native": ^1.3.4
"@rnx-kit/tsconfig": "*"
"@types/jest": ^29.2.1
"@types/node": ^20.0.0
enhanced-resolve: ^5.8.3
@ -3951,6 +3973,7 @@ __metadata:
"@rnx-kit/scripts": "*"
"@rnx-kit/tools-node": ^2.0.0
"@rnx-kit/tools-react-native": ^1.3.4
"@rnx-kit/tsconfig": "*"
"@types/jest": ^29.2.1
"@types/node": ^20.0.0
esbuild: ^0.19.0
@ -3978,6 +4001,7 @@ __metadata:
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tools-react-native": ^1.3.4
"@rnx-kit/tsconfig": "*"
"@types/node": ^20.0.0
"@types/semver": ^7.0.0
eslint: ^8.23.0
@ -4001,6 +4025,7 @@ __metadata:
"@rnx-kit/scripts": "*"
"@rnx-kit/tools-node": ^2.1.0
"@rnx-kit/tools-react-native": ^1.3.4
"@rnx-kit/tsconfig": "*"
"@types/node": ^20.0.0
"@types/node-fetch": ^2.6.5
chalk: ^4.1.0
@ -4037,6 +4062,7 @@ __metadata:
"@rnx-kit/eslint-config": "*"
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
"@types/fs-extra": ^9.0.0
"@types/istextorbinary": ^2.3.0
"@types/node": ^20.0.0
@ -4065,6 +4091,7 @@ __metadata:
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tools-node": ^2.0.0
"@rnx-kit/tsconfig": "*"
"@types/babel__core": ^7.0.0
"@types/babel__helper-plugin-utils": ^7.0.0
"@types/babel__template": ^7.0.0
@ -4092,6 +4119,7 @@ __metadata:
"@react-native/metro-config": ^0.72.0
"@rnx-kit/eslint-config": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
eslint: ^8.23.0
prettier: ^3.0.0
react: 18.2.0
@ -4111,6 +4139,7 @@ __metadata:
"@rnx-kit/eslint-config": "*"
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
"@types/node": ^20.0.0
"@types/yargs": ^16.0.0
eslint: ^8.23.0
@ -4130,6 +4159,7 @@ __metadata:
resolution: "@rnx-kit/react-native-host@workspace:packages/react-native-host"
dependencies:
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
prettier: ^3.0.0
peerDependencies:
react-native: ">=0.66"
@ -4144,6 +4174,7 @@ __metadata:
"@rnx-kit/eslint-config": "*"
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
"@types/jest": ^29.2.1
"@types/node": ^20.0.0
babel-plugin-codegen: ^4.0.0
@ -4175,6 +4206,7 @@ __metadata:
"@rnx-kit/eslint-config": "*"
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
"@types/fast-levenshtein": 0.0.4
"@types/node": ^20.0.0
chalk: ^4.1.0
@ -4196,6 +4228,7 @@ __metadata:
resolution: "@rnx-kit/scripts@workspace:scripts"
dependencies:
"@eslint/js": ^8.33.0
"@rnx-kit/tsconfig": "workspace:*"
"@types/jest": ^29.2.1
"@types/node": ^20.0.0
"@types/yargs": ^16.0.0
@ -4220,6 +4253,7 @@ __metadata:
"@rnx-kit/eslint-config": "*"
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
eslint: ^8.23.0
jest: ^29.2.1
prettier: ^3.0.0
@ -4253,6 +4287,7 @@ __metadata:
"@rnx-kit/react-native-test-app-msal": "workspace:*"
"@rnx-kit/scripts": "workspace:*"
"@rnx-kit/third-party-notices": "workspace:*"
"@rnx-kit/tsconfig": "workspace:*"
"@types/react": ^18.0.0
eslint: ^8.23.0
jest: ^29.2.1
@ -4278,6 +4313,7 @@ __metadata:
"@rnx-kit/metro-serializer": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tools-node": ^2.0.0
"@rnx-kit/tsconfig": "*"
"@types/jest": ^29.2.1
"@types/node": ^20.0.0
"@types/yargs": ^16.0.0
@ -4300,6 +4336,7 @@ __metadata:
"@rnx-kit/eslint-config": "*"
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
"@types/node": ^20.0.0
eslint: ^8.23.0
jest: ^29.2.1
@ -4315,6 +4352,7 @@ __metadata:
"@rnx-kit/eslint-config": "*"
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
"@types/node": ^20.0.0
eslint: ^8.23.0
jest: ^29.2.1
@ -4331,6 +4369,7 @@ __metadata:
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tools-node": ^2.0.1
"@rnx-kit/tsconfig": "*"
"@types/node": ^20.0.0
eslint: ^8.23.0
jest: ^29.2.1
@ -4350,6 +4389,7 @@ __metadata:
"@rnx-kit/eslint-config": "*"
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tsconfig": "*"
"@types/node": ^20.0.0
eslint: ^8.23.0
fast-glob: ^3.2.7
@ -4362,6 +4402,14 @@ __metadata:
languageName: unknown
linkType: soft
"@rnx-kit/tsconfig@*, @rnx-kit/tsconfig@workspace:*, @rnx-kit/tsconfig@workspace:packages/tsconfig":
version: 0.0.0-use.local
resolution: "@rnx-kit/tsconfig@workspace:packages/tsconfig"
dependencies:
prettier: ^3.0.0
languageName: unknown
linkType: soft
"@rnx-kit/typescript-service@^1.5.7, @rnx-kit/typescript-service@workspace:packages/typescript-service":
version: 0.0.0-use.local
resolution: "@rnx-kit/typescript-service@workspace:packages/typescript-service"
@ -4370,6 +4418,7 @@ __metadata:
"@rnx-kit/jest-preset": "*"
"@rnx-kit/scripts": "*"
"@rnx-kit/tools-node": ^2.0.0
"@rnx-kit/tsconfig": "*"
"@types/node": ^20.0.0
chalk: ^4.1.0
eslint: ^8.23.0