Skip to content

Commit 20d740f

Browse files
authored
chore(monorepo): swap default and lint tsconfig files (#7378)
* chore: remove unused allowJs from tsconfig, remove unparseable comment * chore: run script that swaps tsconfig lint with default (build) tsconfig * chore: disable spec file typecheks for some packages * chore: remove typecheck from lint
1 parent 84622f9 commit 20d740f

File tree

281 files changed

+560
-579
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

281 files changed

+560
-579
lines changed

configs/testing-library-compass/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ module.exports = {
33
extends: ['@mongodb-js/eslint-config-compass'],
44
parserOptions: {
55
tsconfigRootDir: __dirname,
6-
project: ['./tsconfig-lint.json'],
6+
project: ['./tsconfig.json'],
77
},
88
};

configs/testing-library-compass/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
},
3131
"types": "./dist/index.d.ts",
3232
"scripts": {
33-
"compile": "tsc -p tsconfig.json",
34-
"typecheck": "tsc -p tsconfig-lint.json --noEmit",
33+
"compile": "tsc -p tsconfig-build.json",
34+
"typecheck": "tsc -p tsconfig.json --noEmit",
3535
"eslint": "eslint-compass",
3636
"prettier": "prettier-compass",
3737
"lint": "npm run eslint . && npm run prettier -- --check .",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["src/**/*"],
4+
"exclude": ["./src/**/*.spec.*"]
5+
}

configs/testing-library-compass/tsconfig-lint.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

configs/testing-library-compass/tsconfig.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
"extends": "@mongodb-js/tsconfig-compass/tsconfig.react.json",
33
"compilerOptions": {
44
"outDir": "dist",
5-
// Because of the recursive deps
65
"skipLibCheck": true
76
},
8-
"include": ["src/**/*"],
9-
"exclude": ["./src/**/*.spec.*"]
7+
"include": ["**/*"],
8+
"exclude": ["node_modules", "dist"]
109
}

configs/webpack-config-compass/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ module.exports = {
44
extends: ['@mongodb-js/eslint-config-compass'],
55
parserOptions: {
66
tsconfigRootDir: __dirname,
7-
project: ['./tsconfig-lint.json'],
7+
project: ['./tsconfig.json'],
88
},
99
};

configs/webpack-config-compass/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
"scripts": {
3535
"bootstrap": "npm run compile",
3636
"prepublishOnly": "npm run compile && compass-scripts check-exports-exist",
37-
"compile": "tsc -p tsconfig.json",
37+
"compile": "tsc -p tsconfig-build.json",
3838
"postcompile": "gen-esm-wrapper . ./dist/.esm-wrapper.mjs",
39-
"typecheck": "tsc -p tsconfig-lint.json --noEmit",
39+
"typecheck": "tsc -p tsconfig.json --noEmit",
4040
"eslint": "eslint-compass",
4141
"prettier": "prettier-compass",
4242
"lint": "npm run eslint . && npm run prettier -- --check .",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["src/**/*"],
4+
"exclude": ["./src/**/*.spec.*"]
5+
}

configs/webpack-config-compass/tsconfig-lint.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

configs/webpack-config-compass/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"outDir": "dist",
55
"lib": ["ES2020"]
66
},
7-
"include": ["src/**/*"],
8-
"exclude": ["./src/**/*.spec.*"]
7+
"include": ["**/*"],
8+
"exclude": ["node_modules", "dist"]
99
}

0 commit comments

Comments
 (0)