Skip to content

Commit cd1a91d

Browse files
[#166998704] 🎉 (Base) Initial commit
0 parents  commit cd1a91d

File tree

325 files changed

+31786
-0
lines changed

Some content is hidden

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

325 files changed

+31786
-0
lines changed

‎.editorconfig

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

‎.eslintrc.js

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

‎.gitattributes

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

‎.github/PULL_REQUEST_TEMPLATE.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## Feature
2+
3+
A short description of the feature that is being merged in, ideally this can
4+
be copy/pasted from the Tracker task description.
5+
6+
## Approach
7+
8+
A summary of your approach to develop and validate the feature.
9+
10+
## Resources
11+
12+
Any resources (usually just a list of links) that helped with completing the
13+
feature or understanding how it works.
14+
15+
## Notes
16+
17+
Anything particular to note, especially instructions on testing or certain
18+
edge cases or caveats to be aware of. Remove this section if notes are not
19+
needed.
20+
21+
<!-- include this section for staging releases
22+
## Changelog (Staging / Internal)
23+
-
24+
-->
25+
26+
<!-- include this section for production releases
27+
## Release Notes (App Store)
28+
-
29+
30+
## Full Changelog (Release)
31+
### <Build Number
32+
-
33+
-->

‎.gitignore

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

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v10.16.0

‎.prettierignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
build/
2+
node_modules/
3+
internals/generators/
4+
internals/scripts/
5+
package-lock.json
6+
yarn.lock
7+
package.json

‎.prettierrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"tabWidth": 2,
5+
"trailingComma": "all",
6+
"useTabs": false,
7+
"printWidth": 99
8+
}

‎.stylelintrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"processors": ["stylelint-processor-styled-components"],
3+
"extends": [
4+
"stylelint-config-recommended",
5+
"stylelint-config-styled-components"
6+
]
7+
}

‎.travis.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: node_js
2+
3+
node_js:
4+
- 'node'
5+
- 'lts/*'
6+
7+
script:
8+
- node ./internals/scripts/generate-templates-for-linting
9+
- npm test -- --maxWorkers=4
10+
- npm run build
11+
12+
before_install:
13+
- export CHROME_BIN=chromium-browser
14+
- export DISPLAY=:99.0
15+
- sh -e /etc/init.d/xvfb start
16+
17+
notifications:
18+
email:
19+
on_failure: change
20+
21+
after_success: 'npm run coveralls'
22+
23+
cache:
24+
directories:
25+
- node_modules

0 commit comments

Comments
 (0)