From 738c0ccda4e2265b8161d0714d32641574a1ed75 Mon Sep 17 00:00:00 2001 From: Nerixyz Date: Sat, 6 Apr 2024 23:31:44 +0200 Subject: [PATCH] fix: lint and triggers --- .eslintrc.json | 2 +- .github/workflows/nodejs.yml | 7 +++++-- package.json | 3 ++- src/transport/websocket.transport.spec.ts | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 62a7b66..0b60cc7 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,7 +1,7 @@ { "parser": "@typescript-eslint/parser", "plugins": ["@typescript-eslint"], - "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"], + "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], "parserOptions": { "ecmaVersion": 2021, "sourceType": "module", diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 89b3d2f..fed86d6 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,8 +1,11 @@ name: Node.js CI on: - - push - - pull_request + push: + branches: [master] + tags: ['*'] + pull_request: + branches: [master] jobs: build: diff --git a/package.json b/package.json index b35a8a8..72caa7f 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,8 @@ "test": "jest", "build": "rimraf dist && tsc -p tsconfig.build.json", "prepare": "npm run build", - "lint": "eslint --fix --ext .js,.ts src/**", + "lint-fix": "eslint --fix --ext .js,.ts src/**", + "lint": "eslint --ext .js,.ts src/**", "format": "prettier -w . --loglevel warn", "check-format": "prettier -c .", "typecheck": "tsc -p tsconfig.build.json --noEmit", diff --git a/src/transport/websocket.transport.spec.ts b/src/transport/websocket.transport.spec.ts index 6ad0ddb..929637f 100644 --- a/src/transport/websocket.transport.spec.ts +++ b/src/transport/websocket.transport.spec.ts @@ -1,5 +1,5 @@ -import { assertTransportConnectsAndDisconnects } from '../../test/utilities'; -import { WebsocketTransport } from './websocket.transport'; +// import { assertTransportConnectsAndDisconnects } from '../../test/utilities'; +// import { WebsocketTransport } from './websocket.transport'; describe('WebsocketTransport', function () { // both of these connect, but time out when closing...