Skip to content

Commit 4ded732

Browse files
new commit
0 parents  commit 4ded732

130 files changed

Lines changed: 23232 additions & 0 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
indent_style = space
10+
indent_size = 2
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
trim_trailing_whitespace = false

.eslintrc.js

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
const fs = require('fs');
2+
const path = require('path');
3+
4+
const prettierOptions = JSON.parse(
5+
fs.readFileSync(path.resolve(__dirname, '.prettierrc'), 'utf8'),
6+
);
7+
8+
module.exports = {
9+
parser: 'babel-eslint',
10+
extends: ['airbnb', 'prettier', 'prettier/react'],
11+
plugins: ['prettier', 'redux-saga', 'react', 'react-hooks', 'jsx-a11y'],
12+
env: {
13+
jest: true,
14+
browser: true,
15+
node: true,
16+
es6: true,
17+
},
18+
parserOptions: {
19+
ecmaVersion: 6,
20+
sourceType: 'module',
21+
ecmaFeatures: {
22+
jsx: true,
23+
},
24+
},
25+
rules: {
26+
'prettier/prettier': ['error', prettierOptions],
27+
'arrow-body-style': [2, 'as-needed'],
28+
'class-methods-use-this': 0,
29+
'import/imports-first': 0,
30+
'import/newline-after-import': 0,
31+
'import/no-dynamic-require': 0,
32+
'import/no-extraneous-dependencies': 0,
33+
'import/no-named-as-default': 0,
34+
'import/no-unresolved': 2,
35+
'import/no-webpack-loader-syntax': 0,
36+
'import/prefer-default-export': 0,
37+
indent: [
38+
2,
39+
2,
40+
{
41+
SwitchCase: 1,
42+
},
43+
],
44+
'jsx-a11y/aria-props': 2,
45+
'jsx-a11y/heading-has-content': 0,
46+
'jsx-a11y/label-has-associated-control': [
47+
2,
48+
{
49+
// NOTE: If this error triggers, either disable it or add
50+
// your custom components, labels and attributes via these options
51+
// See https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-associated-control.md
52+
controlComponents: ['Input'],
53+
},
54+
],
55+
'jsx-a11y/label-has-for': 0,
56+
'jsx-a11y/mouse-events-have-key-events': 2,
57+
'jsx-a11y/role-has-required-aria-props': 2,
58+
'jsx-a11y/role-supports-aria-props': 2,
59+
'max-len': 0,
60+
'newline-per-chained-call': 0,
61+
'no-confusing-arrow': 0,
62+
'no-console': 1,
63+
'no-unused-vars': 2,
64+
'no-use-before-define': 0,
65+
'prefer-template': 2,
66+
'react/destructuring-assignment': 0,
67+
'react-hooks/rules-of-hooks': 'error',
68+
'react/jsx-closing-tag-location': 0,
69+
'react/forbid-prop-types': 0,
70+
'react/jsx-first-prop-new-line': [2, 'multiline'],
71+
'react/jsx-filename-extension': 0,
72+
'react/jsx-no-target-blank': 0,
73+
'react/jsx-uses-vars': 2,
74+
'react/require-default-props': 0,
75+
'react/require-extension': 0,
76+
'react/self-closing-comp': 0,
77+
'react/sort-comp': 0,
78+
'redux-saga/no-yield-in-race': 2,
79+
'redux-saga/yield-effects': 2,
80+
'require-yield': 0,
81+
},
82+
settings: {
83+
'import/resolver': {
84+
webpack: {
85+
config: './internals/webpack/webpack.prod.babel.js',
86+
},
87+
},
88+
},
89+
};

.gitattributes

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# From https://github.com/Danimoth/gitattributes/blob/master/Web.gitattributes
2+
3+
# Handle line endings automatically for files detected as text
4+
# and leave all files detected as binary untouched.
5+
* text=auto
6+
7+
#
8+
# The above will handle all files NOT found below
9+
#
10+
11+
#
12+
## These files are text and should be normalized (Convert crlf => lf)
13+
#
14+
15+
# source code
16+
*.php text
17+
*.css text
18+
*.sass text
19+
*.scss text
20+
*.less text
21+
*.styl text
22+
*.js text eol=lf
23+
*.coffee text
24+
*.json text
25+
*.htm text
26+
*.html text
27+
*.xml text
28+
*.svg text
29+
*.txt text
30+
*.ini text
31+
*.inc text
32+
*.pl text
33+
*.rb text
34+
*.py text
35+
*.scm text
36+
*.sql text
37+
*.sh text
38+
*.bat text
39+
40+
# templates
41+
*.ejs text
42+
*.hbt text
43+
*.jade text
44+
*.haml text
45+
*.hbs text
46+
*.dot text
47+
*.tmpl text
48+
*.phtml text
49+
50+
# server config
51+
.htaccess text
52+
.nginx.conf text
53+
54+
# git config
55+
.gitattributes text
56+
.gitignore text
57+
.gitconfig text
58+
59+
# code analysis config
60+
.jshintrc text
61+
.jscsrc text
62+
.jshintignore text
63+
.csslintrc text
64+
65+
# misc config
66+
*.yaml text
67+
*.yml text
68+
.editorconfig text
69+
70+
# build config
71+
*.npmignore text
72+
*.bowerrc text
73+
74+
# Heroku
75+
Procfile text
76+
.slugignore text
77+
78+
# Documentation
79+
*.md text
80+
LICENSE text
81+
AUTHORS text
82+
83+
84+
#
85+
## These files are binary and should be left untouched
86+
#
87+
88+
# (binary is a macro for -text -diff)
89+
*.png binary
90+
*.jpg binary
91+
*.jpeg binary
92+
*.gif binary
93+
*.ico binary
94+
*.mov binary
95+
*.mp4 binary
96+
*.mp3 binary
97+
*.flv binary
98+
*.fla binary
99+
*.swf binary
100+
*.gz binary
101+
*.zip binary
102+
*.7z binary
103+
*.ttf binary
104+
*.eot binary
105+
*.woff binary
106+
*.pyc binary
107+
*.pdf binary
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
Before opening a new issue, please take a moment to review our [**community guidelines**](https://github.com/react-boilerplate/react-boilerplate/blob/master/CONTRIBUTING.md) to make the contribution process easy and effective for everyone involved.
8+
9+
## Description
10+
A clear and concise description of what the bug is.
11+
12+
## Steps to reproduce
13+
Steps to reproduce the behavior:
14+
15+
(Add link to a demo on https://jsfiddle.net or similar if possible)
16+
17+
**Expected behavior**
18+
A clear and concise description of what you expected to happen.
19+
20+
**Screenshots**
21+
If applicable, add screenshots to help explain your problem.
22+
23+
## Versions
24+
25+
- React-Boilerplate:
26+
- Node/NPM:
27+
- Browser:
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
**Is your feature request related to a problem? Please describe.**
8+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
10+
**Describe the solution you'd like**
11+
A clear and concise description of what you want to happen.
12+
13+
**Describe alternatives you've considered**
14+
A clear and concise description of any alternative solutions or features you've considered.
15+
16+
**Additional context**
17+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## React Boilerplate
2+
3+
Thank you for contributing! Please take a moment to review our [**contributing guidelines**](https://github.com/react-boilerplate/react-boilerplate/blob/master/CONTRIBUTING.md)
4+
to make the process easy and effective for everyone involved.
5+
6+
**Please open an issue** before embarking on any significant pull request, especially those that
7+
add a new library or change existing tests, otherwise you risk spending a lot of time working
8+
on something that might not end up being merged into the project.
9+
10+
Before opening a pull request, please ensure:
11+
12+
- [ ] You have followed our [**contributing guidelines**](https://github.com/react-boilerplate/react-boilerplate/blob/master/CONTRIBUTING.md)
13+
- [ ] Double-check your branch is based on `dev` and targets `dev`
14+
- [ ] Pull request has tests (we are going for 100% coverage!)
15+
- [ ] Code is well-commented, linted and follows project conventions
16+
- [ ] Documentation is updated (if necessary)
17+
- [ ] Internal code generators and templates are updated (if necessary)
18+
- [ ] Description explains the issue/use-case resolved and auto-closes related issues
19+
20+
Be kind to code reviewers, please try to keep pull requests as small and focused as possible :)
21+
22+
**IMPORTANT**: By submitting a patch, you agree to allow the project
23+
owners to license your work under the terms of the [MIT License](https://github.com/react-boilerplate/react-boilerplate/blob/master/LICENSE.md).

.github/issue-close-app.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
comment: This issue was automatically closed because it does not follow either one of our templates. Please open a new issue and fill out the template that appears instead of deleting it. If you're reporting an issue, it's especially important that you provide detailed steps for how to reproduce it.
2+
3+
issueConfigs:
4+
5+
- content:
6+
- Description
7+
- Steps to reproduce
8+
- Versions
9+
10+
- content:
11+
- Is your feature request related to a problem
12+
- Describe the solution you'd like
13+
- Describe alternatives you've considered
14+
- Additional context

.github/lock.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Configuration for lock-threads - https://github.com/dessant/lock-threads
2+
3+
# Number of days of inactivity before a closed issue or pull request is locked
4+
daysUntilLock: 30
5+
6+
# Issues and pull requests with these labels will not be locked. Set to `[]` to disable
7+
exemptLabels: []
8+
9+
# Label to add before locking, such as `outdated`. Set to `false` to disable
10+
lockLabel: false
11+
12+
# Comment to post before locking. Set to `false` to disable
13+
lockComment: >
14+
This thread has been automatically locked since there has not been
15+
any recent activity after it was closed. Please open a new issue for
16+
related bugs.
17+
18+
# Limit to only `issues` or `pulls`
19+
# only: issues
20+
21+
# Optionally, specify configuration settings just for `issues` or `pulls`
22+
# issues:
23+
# exemptLabels:
24+
# - help-wanted
25+
# lockLabel: outdated
26+
27+
# pulls:
28+
# daysUntilLock: 30
29+

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Don't check auto-generated stuff into git
2+
coverage
3+
build
4+
node_modules
5+
stats.json
6+
7+
# Cruft
8+
.DS_Store
9+
npm-debug.log
10+
.idea

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/dubnium

0 commit comments

Comments
 (0)