Skip to content

Commit 9b15dd3

Browse files
committed
Major upgrade
1 parent 4b3a992 commit 9b15dd3

File tree

254 files changed

+801008
-50344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

254 files changed

+801008
-50344
lines changed

.babelrc

-3
This file was deleted.

.babelrc.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const useESModules = !!process.env.MODULE;
2+
3+
module.exports = (api) => {
4+
api.cache(() => process.env.MODULE);
5+
return {
6+
plugins: [
7+
['@babel/transform-runtime', { useESModules }],
8+
'@babel/proposal-object-rest-spread',
9+
'@babel/proposal-class-properties',
10+
'@babel/proposal-export-default-from',
11+
'macros'
12+
],
13+
presets: useESModules ? ['@babel/react'] : ['@babel/env', '@babel/react']
14+
};
15+
};

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.eslintignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/
2+
dist/
3+
main/
4+
module/
5+
coverage/

.eslintrc.js

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
module.exports = {
2+
plugins: ['prettier', 'react-hooks'],
3+
extends: ['eslint:recommended', 'prettier', 'prettier/react', 'plugin:react-hooks/recommended'],
4+
parser: 'babel-eslint',
5+
parserOptions: {
6+
ecmaVersion: 11,
7+
sourceType: 'module',
8+
ecmaFeatures: {
9+
jsx: true
10+
}
11+
},
12+
env: {
13+
es6: true,
14+
browser: true,
15+
node: true,
16+
jest: true
17+
},
18+
rules: {
19+
'no-debugger': 2,
20+
'no-alert': 2,
21+
'no-await-in-loop': 0,
22+
'no-prototype-builtins': 0,
23+
'no-return-assign': ['error', 'except-parens'],
24+
'no-restricted-syntax': [
25+
2,
26+
'ForInStatement',
27+
'LabeledStatement',
28+
'WithStatement'
29+
],
30+
'no-unused-vars': [
31+
0,
32+
{
33+
ignoreSiblings: true,
34+
argsIgnorePattern: 'React|res|next|^_'
35+
}
36+
],
37+
'prefer-const': [
38+
'error',
39+
{
40+
destructuring: 'all'
41+
}
42+
],
43+
'no-unused-expressions': [
44+
2,
45+
{
46+
allowTaggedTemplates: true
47+
}
48+
],
49+
'no-console': 1,
50+
'comma-dangle': 2,
51+
'jsx-quotes': [2, 'prefer-double'],
52+
'linebreak-style': ['error', 'unix'],
53+
quotes: [
54+
2,
55+
'single',
56+
{
57+
avoidEscape: true,
58+
allowTemplateLiterals: true
59+
}
60+
],
61+
'prettier/prettier': [
62+
'error',
63+
{
64+
trailingComma: 'none',
65+
singleQuote: true,
66+
printWidth: 80
67+
}
68+
]
69+
}
70+
};

.gitignore

+48-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,48 @@
1-
node_modules/
2-
build/
3-
npm-debug.log
4-
a.json
5-
b.json
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
6+
# Runtime data
7+
pids
8+
*.pid
9+
*.seed
10+
11+
# dist
12+
main
13+
module
14+
15+
# Directory for instrumented libs generated by jscoverage/JSCover
16+
lib-cov
17+
18+
# Coverage directory used by tools like istanbul
19+
coverage
20+
21+
# nyc test coverage
22+
.nyc_output
23+
24+
# Compiled binary addons (http://nodejs.org/api/addons.html)
25+
build/Release
26+
27+
# Dependency directories
28+
node_modules
29+
jspm_packages
30+
31+
# Optional npm cache directory
32+
.npm
33+
34+
# Optional REPL history
35+
.node_repl_history
36+
37+
# Editors
38+
.idea
39+
40+
# Lib
41+
lib
42+
43+
# npm package lock
44+
package-lock.json
45+
yarn.lock
46+
47+
# others
48+
.DS_Store

.npmignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
*.log
2+
npm-debug.log*
3+
4+
# Coverage directory used by tools like istanbul
5+
coverage
6+
.nyc_output
7+
8+
# Dependency directories
9+
node_modules
10+
11+
# npm package lock
12+
package-lock.json
13+
yarn.lock
14+
15+
# project files
16+
src
17+
test
18+
examples
19+
CHANGELOG.md
20+
.travis.yml
21+
.editorconfig
22+
.eslintignore
23+
.eslintrc
24+
.babelrc
25+
.gitignore

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
scripts-prepend-node-path=true

.travis.yml

-13
This file was deleted.

.vscode/settings.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"[javascriptreact]": {
4+
"editor.formatOnSave": false
5+
},
6+
"[javascript]": {
7+
"editor.formatOnSave": false
8+
},
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll.eslint": true
11+
},
12+
"eslint.validate": [
13+
"javascript",
14+
"javascriptreact"
15+
]
16+
}

CHANGELOG.md

-3
This file was deleted.

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2020 Dan Lynch <[email protected]>
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.

LICENSE.md

-30
This file was deleted.

README.md

+4-2
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)