1 | module.exports = {
|
2 | extends: [
|
3 | "eslint:recommended",
|
4 | "plugin:import/errors",
|
5 | "plugin:import/warnings",
|
6 | ],
|
7 | env: {
|
8 | es6: true,
|
9 | jest: true,
|
10 | node: true,
|
11 | },
|
12 | settings: {
|
13 | "import/resolver": {
|
14 | node: {
|
15 | extensions: [".js"],
|
16 | },
|
17 | },
|
18 | },
|
19 | parser: "babel-eslint",
|
20 | parserOptions: {
|
21 | ecmaVersion: 2018,
|
22 | sourceType: "module",
|
23 | },
|
24 | rules: {
|
25 | "no-alert": "error",
|
26 | "import/order": "error",
|
27 | "no-multiple-empty-lines": [
|
28 | "error",
|
29 | {
|
30 | max: 1,
|
31 | maxEOF: 1,
|
32 | maxBOF: 0,
|
33 | },
|
34 | ],
|
35 | semi: ["error", "always"],
|
36 | },
|
37 | globals: {
|
38 | globalThis: true,
|
39 | },
|
40 | plugins: ["import"],
|
41 | ignorePatterns: ["node_modules/", "keycloak-scripts/"],
|
42 | };
|