Skip to content

Commit 34a4f93

Browse files
committed
chore: upgrade to eslint 9 🎉
1 parent 129a55e commit 34a4f93

File tree

248 files changed

+2174
-1049
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+2174
-1049
lines changed

automation/run-e2e/.eslintrc.cjs

Lines changed: 0 additions & 12 deletions
This file was deleted.

automation/run-e2e/eslint.config.mjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { defineConfig } from "eslint/config";
2+
import globals from "globals";
3+
import js from "@eslint/js";
4+
5+
export default defineConfig([
6+
{
7+
files: ["**/*.js"],
8+
languageOptions: {
9+
globals: {
10+
...globals.node,
11+
...globals.es2021
12+
},
13+
ecmaVersion: 2021,
14+
sourceType: "module"
15+
}
16+
},
17+
{
18+
files: ["**/*.js"],
19+
plugins: { js },
20+
extends: ["js/recommended"],
21+
rules: {
22+
"no-unused-vars": "warn"
23+
}
24+
}
25+
]);

automation/run-e2e/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"url": "https://github.com/mendix/web-widgets.git"
1717
},
1818
"scripts": {
19-
"lint": "eslint --ext .mjs .",
19+
"lint": "eslint .",
2020
"format": "prettier --write .",
2121
"report:merge": "pnpm dlx ctrf merge ctrf --output merged-report.json --keep-reports"
2222
},
@@ -32,9 +32,11 @@
3232
"yargs-parser": "^21.1.1"
3333
},
3434
"devDependencies": {
35+
"globals": "^16.0.0",
36+
"@eslint/js": "^9.24.0",
3537
"@axe-core/playwright": "^4.10.1",
3638
"@playwright/test": "^1.51.1",
37-
"@types/node": "^20.12.7",
39+
"@types/node": "*",
3840
"eslint-plugin-playwright": "^2.2.0",
3941
"playwright-ctrf-json-reporter": "^0.0.20"
4042
}

automation/run-e2e/utils/read-excel.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable no-console */
1+
22
const readXlsxFile = require("read-excel-file/node");
33

44
const readExcelFile = filename => {

automation/snapshot-generator/.eslintrc.json

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { defineConfig } from "eslint/config";
2+
import globals from "globals";
3+
import js from "@eslint/js";
4+
5+
export default defineConfig([
6+
{
7+
files: ["**/*.js"],
8+
languageOptions: {
9+
globals: {
10+
...globals.node,
11+
...globals.es2021
12+
},
13+
ecmaVersion: 2021,
14+
sourceType: "module"
15+
}
16+
},
17+
{
18+
files: ["**/*.js"],
19+
plugins: { js },
20+
extends: ["js/recommended"]
21+
}
22+
]);

automation/snapshot-generator/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
"license": "MIT",
1414
"scripts": {
1515
"format": "prettier --write .",
16-
"lint": "eslint --ext .js lib/ bin/"
16+
"lint": "eslint lib/ bin/"
1717
},
1818
"dependencies": {
1919
"chance": "^1.1.12"
2020
},
2121
"devDependencies": {
22+
"globals": "^16.0.0",
23+
"@eslint/js": "^9.24.0",
2224
"@mendix/prettier-config-web-widgets": "workspace:*"
2325
}
2426
}

automation/utils/.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

automation/utils/.eslintrc.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

automation/utils/eslint.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import config from "@mendix/eslint-config-web-widgets/widget-ts.mjs";
2+
3+
export default [
4+
...config,
5+
{
6+
ignores: ["src/changelog-parser/parser/module/module.js", "src/changelog-parser/parser/widget/widget.js"]
7+
}
8+
];

0 commit comments

Comments
 (0)