Skip to content

Commit bdcec90

Browse files
Enable tseslint.configs.recommendedTypeChecked
1 parent 75d38a5 commit bdcec90

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

eslint.config.mjs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ const compat = new FlatCompat({
1212
});
1313

1414
export default tseslint.config(
15-
globalIgnores(["dist/", "node_modules/", "jest.config.ts", "eslint.config.mjs", "build.mjs"]),
15+
globalIgnores(["dist/", "node_modules/", "script/", "jest.config.ts", "eslint.config.mjs", "build.mjs"]),
1616
...compat.plugins("no-async-foreach"),
1717
github.getFlatConfigs().recommended,
1818
...github.getFlatConfigs().typescript,
19+
tseslint.configs.recommendedTypeChecked,
1920
{
2021
extends: [eslint.configs.recommended, tseslint.configs.recommended],
2122
},
@@ -70,13 +71,19 @@ export default tseslint.config(
7071
"one-var": ["error", "never"],
7172
"@typescript-eslint/restrict-template-expressions": "off",
7273
},
73-
"settings": {
74+
settings: {
7475
"import/parsers": {
7576
"@typescript-eslint/parser": [".ts", ".tsx"]
7677
},
7778
"import/resolver": {
7879
"typescript": {}
7980
}
8081
},
82+
languageOptions: {
83+
parserOptions: {
84+
projectService: true,
85+
tsconfigRootDir: import.meta.dirname,
86+
},
87+
},
8188
},
8289
);

src/deserialize.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export function camelize(_: string, value: unknown): unknown {
33
for (const k in value) {
44
if (/-./.exec(k)) {
55
const l = k.replace(/-./g, (x) => x[1].toUpperCase());
6+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
67
value[l] = value[k];
78
delete value[k];
89
}

0 commit comments

Comments
 (0)