Folo/eslint.config.mjs

43 lines
926 B
JavaScript

// @ts-check
import defineConfig, { GLOB_TS_SRC } from "eslint-config-hyoban"
export default defineConfig(
{
react: "vite",
tailwindCSS: true,
stylistic: {
quotes: "double",
arrowParens: true,
braceStyle: "1tbs",
lineBreak: "after",
},
lessOpinionated: true,
ignores: ["src/renderer/src/hono.ts"],
},
// fix later or just always ignore
{
rules: {
"no-console": ["error", { allow: ["warn", "error", "info"] }],
"unicorn/consistent-function-scoping": "warn",
"unicorn/prefer-module": "off",
"@typescript-eslint/no-floating-promises": "off",
},
settings: {
tailwindcss: {
callees: ["cn"],
whitelist: [
"center",
],
},
},
},
{
files: GLOB_TS_SRC,
rules: {
"@eslint-react/no-unstable-context-value": "warn",
"react-compiler/react-compiler": "warn",
},
},
)