@sap-ux/ui5-application-writer 1.6.6 → 1.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,9 +15,9 @@ function mergeWithDefaults(ui5App) {
15
15
  (0, validators_1.validate)(ui5App);
16
16
  ui5App.app = (0, defaults_1.mergeApp)(ui5App.app);
17
17
  ui5App.appOptions = ui5App.appOptions || {};
18
- // if typescript and codeAssist is enabled disable codeAssist
19
- if (ui5App.appOptions.typescript && ui5App.appOptions.codeAssist) {
20
- ui5App.appOptions.codeAssist = false;
18
+ // if typescript is enabled then enable eslint too
19
+ if (ui5App.appOptions.typescript) {
20
+ ui5App.appOptions.eslint = true;
21
21
  }
22
22
  ui5App.ui5 = (0, defaults_1.mergeUi5)(ui5App.ui5 || {}, ui5App.appOptions);
23
23
  // Determine if the project type is 'EDMXBackend'.
package/dist/options.js CHANGED
@@ -49,7 +49,6 @@ async function copyTemplates(name, { ui5App, fs, basePath, tmplPath }) {
49
49
  * Factory functions for applying optional features.
50
50
  */
51
51
  const factories = {
52
- codeAssist: async (input) => await copyTemplates('codeAssist', input),
53
52
  eslint: async (input) => await copyTemplates('eslint', input),
54
53
  loadReuseLibs: async (input) => await copyTemplates('loadReuseLibs', input),
55
54
  sapux: async (input) => {
package/dist/types.d.ts CHANGED
@@ -131,6 +131,11 @@ export interface UI5 {
131
131
  customUi5Libs?: string[];
132
132
  }
133
133
  export interface AppOptions {
134
+ /**
135
+ * @deprecated
136
+ * Enables code assist
137
+ * No longer supported. Will be removed from the interface in future releases.
138
+ */
134
139
  codeAssist: boolean;
135
140
  eslint: boolean;
136
141
  sapux: boolean;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aui5-application-writer"
11
11
  },
12
- "version": "1.6.6",
12
+ "version": "1.6.8",
13
13
  "license": "Apache-2.0",
14
14
  "main": "dist/index.js",
15
15
  "files": [
@@ -37,8 +37,8 @@
37
37
  "@types/mem-fs-editor": "7.0.1",
38
38
  "@types/semver": "7.5.2",
39
39
  "fs-extra": "10.0.0",
40
- "@sap-ux/eslint-plugin-fiori-tools": "9.0.1",
41
- "@sap-ux/project-access": "1.32.17"
40
+ "@sap-ux/eslint-plugin-fiori-tools": "9.0.4",
41
+ "@sap-ux/project-access": "1.33.0"
42
42
  },
43
43
  "engines": {
44
44
  "node": ">=20.x"
@@ -0,0 +1,5 @@
1
+ const fioriTools = require('@sap-ux/eslint-plugin-fiori-tools');
2
+
3
+ module.exports = [
4
+ ...fioriTools.configs.recommended
5
+ ];
@@ -3,9 +3,7 @@
3
3
  "lint": "eslint ./"
4
4
  },
5
5
  "devDependencies": {
6
- "@sap-ux/eslint-plugin-fiori-tools": "^0.4.0",
7
- "eslint": "8.57.0",
8
- "eslint-plugin-fiori-custom": "2.6.7",
9
- "@babel/eslint-parser": "7.14.7"
6
+ "@sap-ux/eslint-plugin-fiori-tools": "^9.0.0",
7
+ "eslint": "^9"
10
8
  }
11
9
  }
@@ -170,7 +170,6 @@
170
170
  });
171
171
  };
172
172
 
173
- /*eslint-disable fiori-custom/sap-browser-api-warning, fiori-custom/sap-no-dom-access*/
174
173
  var currentScript = document.getElementById("locate-reuse-libs");
175
174
  if (!currentScript) {
176
175
  currentScript = document.currentScript;
@@ -167,7 +167,6 @@ function registerSAPFonts() {
167
167
  });
168
168
  };
169
169
 
170
- /*eslint-disable fiori-custom/sap-browser-api-warning, fiori-custom/sap-no-dom-access*/
171
170
  var currentScript = document.getElementById("locate-reuse-libs");
172
171
  if (!currentScript) {
173
172
  currentScript = document.currentScript;
@@ -7,10 +7,7 @@
7
7
  },
8
8
  "devDependencies": {
9
9
  "<%- ui5.typesPackage %>": "<%- ui5.typesVersion %>",
10
- "ui5-tooling-transpile": "^3.3.7",
11
- "typescript": "^5.1.6",
12
- "@typescript-eslint/eslint-plugin": "^7.1.1",
13
- "@typescript-eslint/parser": "^7.1.1",
14
- "@sap-ux/eslint-plugin-fiori-tools": "^0.4.0"
10
+ "ui5-tooling-transpile": "^3.10.0",
11
+ "typescript": "^5.9.3"
15
12
  }
16
13
  }
@@ -1,10 +0,0 @@
1
- {
2
- "root": true,
3
- "plugins": [
4
- "@sap/ui5-jsdocs"
5
- ],
6
- "extends": [
7
- "plugin:@sap/ui5-jsdocs/recommended",
8
- "eslint:recommended"
9
- ]
10
- }
@@ -1,7 +0,0 @@
1
- {
2
- "devDependencies": {
3
- "eslint": "8.57.0",
4
- "@sap/eslint-plugin-ui5-jsdocs": "2.0.5",
5
- "@sapui5/ts-types": "<%- ui5.typesVersion %>"
6
- }
7
- }
@@ -1,11 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "module": "none",
4
- "noEmit": true,
5
- "checkJs": true,
6
- "allowJs": true,
7
- "types": [
8
- "@sapui5/ts-types"
9
- ]
10
- }
11
- }
@@ -1,4 +0,0 @@
1
- {
2
- "extends": "plugin:@sap-ux/eslint-plugin-fiori-tools/defaultJS",
3
- "root": true
4
- }
@@ -1,4 +0,0 @@
1
- {
2
- "extends": "plugin:@sap-ux/eslint-plugin-fiori-tools/defaultTS",
3
- "root": true
4
- }