gamja/eslint.config.js

27 lines
448 B
JavaScript
Raw Normal View History

2024-09-28 15:45:45 -04:00
import globals from "globals";
import js from "@eslint/js";
export default [
{
2024-09-28 15:49:13 -04:00
ignores: ["dist/"],
2024-09-28 15:57:35 -04:00
},
js.configs.recommended,
{
2024-09-28 15:45:45 -04:00
languageOptions: {
globals: {
...globals.browser,
"process": "readonly",
},
},
rules: {
"no-case-declarations": "off",
"no-unused-vars": ["error", {
args: "none",
caughtErrorsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
}],
2024-09-28 16:07:39 -04:00
"no-var": "error",
2024-09-28 15:45:45 -04:00
},
},
];