EvalueTonSavoir/client/eslint.config.js

34 lines
898 B
JavaScript
Raw Normal View History

import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";
/** @type {import('eslint').Linter.Config[]} */
export default [
{
2025-01-31 15:48:38 -05:00
ignores: ["dist/**"], // Place this at the root level
},
{
files: ["src/**/*.{js,mjs,cjs,ts,jsx,tsx}"],
// ignores: ["./dist/**"],
languageOptions: {
globals: globals.browser,
},
rules: {
"no-unused-vars": ["error", {
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_" // Ignore catch clause parameters that start with _
}],
},
settings: {
react: {
version: "detect", // Automatically detect the React version
},
},
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
];