Skip to content

Commit

Permalink
fix: pin ESLint to v8 (#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone authored Apr 8, 2024
1 parent 985c68b commit d91a884
Show file tree
Hide file tree
Showing 27 changed files with 133 additions and 128 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
<!--
Placeholder for the next version:
## __WORK IN PROGRESS__
(at the beginning of a new line )
(at the beginning of a new line)
-->
## __WORK IN PROGRESS__
* (AlCalzone) Pin `eslint` to version 8 (#1100)

## 2.6.2 (2024-02-12)
* (theknut) Make ioBroker types available in the test directory (#1091)
* (theknut) Add `licenseInformation` field to `io-package.json` (#1092)
* (AlCalzone) Remove the `subscribe` start mode (#1093)
* (AlCalzone) Remove the legacy way of creating adapters without classes (#1094)
* (AlCalzone) Remove the legacy way of creating adapters without classes (#1094)

## 2.6.1 (2024-01-15)
* (AlCalzone) Fixed an issue with TypeScript tests caused by #1082 (fixes #1084)
Expand Down
4 changes: 3 additions & 1 deletion templates/package.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ const templateFunction: TemplateFunction = async answers => {
"@types/react-dom@17",
] : []),
...(useESLint ? [
"eslint"
// https://github.com/ioBroker/create-adapter/pull/1099#issuecomment-2042287875
// Need to stay on ESLint v8 until typescript-eslint is compatible with ESLint v9
"eslint@8"
] : []),
...((useESLint && useTypeScript) ? [
"@typescript-eslint/eslint-plugin",
Expand Down
10 changes: 5 additions & 5 deletions test/baselines/ReleaseScript_JS/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@
"node": ">= 18"
},
"dependencies": {
"@iobroker/adapter-core": "^3.0.4"
"@iobroker/adapter-core": "^3.0.6"
},
"devDependencies": {
"@alcalzone/release-script": "^3.7.0",
"@alcalzone/release-script-plugin-iobroker": "^3.7.0",
"@alcalzone/release-script-plugin-license": "^3.7.0",
"@alcalzone/release-script-plugin-manual-review": "^3.7.0",
"@iobroker/adapter-dev": "^1.2.0",
"@iobroker/testing": "^4.1.0",
"@iobroker/adapter-dev": "^1.3.0",
"@iobroker/testing": "^4.1.1",
"chai-as-promised": "^7.1.1",
"chai": "^4.4.1",
"eslint": "^8.56.0",
"mocha": "^10.3.0",
"eslint": "^8.57.0",
"mocha": "^10.4.0",
"proxyquire": "^2.1.3",
"sinon": "^17.0.1",
"sinon-chai": "^3.7.0"
Expand Down
20 changes: 10 additions & 10 deletions test/baselines/ReleaseScript_TS/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,29 @@
"node": ">= 18"
},
"dependencies": {
"@iobroker/adapter-core": "^3.0.4"
"@iobroker/adapter-core": "^3.0.6"
},
"devDependencies": {
"@alcalzone/release-script": "^3.7.0",
"@alcalzone/release-script-plugin-iobroker": "^3.7.0",
"@alcalzone/release-script-plugin-license": "^3.7.0",
"@alcalzone/release-script-plugin-manual-review": "^3.7.0",
"@iobroker/adapter-dev": "^1.2.0",
"@iobroker/testing": "^4.1.0",
"@tsconfig/node18": "^18.2.2",
"@types/chai": "^4.3.11",
"@iobroker/adapter-dev": "^1.3.0",
"@iobroker/testing": "^4.1.1",
"@tsconfig/node18": "^18.2.4",
"@types/chai": "^4.3.14",
"@types/chai-as-promised": "^7.1.8",
"@types/mocha": "^10.0.6",
"@types/node": "^18.19.15",
"@types/node": "^18.19.30",
"@types/proxyquire": "^1.3.31",
"@types/sinon": "^17.0.3",
"@types/sinon-chai": "^3.2.12",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"chai-as-promised": "^7.1.1",
"chai": "^4.4.1",
"eslint": "^8.56.0",
"mocha": "^10.3.0",
"eslint": "^8.57.0",
"mocha": "^10.4.0",
"proxyquire": "^2.1.3",
"rimraf": "^5.0.5",
"sinon": "^17.0.1",
Expand Down
20 changes: 10 additions & 10 deletions test/baselines/TS_Prettier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,27 @@
"node": ">= 18"
},
"dependencies": {
"@iobroker/adapter-core": "^3.0.4"
"@iobroker/adapter-core": "^3.0.6"
},
"devDependencies": {
"@iobroker/adapter-dev": "^1.2.0",
"@iobroker/testing": "^4.1.0",
"@tsconfig/node18": "^18.2.2",
"@types/chai": "^4.3.11",
"@iobroker/adapter-dev": "^1.3.0",
"@iobroker/testing": "^4.1.1",
"@tsconfig/node18": "^18.2.4",
"@types/chai": "^4.3.14",
"@types/chai-as-promised": "^7.1.8",
"@types/mocha": "^10.0.6",
"@types/node": "^18.19.15",
"@types/node": "^18.19.30",
"@types/proxyquire": "^1.3.31",
"@types/sinon": "^17.0.3",
"@types/sinon-chai": "^3.2.12",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"chai-as-promised": "^7.1.1",
"chai": "^4.4.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"mocha": "^10.3.0",
"eslint": "^8.57.0",
"mocha": "^10.4.0",
"prettier": "^3.2.5",
"proxyquire": "^2.1.3",
"rimraf": "^5.0.5",
Expand Down
2 changes: 1 addition & 1 deletion test/baselines/TS_SingleQuotes/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Created with @iobroker/create-adapter v2.6.1
* Created with @iobroker/create-adapter v2.6.2
*/

// The adapter-core module gives you access to the core ioBroker functions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
"type": "free",
"license": "MIT"
},
"creatorVersion": "2.6.1"
"creatorVersion": "2.6.2"
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

/*
* Created with @iobroker/create-adapter v2.6.1
* Created with @iobroker/create-adapter v2.6.2
*/

// The adapter-core module gives you access to the core ioBroker functions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@
"node": ">= 18"
},
"dependencies": {
"@iobroker/adapter-core": "^3.0.4"
"@iobroker/adapter-core": "^3.0.6"
},
"devDependencies": {
"@iobroker/adapter-dev": "^1.2.0",
"@iobroker/testing": "^4.1.0",
"@tsconfig/node18": "^18.2.2",
"@types/chai": "^4.3.11",
"@iobroker/adapter-dev": "^1.3.0",
"@iobroker/testing": "^4.1.1",
"@tsconfig/node18": "^18.2.4",
"@types/chai": "^4.3.14",
"@types/chai-as-promised": "^7.1.8",
"@types/mocha": "^10.0.6",
"@types/node": "^18.19.15",
"@types/node": "^18.19.30",
"@types/proxyquire": "^1.3.31",
"@types/sinon": "^17.0.3",
"@types/sinon-chai": "^3.2.12",
"chai-as-promised": "^7.1.1",
"chai": "^4.4.1",
"eslint": "^8.56.0",
"mocha": "^10.3.0",
"eslint": "^8.57.0",
"mocha": "^10.4.0",
"proxyquire": "^2.1.3",
"sinon": "^17.0.1",
"sinon-chai": "^3.7.0",
Expand Down
2 changes: 1 addition & 1 deletion test/baselines/adapter_JS_React/.create-adapter.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
"type": "free",
"license": "MIT"
},
"creatorVersion": "2.6.1"
"creatorVersion": "2.6.2"
}
2 changes: 1 addition & 1 deletion test/baselines/adapter_JS_React/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";

/*
* Created with @iobroker/create-adapter v2.6.1
* Created with @iobroker/create-adapter v2.6.2
*/

// The adapter-core module gives you access to the core ioBroker functions
Expand Down
12 changes: 6 additions & 6 deletions test/baselines/adapter_JS_React/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@
"node": ">= 18"
},
"dependencies": {
"@iobroker/adapter-core": "^3.0.4"
"@iobroker/adapter-core": "^3.0.6"
},
"devDependencies": {
"@iobroker/adapter-dev": "^1.2.0",
"@iobroker/adapter-dev": "^1.3.0",
"@iobroker/adapter-react": "2.0.22",
"@iobroker/testing": "^4.1.0",
"@iobroker/testing": "^4.1.1",
"@material-ui/core": "^4.12.4",
"chai-as-promised": "^7.1.1",
"chai": "^4.4.1",
"eslint": "^8.56.0",
"eslint-plugin-react": "^7.33.2",
"mocha": "^10.3.0",
"eslint-plugin-react": "^7.34.1",
"eslint": "^8.57.0",
"mocha": "^10.4.0",
"proxyquire": "^2.1.3",
"react-dom": "^17.0.2",
"react": "^17.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
"licenseInformation": {
"type": "free"
},
"creatorVersion": "2.6.1"
"creatorVersion": "2.6.2"
}
20 changes: 10 additions & 10 deletions test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@
"node": ">= 18"
},
"dependencies": {
"@iobroker/adapter-core": "^3.0.4"
"@iobroker/adapter-core": "^3.0.6"
},
"devDependencies": {
"@iobroker/adapter-dev": "^1.2.0",
"@iobroker/testing": "^4.1.0",
"@tsconfig/node18": "^18.2.2",
"@types/chai": "^4.3.11",
"@iobroker/adapter-dev": "^1.3.0",
"@iobroker/testing": "^4.1.1",
"@tsconfig/node18": "^18.2.4",
"@types/chai": "^4.3.14",
"@types/chai-as-promised": "^7.1.8",
"@types/mocha": "^10.0.6",
"@types/node": "^18.19.15",
"@types/node": "^18.19.30",
"@types/proxyquire": "^1.3.31",
"@types/sinon": "^17.0.3",
"@types/sinon-chai": "^3.2.12",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"chai-as-promised": "^7.1.1",
"chai": "^4.4.1",
"eslint": "^8.56.0",
"mocha": "^10.3.0",
"eslint": "^8.57.0",
"mocha": "^10.4.0",
"proxyquire": "^2.1.3",
"rimraf": "^5.0.5",
"sinon": "^17.0.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Created with @iobroker/create-adapter v2.6.1
* Created with @iobroker/create-adapter v2.6.2
*/

// The adapter-core module gives you access to the core ioBroker functions
Expand Down
2 changes: 1 addition & 1 deletion test/baselines/adapter_TS_React/.create-adapter.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
"type": "free",
"license": "MIT"
},
"creatorVersion": "2.6.1"
"creatorVersion": "2.6.2"
}
24 changes: 12 additions & 12 deletions test/baselines/adapter_TS_React/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,30 @@
"node": ">= 18"
},
"dependencies": {
"@iobroker/adapter-core": "^3.0.4"
"@iobroker/adapter-core": "^3.0.6"
},
"devDependencies": {
"@iobroker/adapter-dev": "^1.2.0",
"@iobroker/adapter-dev": "^1.3.0",
"@iobroker/adapter-react": "2.0.22",
"@iobroker/testing": "^4.1.0",
"@iobroker/testing": "^4.1.1",
"@material-ui/core": "^4.12.4",
"@tsconfig/node18": "^18.2.2",
"@types/chai": "^4.3.11",
"@tsconfig/node18": "^18.2.4",
"@types/chai": "^4.3.14",
"@types/chai-as-promised": "^7.1.8",
"@types/mocha": "^10.0.6",
"@types/node": "^18.19.15",
"@types/node": "^18.19.30",
"@types/proxyquire": "^1.3.31",
"@types/react-dom": "^17.0.25",
"@types/react": "^17.0.75",
"@types/react": "^17.0.80",
"@types/sinon": "^17.0.3",
"@types/sinon-chai": "^3.2.12",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"chai-as-promised": "^7.1.1",
"chai": "^4.4.1",
"eslint": "^8.56.0",
"eslint-plugin-react": "^7.33.2",
"mocha": "^10.3.0",
"eslint-plugin-react": "^7.34.1",
"eslint": "^8.57.0",
"mocha": "^10.4.0",
"proxyquire": "^2.1.3",
"react-dom": "^17.0.2",
"react": "^17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion test/baselines/adapter_TS_React/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Created with @iobroker/create-adapter v2.6.1
* Created with @iobroker/create-adapter v2.6.2
*/

// The adapter-core module gives you access to the core ioBroker functions
Expand Down
2 changes: 1 addition & 1 deletion test/baselines/connectionIndicator_yes/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Created with @iobroker/create-adapter v2.6.1
* Created with @iobroker/create-adapter v2.6.2
*/

// The adapter-core module gives you access to the core ioBroker functions
Expand Down
20 changes: 10 additions & 10 deletions test/baselines/contributors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,25 @@
"node": ">= 18"
},
"dependencies": {
"@iobroker/adapter-core": "^3.0.4"
"@iobroker/adapter-core": "^3.0.6"
},
"devDependencies": {
"@iobroker/adapter-dev": "^1.2.0",
"@iobroker/testing": "^4.1.0",
"@tsconfig/node18": "^18.2.2",
"@types/chai": "^4.3.11",
"@iobroker/adapter-dev": "^1.3.0",
"@iobroker/testing": "^4.1.1",
"@tsconfig/node18": "^18.2.4",
"@types/chai": "^4.3.14",
"@types/chai-as-promised": "^7.1.8",
"@types/mocha": "^10.0.6",
"@types/node": "^18.19.15",
"@types/node": "^18.19.30",
"@types/proxyquire": "^1.3.31",
"@types/sinon": "^17.0.3",
"@types/sinon-chai": "^3.2.12",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"chai-as-promised": "^7.1.1",
"chai": "^4.4.1",
"eslint": "^8.56.0",
"mocha": "^10.3.0",
"eslint": "^8.57.0",
"mocha": "^10.4.0",
"proxyquire": "^2.1.3",
"rimraf": "^5.0.5",
"sinon": "^17.0.1",
Expand Down
2 changes: 1 addition & 1 deletion test/baselines/customAdapterSettings/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Created with @iobroker/create-adapter v2.6.1
* Created with @iobroker/create-adapter v2.6.2
*/

// The adapter-core module gives you access to the core ioBroker functions
Expand Down
Loading

0 comments on commit d91a884

Please sign in to comment.