Add typescript config package
Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
22
packages/tsconfig/base.json
Normal file
22
packages/tsconfig/base.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"display": "Default",
|
||||
"compilerOptions": {
|
||||
"composite": false,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"inlineSources": false,
|
||||
"isolatedModules": true,
|
||||
"moduleResolution": "node",
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"preserveWatchOutput": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"target": "ES2020",
|
||||
"module": "ESNext"
|
||||
},
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
13
packages/tsconfig/library.json
Normal file
13
packages/tsconfig/library.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"display": "Library",
|
||||
"extends": "./base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"sourceMap": true,
|
||||
"rootDir": "./src",
|
||||
"outDir": "./dist"
|
||||
}
|
||||
}
|
||||
14
packages/tsconfig/package.json
Normal file
14
packages/tsconfig/package.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "@probo/tsconfig",
|
||||
"version": "0.0.1",
|
||||
"description": "Probo default typescript configs",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"base.json",
|
||||
"react.json",
|
||||
"library.json"
|
||||
],
|
||||
"license": "MIT"
|
||||
}
|
||||
12
packages/tsconfig/react.json
Normal file
12
packages/tsconfig/react.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"display": "React",
|
||||
"extends": "./base.json",
|
||||
"compilerOptions": {
|
||||
"jsx": "react-jsx",
|
||||
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
||||
"module": "ESNext",
|
||||
"target": "ESNext",
|
||||
"noEmit": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user