Skip to content

Commit 61679f5

Browse files
committed
initial commit
0 parents  commit 61679f5

30 files changed

+24452
-0
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
insert_final_newline = true
5+
charset = utf-8
6+
trim_trailing_whitespace = true
7+
end_of_line = lf
8+
9+
[*.{js,json}]
10+
indent_style = space
11+
indent_size = 2

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.*
2+
3+
# except
4+
!.editorconfig
5+
!.eslintrc.json
6+
!.github
7+
!.gitignore
8+
!.gitkeep
9+
!.lintstagedrc
10+
!.node-version
11+
!.npmignore
12+
!.npmrc
13+
!.nvmrc
14+
!.prettierignore
15+
!.prettierrc.json
16+
!.lintstagedrc
17+
!.husky
18+
!.storybook
19+
20+
# generated
21+
.vercel
22+
/node_modules
23+
/lib
24+
/dist
25+
26+
# testing
27+
coverage
28+
artifacts

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/post-merge

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
# git hook to run a command after `git pull` if a specified file was changed
4+
# Run `chmod +x .husky/post-merge` to make it executable then put it into `.git/hooks/`.
5+
6+
changes="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
7+
8+
check() {
9+
echo "$changes" | grep --quiet "$1" && eval "$2"
10+
}
11+
12+
check package.json "npm install"

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
. "$(dirname "$0")/_/husky.sh"
4+
5+
npx lint-staged

.lintstagedrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"./src/**/*.{test.js,js,svelte}": ["eslint -c ./.eslintrc.js --fix", "prettier --write"]
3+
}

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package.json
2+
/src/**/*.snap.js

.prettierrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"printWidth": 120,
3+
"trailingComma": "none",
4+
"tabWidth": 2,
5+
"semi": true,
6+
"bracketSpacing": true,
7+
"arrowParens": "always",
8+
"singleQuote": true,
9+
"svelteSortOrder": "options-scripts-markup-styles",
10+
"svelteStrictMode": false,
11+
"svelteBracketNewLine": true,
12+
"svelteAllowShorthand": true
13+
}

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [0.1.0](https://github.com/svelte-plugins/tooltips/releases/tag/v0.1.0) - 2022-08-21
9+
10+
- Initial release

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021-present Kieran Boyle
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)