diff --git a/.eslintrc.js b/.eslintrc.js index dcbb581..75c2b93 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,8 +1,9 @@ /* eslint-env node */ module.exports = { - plugins: ['@typescript-eslint', 'svelte3'], + plugins: ['@typescript-eslint', 'svelte'], extends: [ 'eslint:recommended', + 'plugin:svelte/recommended', // 'plugin:@typescript-eslint/recommended', // 'plugin:@typescript-eslint/recommended-requiring-type-checking', ], @@ -22,14 +23,11 @@ module.exports = { }, overrides: [ { - // see https://github.com/sveltejs/eslint-plugin-svelte3/blob/master/OTHER_PLUGINS.md files: ['*.svelte'], - processor: 'svelte3/svelte3', - rules: { - 'import/first': 'off', - 'import/no-duplicates': 'off', - 'import/no-mutable-exports': 'off', - 'import/no-unresolved': 'off', + parser: 'svelte-eslint-parser', + // Parse the `
EpiVis is an interactive tool for visualizing epidemiological time-series data. This tour will introduce its main features.
@@ -95,7 +95,7 @@ tour.addStep({ tour.addStep({ attachTo: { element: '[data-tour=top]', - on: 'auto', + on: 'bottom', }, title: 'Chart Menu', text: `The menu on top of the chart features several different options, such as changing colors or exporting the chart as an image.`, @@ -105,7 +105,7 @@ tour.addStep({ tour.addStep({ attachTo: { element: '[data-tour=navmode]', - on: 'auto', + on: 'bottom', }, title: 'Toggle between Navigation Modes', text: `EpiVis supports four navigation modes: Autofit (the default) ensures that all enabled datasets are fully displayed within the chart, while Pan, Crop, and Zoom can be used to manipulate the view.`, @@ -115,7 +115,7 @@ tour.addStep({ tour.addStep({ attachTo: { element: '[data-tour=random]', - on: 'auto', + on: 'bottom', }, title: 'Randomize Colors', text: `This action will recolor all visible datasets. Keyboard Shortcut: r`, @@ -125,7 +125,7 @@ tour.addStep({ tour.addStep({ attachTo: { element: '[data-tour=points]', - on: 'auto', + on: 'bottom', }, title: 'Toggle Point Rendering', text: `This action will change whether points should be rendered representing individual data points of the time series. Keyboard Shortcut: s`, @@ -135,7 +135,7 @@ tour.addStep({ tour.addStep({ attachTo: { element: '[data-tour=scale]', - on: 'auto', + on: 'bottom', }, title: 'Dataset Scaling', text: `The "Scale by 1/mean" action will bring all currently enabled signals within a more similar range, while "Reset Dataset Scaling" will reset them to their actual magnitudes.`, @@ -145,7 +145,7 @@ tour.addStep({ tour.addStep({ attachTo: { element: '[data-tour=screenshot]', - on: 'auto', + on: 'bottom', }, title: 'Download Screenshot', text: `This action will download the current view in PNG format.`, @@ -155,7 +155,7 @@ tour.addStep({ tour.addStep({ attachTo: { element: '[data-tour=link]', - on: 'auto', + on: 'bottom', }, title: 'Create Shareable Link', text: `This action will show a shareable link that can be used to reproduce the current view (if possible).`, @@ -180,7 +180,7 @@ tour.addStep({ tour.addStep({ attachTo: { element: '[data-tour=csv]', - on: 'auto', + on: 'bottom', }, title: 'Load CSV File', text: `EpiVis supports loading CSV files to explore custom datasets.`, @@ -190,7 +190,7 @@ tour.addStep({ tour.addStep({ attachTo: { element: '[data-tour=api]', - on: 'auto', + on: 'bottom', }, title: 'Load Data from EpiData API', text: `A more common option is to load existing time series from numerous data sources provided by the EpiData API.`, @@ -200,7 +200,7 @@ tour.addStep({ tour.addStep({ attachTo: { element: '[data-tour=manually]', - on: 'auto', + on: 'bottom', }, title: 'Draw a custom line (Advanced)', text: `Another more advanced option is to define a custom line that should be drawn in the chart.`, @@ -210,7 +210,7 @@ tour.addStep({ tour.addStep({ attachTo: { element: '[data-tour=kernel]', - on: 'auto', + on: 'bottom', }, title: 'Derive via a kernel function (Advanced)', text: `And another option is to derive one dataset by applying a kernel function to combine other datasets. For example, create a new dataset representing the average of two other datasets.`, diff --git a/tsconfig.json b/tsconfig.json index 6757b6f..88fa8fd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,6 @@ "compilerOptions": { "module": "ES2020", "lib": ["ES2019", "DOM"], - "importsNotUsedAsValues": "error", "sourceMap": true, "strict": true, "noImplicitThis": true, @@ -15,7 +14,8 @@ "strictFunctionTypes": true, "strictNullChecks": true, "strictPropertyInitialization": true, - "resolveJsonModule": true + "resolveJsonModule": true, + "verbatimModuleSyntax": true }, "include": ["src/**/*", "types.d.ts"], "exclude": ["node_modules/*", "__sapper__/*", "public/*"]