mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
30 lines
796 B
JavaScript
30 lines
796 B
JavaScript
|
|
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 [
|
||
|
|
{
|
||
|
|
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
|
||
|
|
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,
|
||
|
|
];
|