forked from mefechoel/svelte-navigator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add hooks to access contexts - Append basepath on every navigation (not just Link 'to')
- Loading branch information
Showing
17 changed files
with
1,762 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[*.{js,jsx,ts,tsx,vue,svelte}] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
public/build/* | ||
public/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"plugins": [ | ||
"svelte3", | ||
"react" | ||
], | ||
"extends": [ | ||
"airbnb" | ||
], | ||
"rules": { | ||
"quotes": ["error", "double"], | ||
"indent": "off", | ||
"no-undef": "off", | ||
"no-underscore-dangle": "off", | ||
"arrow-parens": "off", | ||
"implicit-arrow-linebreak": "off", | ||
"operator-linebreak": "off", | ||
"prefer-const": "off", | ||
"object-curly-newline": "off", | ||
"function-paren-newline": "off", | ||
"no-confusing-arrow": "off", | ||
"no-continue": "off", | ||
"no-plusplus": "off" | ||
}, | ||
"env": { | ||
"es6": true, | ||
"browser": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 2019, | ||
"sourceType": "module" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["**/*.svelte"], | ||
"processor": "svelte3/svelte3", | ||
"rules": { | ||
"import/first": "off", | ||
"import/no-duplicates": "off", | ||
"import/no-mutable-exports": "off", | ||
"import/extensions": "off", | ||
"import/no-unresolved": "off" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
node_modules | ||
package-lock.json | ||
example/public/* | ||
!example/public/global.css | ||
!example/public/App.js | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
trailingComma: "all", | ||
svelteBracketNewLine: true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,41 @@ | ||
{ | ||
"name": "svelte-routing", | ||
"version": "1.4.2", | ||
"name": "svelte-navigator", | ||
"version": "0.1.0", | ||
"description": "A declarative Svelte routing library with SSR support", | ||
"main": "src/index.js", | ||
"svelte": "src/index.js", | ||
"author": "Emil Tholin @EmilTholin", | ||
"author": "Michel Strelow @mefechoel", | ||
"license": "MIT", | ||
"repository": "EmilTholin/svelte-routing", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/mefechoel/svelte-navigator.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/mefechoel/svelte-navigator/issues" | ||
}, | ||
"homepage": "https://github.com/mefechoel/svelte-navigator#readme", | ||
"keywords": [ | ||
"svelte", | ||
"router", | ||
"routing", | ||
"navigate", | ||
"navigator", | ||
"spa", | ||
"declarative routing" | ||
], | ||
"peerDependencies": { | ||
"svelte": "3.x" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^6.8.0", | ||
"eslint-config-airbnb": "^18.0.1", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-plugin-import": "^2.20.0", | ||
"eslint-plugin-jsx-a11y": "^6.2.3", | ||
"eslint-plugin-react": "^7.18.0", | ||
"eslint-plugin-svelte3": "^2.7.3", | ||
"prettier": "^1.19.1", | ||
"prettier-plugin-svelte": "^0.7.0", | ||
"svelte": "^3.20.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.