Typescript-Eslint Error

Parsing error: ESLint was configured to run on <tsconfigRootDir>/tailwind.config.js using parserOptions.project: <tsconfigRootDir>/tsconfig.json However, that TSConfig does not include this file. Either: - Change ESLint's list of included files to not include this file - Change that TSConfig to include this file - Create a new TSConfig that includes this file and include it in your parserOptions.project
/** @type {import('tailwindcss').Config} */
/** @type {import('tailwindcss').Config} */
Above is in tailwind.config.js file. Error shows on this very first line, something about it's import maybe because my other t3 project doesn't have this problem
import { type Config } from "tailwindcss";

export default {
content: ["./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [],
} satisfies Config;
import { type Config } from "tailwindcss";

export default {
content: ["./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [],
} satisfies Config;
above is default t3 tailwind.config.ts file repo: https://github.com/Apestein/ui-playground
1 Reply
Luc Ledo
Luc LedoOP2y ago
seems I can just put the tailwind.config.js file in .eslintignore but I don't know if this will do anything unintentional. Actually I don't understand why the tailwind.config file needs to be in typescript at all...
Want results from more Discord servers?
Add your server