Skip to content

Commit 6cf12b7

Browse files
committed
first commit
0 parents  commit 6cf12b7

26 files changed

+17533
-0
lines changed

Diff for: .eslintrc.js

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
jest: true,
6+
},
7+
extends: [
8+
'plugin:react/recommended',
9+
'airbnb',
10+
'plugin:prettier/recommended',
11+
],
12+
globals: {
13+
Atomics: 'readonly',
14+
SharedArrayBuffer: 'readonly',
15+
page: true,
16+
browser: true,
17+
context: true,
18+
jestPuppeteer: true,
19+
},
20+
parser: 'babel-eslint',
21+
parserOptions: {
22+
ecmaFeatures: {
23+
classes: true,
24+
jsx: true,
25+
},
26+
ecmaVersion: 2018,
27+
sourceType: 'module',
28+
},
29+
plugins: ['react', 'react-hooks'],
30+
rules: {
31+
'react/prop-types': 'off',
32+
'import/no-extraneous-dependencies': [
33+
'off',
34+
{ devDependencies: ['**/*.stories.js', '**/*.stories.jsx'] },
35+
],
36+
'react-hooks/rules-of-hooks': 'error', // Checks rules of Hooks
37+
'react-hooks/exhaustive-deps': 'warn', // Checks effect dependencies
38+
},
39+
settings: {
40+
'import/resolver': {
41+
alias: [
42+
['@', './src'],
43+
['@js', './src/js'],
44+
['@pages', './src/pages'],
45+
['@components', './src/components'],
46+
['@locales', './src/locales/i18n'],
47+
],
48+
},
49+
},
50+
};

Diff for: .gitignore

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

Diff for: .prettierrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"singleQuote": true,
5+
"trailingComma": "all",
6+
"bracketSpacing": true,
7+
"semi": true,
8+
"useTabs": false,
9+
"arrowParens": "avoid",
10+
"endOfLine": "lf"
11+
}

Diff for: .stylelintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": [ "stylelint-prettier/recommended"],
3+
}

Diff for: LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 yumcoder
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)