-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
54 lines (52 loc) · 1.21 KB
/
Copy patheslint.config.mjs
File metadata and controls
54 lines (52 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import js from "@eslint/js";
import globals from "globals";
const rules = {
...js.configs.recommended.rules,
"no-unused-vars": [
"error",
{ caughtErrors: "none", argsIgnorePattern: "^_" },
],
eqeqeq: ["error", "smart"],
"prefer-const": "error",
};
export default [
{
ignores: [
"**/node_modules/**",
// the abap2UI5 checkout the e2e job builds its backend from
".abap2ui5/**",
"**/dist/**",
// the BSP scripts/build-bsp.mjs writes - generated pages
"out/**",
"playwright-report/**",
"test-results/**",
],
},
// UI5 modules: the example apps and the card, run in the browser
{
files: ["*/webapp/**/*.js"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "script",
globals: { ...globals.browser, sap: "readonly" },
},
rules,
},
// tooling
{
files: ["**/*.mjs"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: globals.node,
},
rules,
},
// e2e tests - the functions passed to page.evaluate( ) run in the page
{
files: ["test/e2e/**/*.mjs"],
languageOptions: {
globals: { ...globals.node, ...globals.browser, sap: "readonly" },
},
},
];