- name: pnpm audit
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }}
run: pnpm audit --prod
- - name: pnpm lint
- if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }}
- run: pnpm lint
+ # TODO: needs flat config support in vue.js eslint plugins
+ # - name: pnpm lint
+ # if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }}
+ # run: pnpm lint
- name: pnpm build
run: pnpm build
- name: pnpm test
export default {
'{src,tests}/**/*.{ts,tsx,cts,mts}': [
- /* 'prettier --cache --write', 'eslint --cache --fix' */
+ // 'prettier --cache --write',
+ 'eslint --cache --fix',
],
'**/*.{json,md,yml,yaml}': ['prettier --cache --write'],
'**/*.{js,jsx,cjs,mjs}': ['prettier --cache --write', 'eslint --cache --fix'],
},
{
files: [
+ 'src/charging-station/Bootstrap.ts',
'src/charging-station/ChargingStation.ts',
'src/charging-station/ocpp/OCPPServiceUtils.ts',
'src/charging-station/ocpp/1.6/OCPP16ResponseService.ts',
"lint": "cross-env TIMING=1 eslint --cache src tests ./*.js ./*.ts",
"lint:fix": "cross-env TIMING=1 eslint --cache --fix src tests ./*.js ./*.ts",
"format": "prettier --cache --write .; eslint --cache --fix src tests ./*.js ./*.ts",
- "prettier": "prettier --cache --write .",
"test": "glob -c \"c8 node --import tsx --test\" \"tests/**/*.test.ts\"",
"test:debug": "glob -c \"node --import tsx --test --inspect\" \"tests/**/*.test.ts\"",
"coverage": "c8 report --reporter=lcov",
specifier: ^6.0.1
version: 6.0.1
semver:
- specifier: ^7.5.3
+ specifier: ^7.6.2
version: 7.6.2
ts-node:
specifier: ^10.9.2
'@types/node':
specifier: ^20.14.10
version: 20.14.10
- '@typescript-eslint/eslint-plugin':
- specifier: ^7.16.0
- version: 7.16.0(@typescript-eslint/parser@7.16.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3)
- '@typescript-eslint/parser':
- specifier: ^7.16.0
- version: 7.16.0(eslint@8.57.0)(typescript@5.5.3)
'@vitejs/plugin-vue':
specifier: ^5.0.5
version: 5.0.5(vite@5.3.3(@types/node@20.14.10))(vue@3.4.31(typescript@5.5.3))
typescript:
specifier: ~5.5.3
version: 5.5.3
+ typescript-eslint:
+ specifier: ^7.16.0
+ version: 7.16.0(eslint@8.57.0)(typescript@5.5.3)
vite:
specifier: ^5.3.3
version: 5.3.3(@types/node@20.14.10)
typedarray@0.0.6:
resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==}
+ typescript-eslint@7.16.0:
+ resolution: {integrity: sha512-kaVRivQjOzuoCXU6+hLnjo3/baxyzWVO5GrnExkFzETRYJKVHYkrJglOu2OCm8Hi9RPDWX1PTNNTpU5KRV0+RA==}
+ engines: {node: ^18.18.0 || >=20.0.0}
+ peerDependencies:
+ eslint: ^8.56.0
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
typescript-eslint@8.0.0-alpha.44:
resolution: {integrity: sha512-4oRisGPvIJFnLqpfrpdcFjkFZg4/mhbE+0faGiomEFv9r5ziXETxuGY6VmwACPXHEakp2nDEqnp3ZdU0bsuiHQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
typedarray@0.0.6: {}
+ typescript-eslint@7.16.0(eslint@8.57.0)(typescript@5.5.3):
+ dependencies:
+ '@typescript-eslint/eslint-plugin': 7.16.0(@typescript-eslint/parser@7.16.0(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3)
+ '@typescript-eslint/parser': 7.16.0(eslint@8.57.0)(typescript@5.5.3)
+ '@typescript-eslint/utils': 7.16.0(eslint@8.57.0)(typescript@5.5.3)
+ eslint: 8.57.0
+ optionalDependencies:
+ typescript: 5.5.3
+ transitivePeerDependencies:
+ - supports-color
+
typescript-eslint@8.0.0-alpha.44(eslint@9.7.0)(typescript@5.5.3):
dependencies:
'@typescript-eslint/eslint-plugin': 8.0.0-alpha.44(@typescript-eslint/parser@8.0.0-alpha.44(eslint@9.7.0)(typescript@5.5.3))(eslint@9.7.0)(typescript@5.5.3)
export type ErrorCallback = (ocppError: OCPPError, requestStatistic?: boolean) => void
-export type CachedRequest = [ResponseCallback, ErrorCallback, RequestCommand, JsonType]
+export type CachedRequest = [
+ ResponseCallback,
+ ErrorCallback,
+ RequestCommand | IncomingRequestCommand,
+ JsonType
+]
export const MessageTrigger = {
...OCPP16MessageTrigger,
"@tsconfig/node20": "^20.1.4",
"@types/jsdom": "^21.1.7",
"@types/node": "^20.14.10",
- "@typescript-eslint/eslint-plugin": "^7.16.0",
- "@typescript-eslint/parser": "^7.16.0",
"@vitejs/plugin-vue": "^5.0.5",
"@vitejs/plugin-vue-jsx": "^4.0.0",
"@vitest/coverage-v8": "^2.0.3",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"typescript": "~5.5.3",
+ "typescript-eslint": "^7.16.0",
"vite": "^5.3.3",
"vitest": "^2.0.3"
}