Chrysoblog/eslint.config.js

30 lines
569 B
JavaScript
Raw Permalink Normal View History

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,
{
rules: {
2024-09-28 23:59:37 -07:00
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
},
],
},
},
2024-09-11 00:51:05 -07:00
];