From: Ben Beltran Date: Tue, 18 Feb 2020 22:34:51 +0000 (+0100) Subject: Add svelte linting X-Git-Url: https://git.r.bdr.sh/rbdr/forum/commitdiff_plain/00a6e8aa8dd06f8a2bd7ccccdccfcb6215cf4841 Add svelte linting --- diff --git a/.eslintignore b/.eslintignore index 7e2f179..78f02ad 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,2 @@ assets +dist diff --git a/.eslintrc b/.eslintrc index bd7f885..8902297 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,7 +1,24 @@ { + "parserOptions": { + "ecmaVersion": 2019, + "sourceType": "module" + }, + "env": { + "es6": true, + "browser": true + }, "extends": [ "@hapi/eslint-config-hapi" ], + "plugins": [ + "svelte3" + ], + "overrides": [ + { + "files": ["**/*.svelte"], + "processor": "svelte3/svelte3" + } + ], "rules": { "indent": [ 2, @@ -9,8 +26,5 @@ ], "no-undef": 2, "require-yield": 0 - }, - "parserOptions": { - "sourceType": "module" } } diff --git a/app/application.js b/app/application.js index f5012fd..6f44869 100644 --- a/app/application.js +++ b/app/application.js @@ -1,7 +1,5 @@ import Forum from './forum.svelte'; -/* global document */ - const forum = new Forum({ target: document.body, props: { diff --git a/app/components/forum_list/forum_list.svelte b/app/components/forum_list/forum_list.svelte index e49c8d8..f77c79a 100644 --- a/app/components/forum_list/forum_list.svelte +++ b/app/components/forum_list/forum_list.svelte @@ -1,5 +1,5 @@