Skip to content

Commit 1fd99e2

Browse files
authored
Merge pull request #40 from openlayers/no-elseif-return
No else-if return
2 parents 808ddcb + 997a43d commit 1fd99e2

File tree

3 files changed

+26
-23
lines changed

3 files changed

+26
-23
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
open-pull-requests-limit: 10
8+
versioning-strategy: increase-if-necessary
9+
- package-ecosystem: github-actions
10+
directory: "/"
11+
schedule:
12+
interval: weekly

.github/workflows/test.yml

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,22 @@ on:
1010

1111
jobs:
1212
test:
13-
name: ${{ matrix.platform }}
14-
runs-on: ${{ matrix.platform }}
15-
16-
strategy:
17-
fail-fast: false
18-
matrix:
19-
platform:
20-
- ubuntu-latest
21-
- macos-latest
22-
- windows-latest
23-
node:
24-
- 16
13+
name: Test
14+
runs-on: ubuntu-latest
2515

2616
steps:
27-
- name: Set git to use LF
28-
run: |
29-
git config --global core.autocrlf false
30-
git config --global core.eol lf
17+
- name: Clone Repository
18+
uses: actions/checkout@v3
3119

32-
- uses: actions/checkout@v2
33-
- name: Use Node.js ${{ matrix.node }}
34-
uses: actions/setup-node@v2
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v3
3522
with:
36-
node-version: ${{ matrix.node }}
37-
- run: npm ci
38-
- run: npm test
23+
node-version: '16'
24+
25+
- name: Install Dependencies
26+
run: npm ci
27+
28+
- name: Run Tests
29+
run: npm test
3930
env:
4031
CI: true

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports = {
6060
'no-dupe-class-members': 'error',
6161
'no-dupe-keys': 'error',
6262
'no-duplicate-case': 'error',
63-
'no-else-return': 'error',
63+
'no-else-return': ['error', {allowElseIf: false}],
6464
'no-empty': 'error',
6565
'no-empty-character-class': 'error',
6666
'no-eq-null': 'error',

0 commit comments

Comments
 (0)