Skip to content

Commit ba5d06c

Browse files
committed
Update eslint.config.js
1 parent 62fff40 commit ba5d06c

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

eslint.config.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ export default [
88
js.configs.recommended,
99
eslintPluginPrettierRecommended,
1010
importPlugin.flatConfigs.recommended,
11+
...tseslint.configs.recommendedTypeChecked.map((config) => {
12+
return {
13+
files: ["lib/**"],
14+
...config,
15+
};
16+
}),
1117
{
1218
languageOptions: {
1319
ecmaVersion: "latest",
@@ -33,12 +39,11 @@ export default [
3339
"no-trailing-spaces": "error",
3440
"prefer-const": "error",
3541
semi: "error",
42+
43+
// For now we want to focus on the exposed types rather than the internals.
44+
"@typescript-eslint/no-unsafe-assignment": 0,
45+
"@typescript-eslint/no-unsafe-call": 0,
46+
"@typescript-eslint/no-unsafe-member-access": 0,
3647
},
3748
},
38-
...tseslint.configs.recommendedTypeChecked.map(config => {
39-
return {
40-
files: ["lib/**"],
41-
...config
42-
}
43-
})
4449
];

0 commit comments

Comments
 (0)