Skip to content

Commit 459de3f

Browse files
authored
Eslint next (#1525)
2 parents a2832af + d3d3601 commit 459de3f

File tree

312 files changed

+3699
-2493
lines changed

Some content is hidden

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

312 files changed

+3699
-2493
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: ["**/*.{,m,c}js"],
8+
languageOptions: {
9+
globals: {
10+
...globals.node,
11+
...globals.es2021
12+
},
13+
ecmaVersion: 2021,
14+
sourceType: "module"
15+
}
16+
},
17+
{
18+
files: ["**/*.{,m,c}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/scripts/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
{
22
"name": "@mendix/scripts",
33
"version": "0.1.0",
4-
"private": true,
5-
"license": "Apache-2.0",
64
"copyright": "© Mendix Technology BV 2025. All rights reserved.",
7-
"type": "module",
8-
"engines": {
9-
"node": ">=18.20.4"
10-
},
5+
"license": "Apache-2.0",
6+
"private": true,
117
"repository": {
128
"type": "git",
139
"url": "https://github.com/mendix/web-widgets.git"
1410
},
11+
"type": "module",
1512
"scripts": {
13+
"format": "prettier --write .",
1614
"lint": "echo 'Lint disabled for now, please update package scripts'",
1715
"lint:enableme": "eslint . --ext .mjs",
18-
"format": "prettier --write .",
19-
"root-script:format-staged": "pretty-quick --staged --config \"./.prettierrc.cjs\" --pattern \"**/{src,script,typings,test,**}/**/*.{cjs,mjs,js,jsx,ts,tsx,scss,html,xml,md,json}\"",
20-
"root-script:commitlint": "commitlint"
16+
"root-script:commitlint": "commitlint",
17+
"root-script:format-staged": "pretty-quick --staged --config \"./.prettierrc.cjs\" --pattern \"**/{src,script,typings,test,**}/**/*.{cjs,mjs,js,jsx,ts,tsx,scss,html,xml,md,json}\""
2118
},
2219
"dependencies": {
23-
"@commitlint/cli": "^17.8.1",
24-
"@commitlint/config-conventional": "^17.8.1",
20+
"@commitlint/cli": "^19.8.0",
21+
"@commitlint/config-conventional": "^19.8.0",
2522
"@mendix/prettier-config-web-widgets": "workspace:*",
26-
"pretty-quick": "^3.1.3"
23+
"pretty-quick": "^4.1.1"
2724
},
2825
"commitlint": {
2926
"extends": [
3027
"@commitlint/config-conventional"
3128
]
29+
},
30+
"engines": {
31+
"node": ">=18.20.4"
3232
}
3333
}

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: ["**/*.{,m,c}js"],
8+
languageOptions: {
9+
globals: {
10+
...globals.node,
11+
...globals.es2021
12+
},
13+
ecmaVersion: 2021,
14+
sourceType: "module"
15+
}
16+
},
17+
{
18+
files: ["**/*.{,m,c}js"],
19+
plugins: { js },
20+
extends: ["js/recommended"]
21+
}
22+
]);

automation/snapshot-generator/package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,21 @@
33
"version": "1.1.0",
44
"description": "Generate fake data snapshot in json",
55
"copyright": "© Mendix Technology BV 2025. All rights reserved.",
6+
"license": "MIT",
67
"main": "./lib/index.js",
78
"files": [
89
"lib"
910
],
10-
"engines": {
11-
"node": ">= 18.20.4"
12-
},
13-
"license": "MIT",
1411
"scripts": {
1512
"format": "prettier --write .",
16-
"lint": "eslint --ext .js lib/ bin/"
13+
"lint": "eslint lib/ bin/"
1714
},
1815
"dependencies": {
1916
"chance": "^1.1.12"
2017
},
2118
"devDependencies": {
22-
"@mendix/prettier-config-web-widgets": "workspace:*"
19+
"@eslint/js": "^9.24.0",
20+
"@mendix/prettier-config-web-widgets": "workspace:*",
21+
"globals": "^16.0.0"
2322
}
2423
}

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.

0 commit comments

Comments
 (0)