diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index f8346f5..9d8c15f 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -10,15 +10,9 @@ jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x, 20.x] - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: npm run test + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v1 + - run: bun install + - run: bun run lint + - run: bun run test diff --git a/.gitignore b/.gitignore index 9815f2f..65e23f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /node_modules /yarn.lock /package-lock.json -/pnpm-lock.yaml \ No newline at end of file +/pnpm-lock.yaml +/bun.lockb \ No newline at end of file diff --git a/package.json b/package.json index 4b15797..6591405 100644 --- a/package.json +++ b/package.json @@ -14,21 +14,19 @@ "type": "git", "url": "https://github.com/bfanger/eslint-plugin-only-warn.git" }, - "engines": { - "node": ">=18" - }, "type": "commonjs", "main": "src/only-warn.js", + "prettier": {}, "scripts": { - "lint": "prettier --check src tests && eslint src tests", - "format": "eslint --fix src tests && prettier --write src tests", + "lint": "prettier --check . && eslint .", + "format": "eslint --fix . && prettier --write .", "test": "vitest run", "test:watch": "vitest" }, "devDependencies": { - "eslint": "^9.0.0", + "eslint": "^9.4.0", "eslint-config-prettier": "^9.1.0", - "prettier": "^3.2.4", - "vitest": "^1.2.1" + "prettier": "^3.2.5", + "vitest": "^1.6.0" } } diff --git a/tests/only-warn.spec.js b/tests/only-warn.spec.js index 4cbf50d..ff33ad9 100644 --- a/tests/only-warn.spec.js +++ b/tests/only-warn.spec.js @@ -20,7 +20,7 @@ describe("eslint-plugin-only-warn", () => { expect(messages[0].severity).toBe(2); }); - it("can be temporarly disabled", () => { + it("can be temporally disabled", () => { disable(); const messages1 = linter.verify(sourceCode, config); expect(messages1[0].severity).toBe(2);