type errors even after disabling

22:32 Error: Unsafe assignment of an `any` value. @typescript-eslint/no-unsafe-assignment
36:9 Error: Unsafe assignment of an `any` value. @typescript-eslint/no-unsafe-assignment
43:11 Error: Unsafe assignment of an `any` value. @typescript-eslint/no-unsafe-assignment
43:23 Error: Unsafe member access .predicted_class on an `any` value. @typescript-eslint/no-unsafe-member-access
46:15 Warning: 'result' is assigned a value but never used. @typescript-eslint/no-unused-vars

./src/app/page.tsx
16:47 Warning: Unexpected any. Specify a different type. @typescript-eslint/no-explicit-any
19:72 Error: Invalid type "any" of template literal expression. @typescript-eslint/restrict-template-expressions
19:72 Error: Unsafe member access .key on an `any` value. @typescript-eslint/no-unsafe-member-access
21:25 Error: Unsafe assignment of an `any` value. @typescript-eslint/no-unsafe-assignment
22:33 Error: Unsafe argument of type `any` assigned to a parameter of type `SetStateAction<string>`. @typescript-eslint/no-unsafe-argument
22:33 Error: Unsafe member access .prediction on an `any` value. @typescript-eslint/no-unsafe-member-access

./src/lib/mongo/mongodb.ts
15:10 Error: Expected non-Promise value in a boolean conditional. @typescript-eslint/no-misused-promises
22:32 Error: Unsafe assignment of an `any` value. @typescript-eslint/no-unsafe-assignment
36:9 Error: Unsafe assignment of an `any` value. @typescript-eslint/no-unsafe-assignment
43:11 Error: Unsafe assignment of an `any` value. @typescript-eslint/no-unsafe-assignment
43:23 Error: Unsafe member access .predicted_class on an `any` value. @typescript-eslint/no-unsafe-member-access
46:15 Warning: 'result' is assigned a value but never used. @typescript-eslint/no-unused-vars

./src/app/page.tsx
16:47 Warning: Unexpected any. Specify a different type. @typescript-eslint/no-explicit-any
19:72 Error: Invalid type "any" of template literal expression. @typescript-eslint/restrict-template-expressions
19:72 Error: Unsafe member access .key on an `any` value. @typescript-eslint/no-unsafe-member-access
21:25 Error: Unsafe assignment of an `any` value. @typescript-eslint/no-unsafe-assignment
22:33 Error: Unsafe argument of type `any` assigned to a parameter of type `SetStateAction<string>`. @typescript-eslint/no-unsafe-argument
22:33 Error: Unsafe member access .prediction on an `any` value. @typescript-eslint/no-unsafe-member-access

./src/lib/mongo/mongodb.ts
15:10 Error: Expected non-Promise value in a boolean conditional. @typescript-eslint/no-misused-promises
my .eslintrc.cjs
...
rules: {
"@typescript-eslint/consistent-type-imports": [
"warn",
{
prefer: "type-imports",
fixStyle: "inline-type-imports",
},
],
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
"@typescript-eslint/no-misused-promises": [
2,
{
checksVoidReturn: { attributes: false },
},
],
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/restrict-template-expressions": "warn",
},
};

module.exports = config;
...
rules: {
"@typescript-eslint/consistent-type-imports": [
"warn",
{
prefer: "type-imports",
fixStyle: "inline-type-imports",
},
],
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
"@typescript-eslint/no-misused-promises": [
2,
{
checksVoidReturn: { attributes: false },
},
],
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/restrict-template-expressions": "warn",
},
};

module.exports = config;
0 Replies
No replies yetBe the first to reply to this messageJoin