libpdfviewer/eslint.config.js
octocorvus 1a01da8abb exclude top-level build directory from eslint checks
Some javascript files can be present there, causing build to fail due to
eslint checks.
2024-05-07 23:56:19 -04:00

34 lines
776 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",
"build/",
"releases/"
]
}
];