Skip to content

Commit

Permalink
add eslint config to test directories and adjust package.json files
Browse files Browse the repository at this point in the history
Signed-off-by: Hasan Eroglu <[email protected]>
  • Loading branch information
hasanheroglu committed Aug 23, 2024
1 parent 91ada19 commit 1f54133
Show file tree
Hide file tree
Showing 25 changed files with 92 additions and 558 deletions.
521 changes: 13 additions & 508 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions packages/binding-coap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"types": "dist/coap.d.ts",
"dependencies": {
"@node-wot/core": "0.8.17",
"@types/node": "16.18.35",
"coap": "^1.4.0",
"dns-packet": "^5.2.2",
"multicast-dns": "^7.2.5",
Expand All @@ -37,9 +36,5 @@
"homepage": "https://github.com/eclipse-thingweb/node-wot/tree/master/packages/binding-coap#readme",
"directories": {
"test": "test"
},
"devDependencies": {
"@testdeck/mocha": "^0.1.2",
"chai": "^4.3.4"
}
}
6 changes: 6 additions & 0 deletions packages/binding-coap/test/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "../.eslintrc.json",
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
3 changes: 0 additions & 3 deletions packages/binding-file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,5 @@
"homepage": "https://github.com/eclipse-thingweb/node-wot/tree/master/packages/binding-file#readme",
"directories": {
"test": "test"
},
"devDependencies": {
"chai": "^4.3.4"
}
}
6 changes: 6 additions & 0 deletions packages/binding-file/test/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "../.eslintrc.json",
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
6 changes: 1 addition & 5 deletions packages/binding-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,19 @@
"@node-oauth/express-oauth-server": "^3.0.1",
"@node-oauth/oauth2-server": "^4.3.0",
"@sinonjs/fake-timers": "^11.2.2",
"@testdeck/mocha": "^0.1.2",
"@types/accept-language-parser": "^1.5.2",
"@types/basic-auth": "1.1.3",
"@types/eventsource": "^1.1.10",
"@types/express": "^4.17.3",
"@types/node-fetch": "^2.5.10",
"body-parser": "^1.20.1",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
"chai-spies": "^1.0.0",
"express": "^4.18.2",
"serve-static": "^1.15.0",
"ssestream": "^1.1.0",
"timekeeper": "^2.2.0"
},
"dependencies": {
"@node-wot/core": "0.8.17",
"@types/eventsource": "1.1.10",
"accept-language-parser": "1.5.0",
"basic-auth": "2.0.1",
"client-oauth2": "^4.2.5",
Expand Down
6 changes: 6 additions & 0 deletions packages/binding-http/test/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "../.eslintrc.json",
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
7 changes: 1 addition & 6 deletions packages/binding-mbus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"dependencies": {
"@node-wot/core": "0.8.17",
"node-mbus": "^2.2.4",
"rxjs": "^5.5.11",
"wot-typescript-definitions": "0.8.0-SNAPSHOT.29"
"rxjs": "^5.5.11"
},
"scripts": {
"build": "tsc -b",
Expand All @@ -35,9 +34,5 @@
},
"eslintConfig": {
"extends": "../../.eslintrc.js"
},
"devDependencies": {
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1"
}
}
6 changes: 6 additions & 0 deletions packages/binding-mbus/test/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "../.eslintrc.json",
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
4 changes: 0 additions & 4 deletions packages/binding-modbus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"homepage": "https://github.com/eclipse-thingweb/node-wot/tree/master/packages/binding-modbus#readme",
"directories": {
"test": "test"
},
"devDependencies": {
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1"
}
}
6 changes: 6 additions & 0 deletions packages/binding-modbus/test/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "../.eslintrc.json",
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
4 changes: 0 additions & 4 deletions packages/binding-mqtt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,5 @@
"homepage": "https://github.com/eclipse-thingweb/node-wot/tree/master/packages/binding-mqtt#readme",
"directories": {
"test": "test"
},
"devDependencies": {
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1"
}
}
6 changes: 6 additions & 0 deletions packages/binding-mqtt/test/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "../.eslintrc.json",
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
6 changes: 2 additions & 4 deletions packages/binding-netconf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
"types": "dist/netconf.d.ts",
"dependencies": {
"@node-wot/core": "0.8.17",
"@types/node-netconf": "npm:@types/netconf@^2.0.0",
"@types/url-parse": "^1.4.3",
"case-1.5.3": "npm:case@^1.5.3",
"node-netconf": "^1.1.2",
"rxjs": "^5.5.11",
Expand All @@ -38,7 +36,7 @@
},
"keywords": [],
"devDependencies": {
"chai": "^4.3.4",
"chai-spies": "^1.0.0"
"@types/node-netconf": "npm:@types/netconf@^2.0.0",
"@types/url-parse": "^1.4.3"
}
}
6 changes: 6 additions & 0 deletions packages/binding-netconf/test/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "../.eslintrc.json",
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
1 change: 0 additions & 1 deletion packages/binding-opcua/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"devDependencies": {
"chai": "^4.3.4",
"should": "^13.2.3"
},
"dependencies": {
Expand Down
6 changes: 6 additions & 0 deletions packages/binding-opcua/test/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "../.eslintrc.json",
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
6 changes: 1 addition & 5 deletions packages/binding-websockets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"directories": {
"test": "test"
},
"keywords": [],
"devDependencies": {
"@testdeck/mocha": "^0.1.2",
"chai": "^4.3.4"
}
"keywords": []
}
6 changes: 6 additions & 0 deletions packages/binding-websockets/test/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "../.eslintrc.json",
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
4 changes: 1 addition & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"@node-wot/binding-websockets": "0.8.17",
"@node-wot/core": "0.8.17",
"@thingweb/thing-model": "^1.0.1",
"@types/lodash": "^4.14.199",
"ajv": "^8.11.0",
"commander": "^9.1.0",
"dotenv": "^8.6.0",
Expand All @@ -49,7 +48,6 @@
"homepage": "https://github.com/eclipse-thingweb/node-wot/tree/master/packages/cli#readme",
"keywords": [],
"devDependencies": {
"@testdeck/mocha": "^0.1.2",
"chai": "^4.3.4"
"@types/lodash": "^4.14.199"
}
}
6 changes: 6 additions & 0 deletions packages/cli/test/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "../.eslintrc.json",
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
4 changes: 0 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,10 @@
"main": "dist/core.js",
"types": "dist/core.d.ts",
"devDependencies": {
"@testdeck/mocha": "^0.1.2",
"@types/content-type": "^1.1.8",
"@types/debug": "^4.1.7",
"@types/uritemplate": "^0.3.4",
"@types/uuid": "^8.3.1",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
"chai-spies": "^1.0.0",
"wot-thing-description-types": "^1.1.0-09-November-2023"
},
"dependencies": {
Expand Down
6 changes: 6 additions & 0 deletions packages/core/test/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "../.eslintrc.json",
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
7 changes: 1 addition & 6 deletions packages/td-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,5 @@
"directories": {
"test": "test"
},
"keywords": [],
"devDependencies": {
"@testdeck/mocha": "^0.1.2",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1"
}
"keywords": []
}
6 changes: 6 additions & 0 deletions packages/td-tools/test/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "../.eslintrc.json",
"rules": {
"import/no-extraneous-dependencies": "off"
}
}

0 comments on commit 1f54133

Please sign in to comment.