Skip to content

Commit 6a545b0

Browse files
authored
Update dependencies (ESLint 9, UI5 1.127.0) (#26)
1 parent c5d4fce commit 6a545b0

7 files changed

+75
-48
lines changed

.editorconfig

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
# We recommend you to keep these unchanged
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
14+
# Change these settings to your own preference
15+
indent_style = tab
16+
17+
[*.{yaml,yml,md,json,xml,properties}]
18+
indent_size = 2
19+
indent_style = space
20+
21+
[*.md]
22+
trim_trailing_whitespace = false

.eslintrc.json

-20
This file was deleted.

eslint.config.mjs

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import eslint from "@eslint/js";
2+
import globals from "globals";
3+
import tseslint from "typescript-eslint";
4+
5+
export default tseslint.config(
6+
eslint.configs.recommended,
7+
...tseslint.configs.recommended,
8+
...tseslint.configs.recommendedTypeChecked,
9+
{
10+
languageOptions: {
11+
globals: {
12+
...globals.browser,
13+
sap: "readonly"
14+
},
15+
ecmaVersion: 2023,
16+
parserOptions: {
17+
project: true,
18+
tsconfigRootDir: import.meta.dirname
19+
}
20+
}
21+
},
22+
{
23+
ignores: ["eslint.config.mjs"]
24+
}
25+
);

package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
"url": "https://github.com/SAP-samples/ui5-typescript-helloworld.git"
1818
},
1919
"devDependencies": {
20-
"@types/openui5": "1.116.1",
21-
"@typescript-eslint/eslint-plugin": "^6.3.0",
22-
"@typescript-eslint/parser": "^6.3.0",
23-
"@ui5/cli": "^3.4.0",
24-
"eslint": "^8.46.0",
25-
"typescript": "^5.1.6",
26-
"ui5-middleware-livereload": "^3.0.0",
27-
"ui5-middleware-simpleproxy": "^3.0.0",
28-
"ui5-tooling-transpile": "^3.0.1"
20+
"@types/openui5": "1.127.0",
21+
"@ui5/cli": "^4",
22+
"eslint": "^9.10.0",
23+
"typescript-eslint": "^8.4.0",
24+
"globals": "^15.9.0",
25+
"typescript": "^5.6.2",
26+
"ui5-middleware-livereload": "^3",
27+
"ui5-middleware-simpleproxy": "^3",
28+
"ui5-tooling-transpile": "^3"
2929
}
3030
}

tsconfig.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"compilerOptions": {
3-
"target": "es2022",
4-
"module": "es2022",
5-
"moduleResolution": "node",
6-
"skipLibCheck": true,
7-
"allowJs": true,
8-
"strict": true,
9-
"strictPropertyInitialization": false,
10-
"rootDir": "./webapp",
11-
"baseUrl": "./",
12-
"paths": {
13-
"ui5/typescript/helloworld/*": ["./webapp/*"]
14-
},
15-
"composite": true
2+
"compilerOptions": {
3+
"target": "es2023",
4+
"module": "es2022",
5+
"moduleResolution": "node",
6+
"skipLibCheck": true,
7+
"allowJs": true,
8+
"strict": true,
9+
"strictPropertyInitialization": false,
10+
"rootDir": "./webapp",
11+
"baseUrl": "./",
12+
"paths": {
13+
"ui5/typescript/helloworld/*": ["./webapp/*"]
1614
},
17-
"include": ["./webapp/**/*"]
15+
"composite": true
16+
},
17+
"include": ["./webapp/**/*"]
1818
}

ui5-dist.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
specVersion: "3.0"
1+
specVersion: "4.0"
22
metadata:
33
name: ui5.typescript.helloworld
44
type: application
@@ -8,7 +8,7 @@ resources:
88
webapp: dist
99
framework:
1010
name: OpenUI5
11-
version: "1.116.0"
11+
version: "1.127.0"
1212
libraries:
1313
- name: sap.m
1414
- name: sap.ui.core

ui5.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
specVersion: "3.0"
1+
specVersion: "4.0"
22
metadata:
33
name: ui5.typescript.helloworld
44
type: application
55
framework:
66
name: OpenUI5
7-
version: "1.116.0"
7+
version: "1.127.0"
88
libraries:
99
- name: sap.m
1010
- name: sap.ui.core

0 commit comments

Comments
 (0)