CodeRED-Astra/frontend/eslint.config.js
JK-le-dev d8d57edd84
Some checks failed
Build and Deploy / Build Images and Deploy to Server (push) Has been cancelled
feat(daisyui): added that and fixed eslint
jeez theres a lot of garbage code in here
2025-11-07 11:26:36 -06:00

35 lines
846 B
JavaScript

import js from "@eslint/js";
import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
export default [
{
ignores: ["dist/**"],
},
js.configs.recommended,
{
files: ["**/*.{js,jsx}"],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
parserOptions: {
ecmaVersion: "latest",
ecmaFeatures: { jsx: true },
sourceType: "module",
},
},
plugins: {
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
"no-unused-vars": ["error", { varsIgnorePattern: "^[A-Z_]" }],
},
},
];