Skip to content

Commit d3e815c

Browse files
committed
lint during CI
1 parent 57aeddc commit d3e815c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,9 @@ jobs:
1616
- run: 'npm i && npm test'
1717
env:
1818
CI: true
19+
Lint:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v1
23+
- uses: actions/setup-node@v1
24+
- run: 'npm i && npm run lint'

site/.eslintrc.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ module.exports = {
4747
},
4848
settings: {
4949
'import/core-modules': ['svelte'],
50-
'svelte3/compiler': require('svelte/compiler')
50+
'svelte3/compiler': (() => {
51+
try {
52+
return require('svelte/compiler');
53+
} catch (e) {
54+
return null;
55+
}
56+
})()
5157
}
5258
};

0 commit comments

Comments
 (0)