Skip to content

Commit 5c515c2

Browse files
committed
Initial commit
0 parents  commit 5c515c2

File tree

9 files changed

+538
-0
lines changed

9 files changed

+538
-0
lines changed

.eslintrc.json

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 6,
6+
"sourceType": "module"
7+
},
8+
"plugins": [
9+
"@typescript-eslint"
10+
],
11+
"rules": {
12+
"@typescript-eslint/naming-convention": [
13+
"warn",
14+
{
15+
"selector": "function",
16+
"format": ["camelCase", "snake_case"]
17+
}
18+
],
19+
"@typescript-eslint/semi": "warn",
20+
"semi": "warn",
21+
"getter-return": "warn",
22+
"no-dupe-args" :"warn",
23+
"no-dupe-else-if": "warn",
24+
"no-dupe-keys": "warn",
25+
"no-duplicate-case": "warn",
26+
"no-empty": "warn",
27+
"accessor-pairs": "warn",
28+
"array-callback-return": "warn",
29+
"block-scoped-var": "warn",
30+
"class-methods-use-this": "warn",
31+
"complexity": "warn",
32+
"consistent-return": "warn",
33+
"curly": "warn",
34+
"default-case": "warn",
35+
"default-case-last": "warn",
36+
"default-param-last": "warn",
37+
"dot-location": "off",
38+
"dot-notation": "warn",
39+
"eqeqeq": "warn",
40+
"grouped-accessor-pairs": "warn",
41+
"guard-for-in": "off",
42+
"max-classes-per-file": ["warn", 2],
43+
"no-alert": "warn",
44+
"no-caller": "warn",
45+
"no-case-declarations": "off",
46+
"no-constructor-return": "warn",
47+
"no-div-regex": "warn",
48+
"no-else-return": "warn",
49+
"no-empty-function": "warn",
50+
"no-empty-pattern": "warn",
51+
"no-eq-null": "warn",
52+
"no-eval": "warn",
53+
"no-extend-native": "off",
54+
"no-extra-bind": "warn",
55+
"no-extra-label": "warn",
56+
"no-fallthrough": "warn",
57+
"no-floating-decimal": "warn",
58+
"no-global-assign": "warn",
59+
"no-implicit-coercion": "warn",
60+
"no-implicit-globals": "warn",
61+
"no-implied-eval": "warn",
62+
"no-invalid-this": "off",
63+
"no-iterator": "warn",
64+
"no-labels": "warn",
65+
"no-lone-blocks": "warn",
66+
"no-loop-func": "warn",
67+
"no-magic-numbers": "off",
68+
"no-multi-spaces": "warn",
69+
"no-multi-str": "warn",
70+
"no-new": "warn",
71+
"no-new-func": "warn",
72+
"no-new-wrappers": "warn",
73+
"no-octal": "warn",
74+
"no-octal-escape": "warn",
75+
"no-param-reassign": "warn",
76+
"no-proto": "warn",
77+
"no-redeclare": "off",
78+
"no-restricted-properties": "warn",
79+
"no-return-assign": "warn",
80+
"no-return-await": "warn",
81+
"no-script-url": "warn",
82+
"no-self-assign": "warn",
83+
"no-self-compare": "warn",
84+
"no-sequences": "warn",
85+
"no-throw-literal": "warn",
86+
"no-unmodified-loop-condition": "warn",
87+
"no-unused-expressions": "warn",
88+
"no-unused-labels": "warn",
89+
"no-useless-call": "warn",
90+
"no-useless-catch": "warn",
91+
"no-useless-concat": "warn",
92+
"no-useless-escape": "warn",
93+
"no-useless-return": "warn",
94+
"no-void": "warn",
95+
"no-warning-comments": "warn",
96+
"no-with": "warn",
97+
"prefer-named-capture-group": "warn",
98+
"prefer-promise-reject-errors": "off",
99+
"prefer-regex-literals": "warn",
100+
"radix": "warn",
101+
"require-await": "warn",
102+
"require-unicode-regexp": "off",
103+
"vars-on-top": "warn",
104+
"wrap-iife": "warn"
105+
}
106+
}

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.gitignore

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# TypeScript v1 declaration files
45+
typings/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
78+
# Next.js build output
79+
.next
80+
81+
# Nuxt.js build / generate output
82+
.nuxt
83+
dist
84+
85+
# Gatsby files
86+
.cache/
87+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88+
# https://nextjs.org/blog/next-9-1#public-directory-support
89+
# public
90+
91+
# vuepress build output
92+
.vuepress/dist
93+
94+
# Serverless directories
95+
.serverless/
96+
97+
# FuseBox cache
98+
.fusebox/
99+
100+
# DynamoDB Local files
101+
.dynamodb/
102+
103+
# TernJS port file
104+
.tern-port

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 TopMarksDevelopment
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.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Hover Box (A JavaScript package)
2+
3+
Some text

package-lock.json

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "hoverbox",
3+
"version": "0.0.0-alpha.0",
4+
"description": "A compact tool to show information on hover",
5+
"main": "src/index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/TopMarksDevelopment/javascript.hoverbox.git"
12+
},
13+
"keywords": [
14+
"hover over",
15+
"hover reveal",
16+
"vanilla js hover"
17+
],
18+
"author": "TopMarksDevelopment",
19+
"license": "MIT",
20+
"bugs": {
21+
"url": "https://github.com/TopMarksDevelopment/Javascript.HoverBox/issues"
22+
},
23+
"homepage": "https://github.com/TopMarksDevelopment/Javascript.HoverBox#readme",
24+
"devDependencies": {
25+
"typescript": "^4.2.4"
26+
},
27+
"dependencies": {
28+
"hoverposition": "file:../HoverPosition"
29+
}
30+
}

0 commit comments

Comments
 (0)