Typescript-Eslint Error

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;
why does the tailwind.config.ts file need to be in typescript and written like this? typescript-eslint gives a parsing error when I try to write it the normal way
/** @type {import('tailwindcss').Config} */
module.exports = {
...
}
/** @type {import('tailwindcss').Config} */
module.exports = {
...
}
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server