2024-05-26 16:37:29 +00:00
|
|
|
import eslint from "@eslint/js";
|
|
|
|
import tseslint from "typescript-eslint";
|
|
|
|
import tailwind from "eslint-plugin-tailwindcss";
|
|
|
|
|
|
|
|
export default tseslint.config(
|
|
|
|
eslint.configs.recommended,
|
|
|
|
...tseslint.configs.strict,
|
|
|
|
...tseslint.configs.stylistic,
|
|
|
|
...tailwind.configs["flat/recommended"],
|
|
|
|
{
|
|
|
|
rules: {
|
|
|
|
"tailwindcss/no-contradicting-classname": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
callees: ["cx"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"tailwindcss/no-custom-classname": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
callees: ["cx"],
|
2024-05-29 14:40:20 +00:00
|
|
|
whitelist: ["material-icons"],
|
2024-05-26 16:37:29 +00:00
|
|
|
},
|
|
|
|
],
|
2024-06-11 17:20:28 +00:00
|
|
|
// TODO: make this more strict by removing later
|
|
|
|
"no-unused-vars": "off",
|
|
|
|
"@typescript-eslint/no-unused-vars": "off",
|
2024-05-26 16:37:29 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
);
|