25 lines
644 B
JavaScript
25 lines
644 B
JavaScript
import js from "@eslint/js";
|
|
import globals from "globals";
|
|
import prettierConfig from "eslint-config-prettier";
|
|
|
|
export default [
|
|
{
|
|
ignores: ["dist/", "node_modules/", "legacy/", "sw.js"]
|
|
},
|
|
js.configs.recommended,
|
|
prettierConfig,
|
|
{
|
|
languageOptions: {
|
|
ecmaVersion: 2022,
|
|
sourceType: "module",
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node
|
|
}
|
|
},
|
|
rules: {
|
|
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
|
|
"no-console": ["warn", { "allow": ["warn", "error"] }]
|
|
}
|
|
}
|
|
];
|