Skip to content

Commit

Permalink
build(eslint): upgrade to eslint v9 setup
Browse files Browse the repository at this point in the history
  • Loading branch information
flovogt committed Apr 8, 2024
1 parent 07300ca commit 22cc8b9
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 30 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion demo/BaseComponent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"ui5-component"
],
"devDependencies": {
"eslint": "^9.0.0",
"eslint": "^9.0.0",
"@ui5/cli": "^3.9.2",
"local-web-server": "^5.3.3",
"karma": "^6.4.3",
Expand Down
4 changes: 0 additions & 4 deletions demo/CategoriesComponent/.gitignore

This file was deleted.

4 changes: 2 additions & 2 deletions demo/CategoriesComponent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "ui5 build -a --clean-dest",
"serve": "ws --compress -d dist",
"test": "npm run lint && rimraf coverage && npm run karma-ci",
"lint": "eslint webapp",
"lint": "eslint src",
"karma": "karma start",
"karma-ci": "karma start karma-ci.conf.js"
},
Expand All @@ -29,7 +29,7 @@
"my-lib-sample-products-component": "^0.0.1"
},
"devDependencies": {
"eslint": "^9.0.0",
"eslint": "^9.0.0",
"@ui5/cli": "^3.9.2",
"local-web-server": "^5.3.3",
"karma": "^6.4.3",
Expand Down
4 changes: 0 additions & 4 deletions demo/ProductsComponent/.gitignore

This file was deleted.

4 changes: 2 additions & 2 deletions demo/ProductsComponent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "ui5 build -a --clean-dest",
"serve": "ws --compress -d dist",
"test": "npm run lint && rimraf coverage && npm run karma-ci",
"lint": "eslint webapp",
"lint": "eslint src",
"karma": "karma start",
"karma-ci": "karma start karma-ci.conf.js"
},
Expand All @@ -28,7 +28,7 @@
"my-lib-sample-base-component": "^0.0.1"
},
"devDependencies": {
"eslint": "^9.0.0",
"eslint": "^9.0.0",
"@ui5/cli": "^3.9.2",
"local-web-server": "^5.3.3",
"karma": "^6.4.3",
Expand Down
10 changes: 0 additions & 10 deletions demo/RootComponent/.eslintrc

This file was deleted.

4 changes: 0 additions & 4 deletions demo/RootComponent/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion demo/RootComponent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"my-lib-sample-products-component": "^0.0.1"
},
"devDependencies": {
"eslint": "^9.0.0",
"eslint": "^9.0.0",
"@ui5/cli": "^3.9.2",
"local-web-server": "^5.3.3",
"karma": "^6.4.3",
Expand Down
2 changes: 1 addition & 1 deletion demo/SuppliersComponent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "ui5 build -a --clean-dest",
"serve": "ws --compress -d dist",
"test": "npm run lint && rimraf coverage && npm run karma-ci",
"lint": "eslint webapp",
"lint": "eslint src",
"karma": "karma start",
"karma-ci": "karma start karma-ci.conf.js"
},
Expand Down
14 changes: 14 additions & 0 deletions demo/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import js from "@eslint/js";

export default [
js.configs.recommended,
js.configs.all,
{
languageOptions: {
globals: {
jQuery: true,
sap: true
}
}
}
]
5 changes: 4 additions & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"version": "1.0.0",
"description": "ui5-nested-component-scenario demo",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "npm run lint --workspaces --if-present",
"lint:fix": "npm run lint:fix --workspaces --if-present"
},
"workspaces": [
"BaseComponent",
Expand All @@ -13,6 +15,7 @@
"SuppliersComponent",
"RootComponent"
],

"author": "Jiawei Cao, Florian Vogt",
"license": "Apache-2.0"
}

0 comments on commit 22cc8b9

Please sign in to comment.