mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
33 lines
751 B
JavaScript
33 lines
751 B
JavaScript
|
|
import globals from "globals";
|
||
|
|
import pluginJs from "@eslint/js";
|
||
|
|
|
||
|
|
/** @type {import('eslint').Linter.Config[]} */
|
||
|
|
export default [
|
||
|
|
{
|
||
|
|
files: ["**/*.js"],
|
||
|
|
languageOptions: {
|
||
|
|
sourceType: "commonjs",
|
||
|
|
globals: {
|
||
|
|
...globals.node,
|
||
|
|
...globals.jest, // Add Jest globals
|
||
|
|
},
|
||
|
|
},
|
||
|
|
rules: {
|
||
|
|
"no-unused-vars": ["error", {
|
||
|
|
"argsIgnorePattern": "^_",
|
||
|
|
"varsIgnorePattern": "^_",
|
||
|
|
"caughtErrors": "all", // Ignore all catch clause parameters
|
||
|
|
"caughtErrorsIgnorePattern": "^_" // Ignore catch clause parameters that start with _
|
||
|
|
}],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
{
|
||
|
|
languageOptions: {
|
||
|
|
globals: {
|
||
|
|
...globals.browser,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
pluginJs.configs.recommended,
|
||
|
|
];
|