xref: /plugin/bpmnio/eslint.config.js (revision 9ff8d41c7727ff9fa896ee8f49e170f6b8272716)
1import globals from "globals";
2
3export default [
4    {
5        ignores: ["vendor/**"],
6    },
7    {
8        files: ["script.js", "script/**/*.js"],
9        languageOptions: {
10            ecmaVersion: 2020,
11            sourceType: "script",
12            globals: {
13                ...globals.browser,
14                ...globals.jquery,
15                BpmnJS: "readonly",
16                DmnJS: "readonly",
17                DmnJSViewer: "readonly",
18            },
19        },
20        rules: {
21            "no-unused-vars": "warn",
22            "no-undef": "error",
23            "eqeqeq": "warn",
24            "no-console": ["warn", { allow: ["warn", "error"] }],
25            "curly": ["warn", "multi-line"],
26            "no-eval": "error",
27            "no-implied-eval": "error",
28        },
29    },
30];
31