"lint": "cross-env TIMING=1 eslint --cache --ext .js,.ts src",
"lint:fix": "cross-env TIMING=1 eslint --cache --fix --ext .js,.ts src",
"format": "prettier --write .",
- "test": "cross-env TS_NODE_COMPILER_OPTIONS={\\\"module\\\":\\\"commonjs\\\"} nyc mocha test/**/*Test.ts",
+ "test": "nyc mocha test/**/*Test.ts",
"coverage": "nyc report --reporter=lcov",
"coverage:html": "nyc report --reporter=html",
"clinic:clean": "clinic clean",
chargingStationConfiguration: ChargingStationConfiguration
): boolean {
return (
- !Utils.isNullOrUndefined(chargingStationConfiguration?.configurationKey) &&
- !Utils.isNullOrUndefined(chargingStationConfiguration?.stationInfo) &&
- !Utils.isNullOrUndefined(chargingStationConfiguration?.configurationHash) &&
- !Utils.isEmptyArray(chargingStationConfiguration?.configurationKey) &&
- !Utils.isEmptyObject(chargingStationConfiguration?.stationInfo) &&
- !Utils.isEmptyString(chargingStationConfiguration?.configurationHash)
+ Utils.isNullOrUndefined(chargingStationConfiguration?.configurationKey) === false &&
+ Utils.isNullOrUndefined(chargingStationConfiguration?.stationInfo) === false &&
+ Utils.isNullOrUndefined(chargingStationConfiguration?.configurationHash) === false &&
+ Utils.isEmptyArray(chargingStationConfiguration?.configurationKey) === false &&
+ Utils.isEmptyObject(chargingStationConfiguration?.stationInfo) === false &&
+ Utils.isEmptyString(chargingStationConfiguration?.configurationHash) === false
);
}
}
/* Advanced Options */
"skipLibCheck": true, /* Skip type checking of declaration files. */
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
+ },
+ "ts-node": {
+ "compilerOptions": {
+ "module": "commonjs"
+ }
}
}