Skip to content

Commit 480cb33

Browse files
committed
🚀 Initial commit, setup Rollup
0 parents  commit 480cb33

23 files changed

+23639
-0
lines changed

.babelrc.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
presets: [
3+
[
4+
'@babel/env',
5+
{
6+
targets: {
7+
browsers: 'last 2 Chrome versions',
8+
node: 'current'
9+
}
10+
}
11+
],
12+
'@babel/react'
13+
],
14+
plugins: [
15+
'@babel/plugin-proposal-class-properties',
16+
'@babel/plugin-external-helpers'
17+
]
18+
};

.editorconfig

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

.eslintignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
example/node_modules/**
6+
7+
# production
8+
/build
9+
/dist
10+
11+
# misc
12+
.DS_Store
13+
.env
14+
npm-debug.log*
15+
yarn-debug.log*
16+
yarn-error.log*
17+
18+
example/.DS_Store
19+
example/.env
20+
example/npm-debug.log*
21+
example/yarn-debug.log*
22+
example/yarn-error.log*

.eslintrc.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/**
2+
* Configure ESLint
3+
*
4+
* https://eslint.org/docs/user-guide/configuring
5+
*/
6+
module.exports = {
7+
parser: 'babel-eslint',
8+
extends: ['airbnb', 'prettier', 'prettier/react', 'plugin:import/warnings'],
9+
env: {
10+
es6: true
11+
},
12+
plugins: ['prettier', 'import', 'react-hooks'],
13+
globals: {
14+
document: true,
15+
window: true,
16+
process: true
17+
},
18+
parserOptions: {
19+
sourceType: 'module'
20+
},
21+
rules: {
22+
'react/forbid-prop-types': 0,
23+
'react/jsx-filename-extension': 0,
24+
'react/react-in-jsx-scope': 0,
25+
'class-methods-use-this': 0,
26+
'no-unused-expressions': ['error', { allowTaggedTemplates: true }],
27+
'react/no-unused-prop-types': 0,
28+
'consistent-return': 0,
29+
'jsx-a11y/anchor-is-valid': 0,
30+
'import/no-extraneous-dependencies': 0,
31+
'prettier/prettier': 'error',
32+
'react/destructuring-assignment': 0,
33+
// Enforce React Hooks rules
34+
// https://www.npmjs.com/package/eslint-plugin-react-hooks
35+
'react-hooks/rules-of-hooks': 'error',
36+
'react-hooks/exhaustive-deps': 'warn'
37+
}
38+
};

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
# See https://help.github.com/ignore-files/ for more about ignoring files.
3+
4+
# dependencies
5+
node_modules
6+
7+
# builds
8+
build
9+
dist
10+
.rpt2_cache
11+
12+
# misc
13+
.DS_Store
14+
.env
15+
.env.local
16+
.env.development.local
17+
.env.test.local
18+
.env.production.local
19+
20+
npm-debug.log*
21+
yarn-debug.log*
22+
yarn-error.log*

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/**
2+
example/node_modules/**

.prettierrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* Configure Prettier
3+
*
4+
* https://prettier.io/docs/en/configuration.html#basic-configuration
5+
*/
6+
module.exports = {
7+
singleQuote: true,
8+
semi: true
9+
};

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
language: node_js
2+
node_js:
3+
- 9
4+
- 8

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"files.eol": "\n",
4+
"javascript.validate.enable": false,
5+
"editor.tabSize": 2,
6+
"editor.detectIndentation": false
7+
}

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) 2019-present Tim Ellenberger
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)