Skip to content

Commit

Permalink
Merge pull request #111 from fregante/lint
Browse files Browse the repository at this point in the history
Modernize code with a stricter lint config
  • Loading branch information
denis-sokolov authored Sep 25, 2020
2 parents 786cc01 + 1c352ee commit c4bc7e6
Show file tree
Hide file tree
Showing 18 changed files with 4,656 additions and 818 deletions.
12 changes: 0 additions & 12 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/mergeable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ mergeable:
pull_requests:
title:
must_exclude:
regex: 'wip'
regex: "wip"
description:
must_exclude:
regex: '\[ \]'
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: CI

on:
pull_request:
branches:
- '*'
branches:
- "*"
push:
branches:
branches:
- master

jobs:
Expand All @@ -15,7 +15,6 @@ jobs:
- uses: actions/checkout@v2
- run: npm ci
- run: npm run lint
- run: npm run format-verify

Test:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ Main usage to delete useless forks:

```javascript
var clean = require("remove-github-forks");
clean(token, function(err) {});
clean(token, function (err) {});
clean(
token,
{
// If user is given, only forks belonging to this username
// (or organization) will be deleted.
user: "my-username"
user: "my-username",
},
function(err) {}
function (err) {}
);
```

Expand Down
Loading

0 comments on commit c4bc7e6

Please sign in to comment.