Skip to content

Commit a051cb9

Browse files
committed
build: updated deps and configs
1 parent 1932d3e commit a051cb9

File tree

6 files changed

+104
-81
lines changed

6 files changed

+104
-81
lines changed

packages/eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"eslint-plugin-tsdoc": "^0.5.0",
2727
"prettier": "^3.7.4",
2828
"typescript": "^5.9.3",
29-
"typescript-eslint": "^8.50.1"
29+
"typescript-eslint": "^8.51.0"
3030
},
3131
"scripts": {
3232
"build": "tsc",

packages/eslint-config/src/eslint.config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import prettierConfig from "eslint-config-prettier/flat";
1010
import prettierRecommended from "eslint-plugin-prettier/recommended";
1111
import {Linter} from "eslint";
1212

13-
const consumerTsconfig = path.resolve(process.cwd(), "tsconfig.json"),
13+
const consumerDir = process.cwd(),
14+
consumerTsconfig = path.resolve(consumerDir, "tsconfig.json"),
1415
parserProject = fs.existsSync(consumerTsconfig) ? consumerTsconfig : undefined;
1516

1617
export default tseslint.config(
@@ -30,7 +31,10 @@ export default tseslint.config(
3031
},
3132
languageOptions: {
3233
parser: tseslint.parser,
33-
parserOptions: parserProject ? { project: parserProject } : undefined,
34+
parserOptions: parserProject ? {
35+
project: parserProject,
36+
tsconfigRootDir: consumerDir,
37+
} : undefined,
3438
},
3539
rules: {
3640
// --- stylistic ---

packages/tsconfig/tsconfig.base.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
"removeComments": true,
2929
"strict": true,
3030
"strictNullChecks": true,
31+
"strictFunctionTypes": true,
32+
"strictBindCallApply": true,
33+
"strictPropertyInitialization": true,
3134
"target": "ES2021",
3235
"types": ["node"],
3336
"useUnknownInCatchVariables": true

packages/webpack-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"rimraf": "^6.1.2",
4848
"terser-webpack-plugin": "^5.3.16",
4949
"typescript": "^5.9.3",
50-
"typescript-eslint": "^8.50.1",
50+
"typescript-eslint": "^8.51.0",
5151
"webpack": "^5.104.1",
5252
"webpack-bundle-analyzer": "^5.1.0",
5353
"webpack-cli": "^6.0.1"

packages/webpack-config/tsconfig.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@
3737
/* Raise error on expressions and declarations with an implied 'any' type. */
3838
"strictNullChecks": true,
3939
/* Enable strict null checks. */
40-
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
41-
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
40+
"strictFunctionTypes": true, /* Enable strict checking of function types. */
41+
"strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
4242
"strictPropertyInitialization": true,
4343
/* Enable strict checking of property initialization in classes. */
44-
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
44+
"noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
4545
"alwaysStrict": true,
4646
/* Parse in strict mode and emit "use strict" for each source file. */
4747

4848
/* Additional Checks */
49-
// "noUnusedLocals": true, /* Report errors on unused locals. */
50-
// "noUnusedParameters": true, /* Report errors on unused parameters. */
51-
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
49+
"noUnusedLocals": true, /* Report errors on unused locals. */
50+
"noUnusedParameters": true, /* Report errors on unused parameters. */
51+
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
5252
"noFallthroughCasesInSwitch": true,
5353
/* Report errors for fallthrough cases in switch statement. */
5454

0 commit comments

Comments
 (0)