From 5e9b32d265afcb2c889f002ee760b8d8673287a9 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 20 Jul 2022 19:58:22 +0300 Subject: [PATCH] chore: madrun: lint --- .eslintrc.json | 4 ++-- .github/workflows/nodejs.yml | 9 +-------- package.json | 2 +- test/check.js | 2 +- 4 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 06b4cbb..e9c96de 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,10 +1,10 @@ { "extends": [ - "plugin:node/recommended", + "plugin:n/recommended", "plugin:putout/recommended" ], "plugins": [ "putout", - "node" + "n" ] } diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 56fafad..2439b6a 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -22,14 +22,11 @@ jobs: run: npm i redrun -g - name: Install run: npm install - - name: Lint run: redrun fix:lint - - uses: actions-rs/toolchain@v1 with: toolchain: stable - - uses: actions/cache@v3 with: path: | @@ -39,18 +36,14 @@ jobs: ~/.cargo/git/db/ target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - name: Typos Install run: cargo install typos-cli || echo 'already installed' - - name: Typos run: typos --write-changes - - name: Commit fixes uses: EndBug/add-and-commit@v7 with: - message: 'chore: ${{ env.NAME }}: lint using actions ☘️' - + message: "chore: ${{ env.NAME }}: lint using actions ☘️" - name: Coverage run: redrun coverage - name: Coveralls diff --git a/package.json b/package.json index 1048e9b..e88d2e0 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "c8": "^7.3.5", "escover": "^2.0.1", "eslint": "^8.0.0", - "eslint-plugin-node": "^11.0.0", + "eslint-plugin-n": "^15.2.4", "eslint-plugin-putout": "^16.0.0", "mock-import": "^3.0.0", "mock-require": "^3.0.3", diff --git a/test/check.js b/test/check.js index ebdfc67..caa9d5d 100644 --- a/test/check.js +++ b/test/check.js @@ -12,7 +12,7 @@ test('madrun: check', (t) => { const expected = `echo 'fix scripts first: "test", "lint"'`; - t.deepEqual(result, expected); + t.equal(result, expected); t.end(); });