Skip to content

Commit

Permalink
chore: fix tsconfig usage problem, add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Apr 29, 2021
1 parent ebf3923 commit 0ecdefa
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-mdx/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base",
"extends": "../../tsconfig.lib",
"compilerOptions": {
"composite": true,
"rootDir": "src",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-mdx/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base",
"extends": "../../tsconfig.lib",
"compilerOptions": {
"composite": true,
"rootDir": "src",
Expand Down
10 changes: 7 additions & 3 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"extends": "./node_modules/@1stg/tsconfig/node",
// used by @pkgr/rollup and ESLint
"extends": "./tsconfig.lib",
"compilerOptions": {
"strictFunctionTypes": false,
"strictNullChecks": false
"baseUrl": ".",
"paths": {
"eslint-mdx": ["packages/eslint-mdx/src"],
"eslint-plugin-mdx": ["packages/eslint-plugin-mdx/src"]
}
}
}
10 changes: 0 additions & 10 deletions tsconfig.eslint.json

This file was deleted.

1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
// used by tsconfig-paths/register from synckit
"extends": "./tsconfig.base",
"compilerOptions": {
"noEmit": true
Expand Down
8 changes: 8 additions & 0 deletions tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
// used by all files but do not includes paths
"extends": "./node_modules/@1stg/tsconfig/node",
"compilerOptions": {
"strictFunctionTypes": false,
"strictNullChecks": false
}
}

0 comments on commit 0ecdefa

Please sign in to comment.