Skip to content

Commit e844a4e

Browse files
vicentereigchadly
andauthored
fix: useful error when upgrading from v1.0 (#6)
* Adds a check to throw a nice error if there's whitelist in their config, instead of allowList. * Adds a quick unit test to make sure it's all good in the hood. Co-authored-by: Chad Lee <git@chadly.net>
1 parent 39f8502 commit e844a4e

File tree

6 files changed

+31353
-25430
lines changed

6 files changed

+31353
-25430
lines changed

.eslintrc.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
module.exports = {
22
env: {
33
es6: true,
4-
node: true
4+
node: true,
5+
jest: true
56
},
67
globals: {
78
location: "off"
89
},
9-
extends: [
10-
"@runly"
11-
],
12-
rules:{
10+
extends: ["@runly"],
11+
rules: {
1312
"import/no-commonjs": "off"
1413
}
1514
};

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: CI
22
on: push
33

44
jobs:
5-
lint:
6-
name: Lint
5+
linttest:
6+
name: Lint & Test
77
runs-on: ubuntu-latest
88

99
steps:
@@ -24,3 +24,4 @@ jobs:
2424
run: npm i
2525

2626
- run: npm run lint
27+
- run: npm test

0 commit comments

Comments
 (0)