2024-09-28 15:30:11 -07:00
|
|
|
import globals from "globals";
|
|
|
|
import pluginJs from "@eslint/js";
|
|
|
|
import tseslint from "typescript-eslint";
|
|
|
|
|
2024-09-11 00:51:05 -07:00
|
|
|
|
|
|
|
export default [
|
2024-09-28 15:30:11 -07:00
|
|
|
{
|
|
|
|
files: ["**/*.{js,mjs,cjs,ts}"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
ignores: ["build/", ".svelte-kit/"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
languageOptions: { globals: {...globals.browser, ...globals.node} }
|
|
|
|
},
|
|
|
|
pluginJs.configs.recommended,
|
|
|
|
...tseslint.configs.recommended,
|
2024-09-28 15:41:04 -07:00
|
|
|
{
|
|
|
|
rules: {
|
2024-09-28 23:59:37 -07:00
|
|
|
"@typescript-eslint/no-unused-vars": [
|
2024-09-28 15:41:04 -07:00
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"argsIgnorePattern": "^_",
|
|
|
|
"varsIgnorePattern": "^_",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2024-09-11 00:51:05 -07:00
|
|
|
];
|