diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98897c5740..2e035c86b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,3 +16,9 @@ jobs: - run: 'npm i && npm test' env: CI: true + Lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + - run: 'npm i && npm run lint' diff --git a/site/.eslintrc.js b/site/.eslintrc.js index a436f7bbe4..255b8af9c5 100644 --- a/site/.eslintrc.js +++ b/site/.eslintrc.js @@ -47,6 +47,12 @@ module.exports = { }, settings: { 'import/core-modules': ['svelte'], - 'svelte3/compiler': require('svelte/compiler') + 'svelte3/compiler': (() => { + try { + return require('svelte/compiler'); + } catch (e) { + return null; + } + })() } };