diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index b1284d1..ba3e080 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -38,5 +38,7 @@ jobs: name: Install dev dependencies - run: npm run lint name: Run linter + - run: npm run format:check + name: Run Prettier check - run: npm run test name: Run unit tests diff --git a/lib/types.ts b/lib/types.ts index cf40e51..c83d3f7 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -307,4 +307,4 @@ export interface DeviceInfo { /** The visibility class * @example "default" */ visibilityClass: string; -} \ No newline at end of file +} diff --git a/package.json b/package.json index 709a4f9..aa73bf2 100644 --- a/package.json +++ b/package.json @@ -44,9 +44,10 @@ "clean": "npm run build -- --clean", "rebuild": "npm run clean; npm run build", "dev": "npm run build -- --watch", - "format": "prettier -w ./lib", "lint": "eslint .", "lint:fix": "npm run lint -- --fix", + "format": "prettier -w ./lib ./test", + "format:check": "prettier --check ./lib ./test", "prepare": "npm run build", "test": "mocha --exit --timeout 1m \"./test/unit/**/*-specs.*js\"", "e2e-test": "mocha --exit --timeout 5m \"./test/e2e/**/*-specs.js\"" diff --git a/test/unit/devicectl-specs.ts b/test/unit/devicectl-specs.ts index 7a6102b..70ffe4c 100644 --- a/test/unit/devicectl-specs.ts +++ b/test/unit/devicectl-specs.ts @@ -1,5 +1,5 @@ -import { expect } from 'chai'; -import { Devicectl } from '../../lib/devicectl'; +import {expect} from 'chai'; +import {Devicectl} from '../../lib/devicectl'; describe('Devicectl', function () { let devicectl: Devicectl;