34 lines
1007 B
JavaScript
34 lines
1007 B
JavaScript
import js from "@eslint/js";
|
|
import globals from "globals";
|
|
import tseslint from "typescript-eslint";
|
|
import pluginReact from "eslint-plugin-react";
|
|
|
|
export default [
|
|
{
|
|
ignores: [
|
|
"dist/**",
|
|
"**/*.config.js", // Ignoring common config files like tailwind.config.js, postcss.config.js
|
|
"**/vite-env.d.ts", // Ignoring Vite specific type declarations
|
|
"src/utils/supabase-admin.js" // Ignoring specific js file that seems to be a utility
|
|
]
|
|
},
|
|
{ files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"], plugins: { js }, rules: js.configs.recommended.rules },
|
|
{ files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"], languageOptions: { globals: { ...globals.browser, ...globals.node } } },
|
|
...tseslint.configs.recommended,
|
|
{
|
|
...pluginReact.configs.flat.recommended,
|
|
settings: {
|
|
react: {
|
|
version: "detect"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
|
|
rules: {
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/jsx-uses-react": "off",
|
|
}
|
|
}
|
|
];
|