diff --git a/.eslintrc.js b/.eslintrc.json similarity index 66% rename from .eslintrc.js rename to .eslintrc.json index dff30870c..dcc41535d 100644 --- a/.eslintrc.js +++ b/.eslintrc.json @@ -1,28 +1,28 @@ -module.exports = { - env: { - browser: true, - node: true, +{ + "env": { + "browser": true, + "node": true }, - extends: [ + "extends": [ "eslint:recommended", "plugin:@typescript-eslint/recommended" ], - parser: "@typescript-eslint/parser", - parserOptions: { - ecmaVersion: 12, - sourceType: "module", + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 12, + "sourceType": "module" }, - plugins: [ + "plugins": [ "svelte3", "@typescript-eslint" ], - overrides: [ + "overrides": [ { - files: ["*.svelte"], - processor: "svelte3/svelte3", + "files": ["*.svelte"], + "processor": "svelte3/svelte3" } ], - rules: { + "rules": { "indent": ["error", 2, { "SwitchCase": 1 }], "semi": "off", // We use the typescript-specific rule as it's more accurate. "curly": ["error", "multi-line", "consistent"], @@ -31,7 +31,7 @@ module.exports = { "space-before-function-paren": ["error", { "anonymous": "always", "named": "never", - "asyncArrow": "always", + "asyncArrow": "always" }], "eol-last": ["error"], "@typescript-eslint/no-explicit-any": "off", @@ -40,16 +40,16 @@ module.exports = { "warn", { "multiline": { "delimiter": "semi", - "requireLast": true, + "requireLast": true }, "singleline": { "delimiter": "semi", - "requireLast": false, + "requireLast": false } } ] }, - settings: { - "svelte3/typescript": true, - }, -}; + "settings": { + "svelte3/typescript": true + } +} diff --git a/.github/workflows/check-build.yml b/.github/workflows/check-build.yml new file mode 100644 index 000000000..d1e6dd828 --- /dev/null +++ b/.github/workflows/check-build.yml @@ -0,0 +1,13 @@ +name: check-build +on: [push, pull_request] + +jobs: + check-format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '14' + - run: npm ci + - run: npm run build diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml index 90b804a26..aac6e1ca3 100644 --- a/.github/workflows/check-format.yml +++ b/.github/workflows/check-format.yml @@ -7,6 +7,8 @@ jobs: steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 + with: + node-version: '14' - run: npm ci - run: ./scripts/check-format shell: bash diff --git a/.github/workflows/svelte-check.yml b/.github/workflows/svelte-check.yml new file mode 100644 index 000000000..c3eca9b45 --- /dev/null +++ b/.github/workflows/svelte-check.yml @@ -0,0 +1,13 @@ +name: svelte-check +on: [push, pull_request] + +jobs: + check-format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '14' + - run: npm ci + - run: npm run check diff --git a/public/index.html b/index.html similarity index 92% rename from public/index.html rename to index.html index cedb9919d..969c05888 100644 --- a/public/index.html +++ b/index.html @@ -14,6 +14,6 @@