Skip to content

Commit

Permalink
Tweaks to comments and eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ItalyPaleAle committed Sep 20, 2020
1 parent 75ece5a commit 03336fa
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
8 changes: 5 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Test app
test/app

# Compiled
test/app/dist
examples/*/dist

# Files that use dynamic imports
test/app/src/routes.js
examples/dynamic-imports/src/routes.js
2 changes: 1 addition & 1 deletion examples/basic-routing/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<script>
// Import the router component
// Normally, this would be import: `import Router from 'svelte-spa-router'`
// Normally, this would be: `import Router from 'svelte-spa-router'`
import Router from '../../../Router.svelte'
// Import the list of routes
Expand Down
7 changes: 4 additions & 3 deletions test/app/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,14 @@

<script>
// Import the router component
// Normally, this would be import: `import Router from 'svelte-spa-router'`
// Normally, this would be: `import Router from 'svelte-spa-router'`
import Router from '../../../Router.svelte'
// Import the "link" action and the methods to control history programmatically from the same module, as well as the location store
// Import the "link" action, the methods to control history programmatically from the same module, and the location store
// Normally, this would be: `import {link, push, pop, replace, location, querystring} from 'svelte-spa-router/active'`
import {link, push, pop, replace, location, querystring} from '../../../Router.svelte'
// Import the "active" action
// Normally, this would be import: `import active from 'svelte-spa-router/active'`
// Normally, this would be: `import active from 'svelte-spa-router/active'`
import active from '../../../active'
// Import the list of routes
Expand Down
4 changes: 3 additions & 1 deletion test/app/src/routes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* eslint-disable */

// Import the "wrap" function
// Normally, this would be import: `import {wrap} from 'svelte-spa-router/wrap'`
// Normally, this would be: `import {wrap} from 'svelte-spa-router/wrap'`
import {wrap} from '../../../wrap.js'

// Components
Expand Down
2 changes: 1 addition & 1 deletion test/app/src/routes/Catalog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<script>
// Import the link action
// Normally, this would be import: `import {link} from 'svelte-spa-router'`
// Normally, this would be: `import {link} from 'svelte-spa-router'`
import {link} from '../../../../Router.svelte'
export let params
let id
Expand Down
2 changes: 1 addition & 1 deletion test/app/src/routes/Nested.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<script>
// Import the router component
// Normally, this would be import: `import Router from 'svelte-spa-router'`
// Normally, this would be: `import Router from 'svelte-spa-router'`
import Router from '../../../../Router.svelte'
// Routes
Expand Down

0 comments on commit 03336fa

Please sign in to comment.