libpdfviewer/eslint.config.js
2024-04-22 18:26:53 -04:00

33 lines
754 B
JavaScript

import js from "@eslint/js";
import globals from "globals";
export default [
js.configs.recommended,
{
languageOptions: {
globals: {
channel: "readonly",
...globals.browser
},
ecmaVersion: 2022,
sourceType: "module"
},
rules: {
indent: ["error", 4],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
"no-unused-vars": ["error", {caughtErrors: "none"}],
"no-var": ["error"]
},
},
{
ignores: [
"app/build/",
"app/src/*/assets/viewer",
"releases/"
]
}
];