Skip to content

Commit 62fac72

Browse files
authored
Merge pull request #1 from codigofalado/development
v0.1: First beta version
2 parents 90ed15c + 7f75655 commit 62fac72

Some content is hidden

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

46 files changed

+15169
-0
lines changed

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

.eslintrc.js

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
},
6+
extends: [
7+
'react-app',
8+
'airbnb',
9+
'plugin:react/recommended',
10+
'prettier/react',
11+
'prettier/@typescript-eslint',
12+
],
13+
globals: {
14+
Atomics: 'readonly',
15+
SharedArrayBuffer: 'readonly',
16+
},
17+
parser: '@typescript-eslint/parser',
18+
parserOptions: {
19+
ecmaFeatures: {
20+
jsx: true,
21+
},
22+
ecmaVersion: 2018,
23+
sourceType: 'module',
24+
allowImportExportEverywhere: true,
25+
project: './tsconfig.json',
26+
tsconfigRootDir: '.',
27+
},
28+
plugins: [
29+
'react',
30+
'react-hooks',
31+
'prettier',
32+
'@typescript-eslint',
33+
'import-helpers',
34+
],
35+
rules: {
36+
camelcase: 'off',
37+
'object-curly-newline': 'off',
38+
'comma-dangle': 'off',
39+
'arrow-parens': 'off',
40+
'prettier/prettier': 'error',
41+
'global-require': 'off',
42+
'react/prop-types': 'off',
43+
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
44+
'no-param-reassign': 'off',
45+
'no-underscore-dangle': 'off',
46+
'function-paren-newline': 'off', // temporary
47+
'implicit-arrow-linebreak': 'off', // temporary
48+
indent: 'off', // temporary
49+
'operator-linebreak': 'off', // temporary
50+
'react/jsx-filename-extension': [
51+
'error',
52+
{
53+
extensions: ['.tsx'],
54+
},
55+
],
56+
'react-hooks/rules-of-hooks': 'error',
57+
'react-hooks/exhaustive-deps': 'warn',
58+
'import/prefer-default-export': 'off',
59+
'@typescript-eslint/explicit-function-return-type': 'off',
60+
'@typescript-eslint/explicit-member-accessibility': 'off',
61+
'import/extensions': [
62+
'error',
63+
'ignorePackages',
64+
{
65+
ts: 'never',
66+
tsx: 'never',
67+
},
68+
],
69+
'import-helpers/order-imports': [
70+
'warn',
71+
{
72+
newlinesBetween: 'always',
73+
groups: [
74+
'/^(react|styled-components)/',
75+
'module',
76+
['/^~/components/', '/^~/Layout/'],
77+
'/^~/contexts/',
78+
['parent', 'sibling', 'index'],
79+
'/^~/assets/',
80+
'/^(~|.)/styles/',
81+
],
82+
alphabetize: { order: 'asc', ignoreCase: true },
83+
},
84+
],
85+
},
86+
settings: {
87+
'import/extensions': ['js', 'jsx', '.ts', '.tsx'],
88+
'import/resolver': {
89+
'@typescript-eslint/parser': ['.ts', '.tsx'],
90+
alias: {
91+
map: [['~', './src']],
92+
extensions: ['.js', '.ts', '.tsx', '.d.ts', '.json'],
93+
},
94+
},
95+
'import/resolver': {
96+
typescript: {},
97+
},
98+
},
99+
};

.gitignore

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (http://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# Typescript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# dotenv environment variable files
55+
.env*
56+
57+
# gatsby files
58+
.cache/
59+
public
60+
61+
# Mac files
62+
.DS_Store
63+
64+
# Yarn
65+
yarn-error.log
66+
.pnp/
67+
.pnp.js
68+
# Yarn Integrity file
69+
.yarn-integrity

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.cache
2+
package.json
3+
package-lock.json
4+
public

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"tabWidth": 2,
3+
"endOfLine": "lf",
4+
"singleQuote": true,
5+
"trailingComma": "es5"
6+
}

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2020 Henrique Martins Miranda
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.
22+

config/metadata.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
title: 'Github Fight',
3+
description:
4+
'A simple way to compare Github Reactions.',
5+
author: '@henry-ns',
6+
};

font-preload-cache.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"timestamp":1585927005472,"hash":"53260b0eb5ca3cf626e0786300172b67","assets":{"/":{"/static/lato-latin-700-1efbd38aa76ddae2580fedf378276333.woff2":true}}}

gatsby-browser.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import 'typeface-lato';
2+
3+
export { wrapRootElement } from './gatsby/wrapRootElement';

gatsby-config.js

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
require('dotenv').config();
2+
3+
const path = require('path');
4+
5+
const siteMetadata = require('./config/metadata');
6+
7+
module.exports = {
8+
siteMetadata,
9+
plugins: [
10+
'gatsby-plugin-react-helmet-async',
11+
{
12+
resolve: 'gatsby-source-filesystem',
13+
options: {
14+
name: 'images',
15+
path: `${__dirname}/src/assets`,
16+
},
17+
},
18+
'gatsby-transformer-sharp',
19+
'gatsby-plugin-sharp',
20+
{
21+
resolve: 'gatsby-plugin-manifest',
22+
options: {
23+
name: 'Github Fight',
24+
short_name: 'Github Fight',
25+
start_url: '/',
26+
background_color: '#B23F42',
27+
theme_color: '#B23F42',
28+
display: 'minimal-ui',
29+
icon: 'src/assets/icon.png',
30+
},
31+
},
32+
{
33+
resolve: 'gatsby-source-graphql',
34+
options: {
35+
typeName: 'GitHub',
36+
fieldName: 'github',
37+
url: 'https://api.github.com/graphql',
38+
headers: {
39+
Authorization: `token ${process.env.GITHUB_TOKEN}`,
40+
},
41+
},
42+
},
43+
{
44+
resolve: 'gatsby-plugin-page-creator',
45+
options: {
46+
path: `${__dirname}/src/pages`,
47+
ignore: ['**/styles.ts'],
48+
},
49+
},
50+
'gatsby-plugin-netlify',
51+
'gatsby-plugin-preload-fonts',
52+
'gatsby-plugin-netlify-cache',
53+
'gatsby-plugin-styled-components',
54+
'gatsby-plugin-typescript',
55+
'gatsby-plugin-polished',
56+
{
57+
resolve: 'gatsby-plugin-root-import',
58+
options: {
59+
'~': path.join(__dirname, 'src'),
60+
},
61+
},
62+
// `gatsby-plugin-offline`,
63+
],
64+
};

0 commit comments

Comments
 (0)