Skip to content

Commit

Permalink
chore: madrun: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Jul 20, 2022
1 parent 5383490 commit 5e9b32d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": [
"plugin:node/recommended",
"plugin:n/recommended",
"plugin:putout/recommended"
],
"plugins": [
"putout",
"node"
"n"
]
}
9 changes: 1 addition & 8 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion test/check.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

0 comments on commit 5e9b32d

Please sign in to comment.