Skip to content

Commit aad0584

Browse files
committed
🎉 Init
0 parents  commit aad0584

17 files changed

+2507
-0
lines changed

.babelrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-react"
5+
]//,
6+
// "plugins": ["@babel/plugin-proposal-class-properties"]
7+
}

.eslintrc.js

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
extends: [
4+
'plugin:@typescript-eslint/recommended',
5+
'plugin:react/recommended',
6+
],
7+
parserOptions: {
8+
ecmaVersion: 2018,
9+
sourceType: 'module',
10+
},
11+
plugins: ['react-hooks'],
12+
rules: {
13+
curly: 'error',
14+
'@typescript-eslint/indent': 'off',
15+
'@typescript-eslint/no-non-null-assertion': 'off',
16+
'@typescript-eslint/no-empty-function': 'off',
17+
'@typescript-eslint/ban-ts-ignore': 'warn',
18+
'@typescript-eslint/no-explicit-any': 'off',
19+
'@typescript-eslint/explicit-function-return-type': 'off',
20+
'@typescript-eslint/no-empty-function': 'off',
21+
'@typescript-eslint/no-object-literal-type-assertion': 'off',
22+
'react-hooks/rules-of-hooks': 'error',
23+
'react-hooks/exhaustive-deps': 'error',
24+
'react/display-name': 'warn',
25+
'no-console': 'error',
26+
"@typescript-eslint/no-this-alias": [
27+
"error",
28+
{
29+
"allowDestructuring": true, // Allow `const { props, state } = this`; false by default
30+
"allowedNames": ["self"] // Allow `const self = this`; `[]` by default
31+
}
32+
],
33+
'@typescript-eslint/no-var-requires': 0,
34+
},
35+
overrides: [
36+
{
37+
files: ['*.spec.ts', '*.spec.tsx'],
38+
rules: {
39+
// Allow testing runtime errors to suppress TS errors
40+
'@typescript-eslint/ban-ts-ignore': 'off',
41+
},
42+
},
43+
],
44+
settings: {
45+
react: {
46+
pragma: 'React',
47+
version: 'detect',
48+
},
49+
},
50+
};

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
node_modules
5+
6+
# builds
7+
build
8+
dist
9+
10+
package-lock.json
11+
12+
docs/.next

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"trailingComma": "all",
3+
"singleQuote": true
4+
}

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
language: node_js
2+
node_js:
3+
- 12
4+
- 11
5+
- 10

LICENSE

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

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# next-social-share-buttons
2+
3+
[![NPM](https://img.shields.io/npm/v/next-social-share-buttons.svg)](https://www.npmjs.com/package/next-social-share-buttons) [![downloads](https://img.shields.io/npm/dm/next-social-share-buttons.svg?style=flat-square)](https://www.npmjs.com/package/next-social-share-buttons) ![npm bundle size](https://img.shields.io/bundlephobia/min/next-social-share-buttons) [![Build Status](https://api.travis-ci.com/Bunlong/next-social-share-buttons.svg?branch=master)](https://travis-ci.com/Bunlong/next-social-share-buttons) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
4+
5+
## 💖 Wrap Up
6+
7+
If you think any of the `next-social-share-buttons` can be improved, please do open a PR with any updates and submit any issues. Also, I will continue to improve this, so you might want to watch/star this repository to revisit.
8+
9+
## 🌟 Contribution
10+
11+
We'd love to have your helping hand on contributions to `next-social-share-buttons` by forking and sending a pull request!
12+
13+
Your contributions are heartily ♡ welcome, recognized and appreciated. (✿◠‿◠)
14+
15+
How to contribute:
16+
17+
- Open pull request with improvements
18+
- Discuss ideas in issues
19+
- Spread the word
20+
- Reach out with any feedback
21+
22+
## ⚖️ License
23+
24+
The MIT License [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

0 commit comments

Comments
 (0)