-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce
@tinkoff/typescript-config
package (#236)
- Loading branch information
Showing
9 changed files
with
85 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package-lock=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# @tinkoff/typescript-config | ||
|
||
Common TypeScript configuration for Tinkoff projects | ||
|
||
## Requirements | ||
|
||
TypeScript >= 5 is required. | ||
|
||
## Usage | ||
|
||
Install from npm | ||
|
||
```bash | ||
npm i --save-dev @tinkoff/typescript-config | ||
``` | ||
|
||
Install tsconfig for you application type: `@tsconfig/node18` for your Node.js v18 application or `@tsconfig/create-react-app` for CRA application. | ||
|
||
See full lest https://github.com/tsconfig/bases. | ||
|
||
```shell | ||
npm i --save-dev @tsconfig/node16 | ||
# or | ||
npm i --save-dev @tsconfig/node18 | ||
# or | ||
npm i --save-dev @tsconfig/create-react-app | ||
``` | ||
|
||
Create `tsconfig.json` at the project root | ||
|
||
```json | ||
{ | ||
"extends": ["@tinkoff/typescript-config", "@tsconfig/node18/tsconfig"] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"name": "@tinkoff/typescript-config", | ||
"version": "1.0.0", | ||
"description": "Tinkoff TypeScript config", | ||
"license": "Apache-2.0", | ||
"keywords": [ | ||
"typescript", | ||
"tsconfig" | ||
], | ||
"scripts": { | ||
"test": "tsc -p test/tsconfig.json --noEmit" | ||
}, | ||
"main": "tsconfig.base.json", | ||
"author": { | ||
"name": "Tinkoff Team", | ||
"email": "frontend@tinkoff.ru" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Tinkoff/linters.git" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"peerDependencies": { | ||
"typescript": ">=5.0.0" | ||
}, | ||
"devDependencies": { | ||
"typescript": "5.0.3" | ||
}, | ||
"dependencies": { | ||
"@tsconfig/strictest": "^2.0.0" | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": "../tsconfig.base.json", | ||
"compilerOptions": {}, | ||
"include": ["./index.ts"], | ||
"exclude": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": "@tsconfig/strictest", | ||
"compilerOptions": { | ||
"verbatimModuleSyntax": false | ||
} | ||
} |