You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix and apply the configured standard to the code base makes easier for the next changes go through the pipeline without have to mess up with tech debts. This also enables the lint stage be part of test routine, not only in the pre-commit hook (which could be by passed).
Copy file name to clipboardExpand all lines: package.json
+6
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,12 @@
49
49
"lerna": "lerna",
50
50
"prepare": "husky install",
51
51
"lint-staged": "lint-staged",
52
+
"lint": "npm run lint::core && npm run lint::bolt-connection && npm run lint::bolt-connection && npm run lint::neo4j-driver-lite && npm run lint::neo4j-driver && npm run lint::testkit-backend",
53
+
"lint::core": "npm run ts-standard::core -- packages/core/src/ && npm run ts-standard::core -- packages/core/test/",
54
+
"lint::bolt-connection": "npm run ts-standard::bolt-connection -- packages/bolt-connection/types/ && npm run standard -- packages/bolt-connection/src/ && npm run standard -- packages/bolt-connection/test/",
55
+
"lint::neo4j-driver-lite": "npm run ts-standard::neo4j-driver-lite -- packages/neo4j-driver-lite/src/ && npm run ts-standard::neo4j-driver-lite -- packages/neo4j-driver-lite/test/",
56
+
"lint::neo4j-driver": "npm run ts-standard::neo4j-driver -- packages/neo4j-driver/types/ && npm run ts-standard::neo4j-driver -- packages/neo4j-driver/test/types/ && npm run standard -- packages/neo4j-driver/src/ && npm run standard -- packages/neo4j-driver/test/**/*.js",
57
+
"lint::testkit-backend": "npm run standard -- packages/testkit-backend/src/**/*.js",
52
58
"ts-standard": "npm run ts-standard::core && npm run ts-standard::bolt-connection && npm run ts-standard::neo4j-driver-lite && npm run ts-standard::neo4j-driver",
@@ -639,14 +638,14 @@ class RoutingTableRegistry {
639
638
640
639
/**
641
640
* Retrieves a routing table from a given database name
642
-
*
641
+
*
643
642
* @param {string|impersonatedUser} impersonatedUser The impersonated User
644
643
* @param {string} database The database name
645
644
* @param {function()|RoutingTable} defaultSupplier The routing table supplier, if it's not a function or not exists, it will return itself as default value
646
645
* @returns {RoutingTable} The routing table for the respective database
647
646
*/
648
647
get(database,defaultSupplier){
649
-
if(this._tables.has(database)){
648
+
if(this._tables.has(database)){
650
649
returnthis._tables.get(database)
651
650
}
652
651
returntypeofdefaultSupplier==='function'
@@ -690,14 +689,13 @@ function _isFailFastError (error) {
0 commit comments