koboprice/eslint.config.js

24 lines
464 B
JavaScript
Raw Permalink Normal View History

2024-07-14 16:49:40 +03:00
import js from "@eslint/js";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import globals from "globals";
export default [
2024-07-14 22:36:08 +03:00
{
2024-07-17 14:21:14 +03:00
ignores: ["dist", "userscript"],
2024-07-14 16:49:40 +03:00
},
2024-07-14 22:36:08 +03:00
eslintPluginPrettierRecommended,
js.configs.recommended,
2024-07-14 16:49:40 +03:00
{
rules: {
"no-unused-vars": "warn",
"no-undef": "warn",
},
languageOptions: {
globals: {
...globals.browser,
l: "readonly",
},
},
},
];