mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
35 lines
822 B
JavaScript
35 lines
822 B
JavaScript
import { dirname } from "path";
|
|
import { fileURLToPath } from "url";
|
|
import { FlatCompat } from "@eslint/eslintrc";
|
|
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = dirname(__filename);
|
|
|
|
const compat = new FlatCompat({
|
|
baseDirectory: __dirname,
|
|
});
|
|
|
|
const eslintConfig = [
|
|
...compat.config({
|
|
extends: ["next/core-web-vitals", "next/typescript", "prettier"],
|
|
ignores: [
|
|
"**/node_modules/**",
|
|
"**/.next/**",
|
|
"storage/**"
|
|
],
|
|
rules: {
|
|
"react-refresh/only-export-components": "off", // Disabled the rule
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn",
|
|
{
|
|
argsIgnorePattern: "^_|error",
|
|
varsIgnorePattern: "^_|error",
|
|
},
|
|
],
|
|
"jsx-a11y/no-access-key": "off",
|
|
},
|
|
}),
|
|
];
|
|
|
|
export default eslintConfig;
|