Saurabh
Saurabh
TTCTheo's Typesafe Cult
Created by Saurabh on 8/23/2024 in #questions
I am getting error in eslint. I tried searching for solutions but couldn't find any. Can anyone help
even specifying eslint version to 8.57 gives the same error
Linting and checking validity of types ..Failed to compile.

.eslintrc.cjs:8:13
Type error: Type 'string' has no properties in common with type 'Plugin'.

6 | tsconfigRootDir: __dirname,
7 | },
> 8 | plugins: ["@typescript-eslint"],
| ^
9 | extends: [
10 | "next/core-web-vitals",
11 | "plugin:@typescript-eslint/recommended",
Linting and checking validity of types ..Failed to compile.

.eslintrc.cjs:8:13
Type error: Type 'string' has no properties in common with type 'Plugin'.

6 | tsconfigRootDir: __dirname,
7 | },
> 8 | plugins: ["@typescript-eslint"],
| ^
9 | extends: [
10 | "next/core-web-vitals",
11 | "plugin:@typescript-eslint/recommended",
4 replies