Skip to content

Commit 088a03c

Browse files
author
Manish Jangir
committed
First commit
1 parent 4da1aa6 commit 088a03c

File tree

542 files changed

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

542 files changed

+119042
-0
lines changed

.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: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
const fs = require('fs');
2+
const path = require('path');
3+
4+
const prettierOptions = JSON.parse(fs.readFileSync('./.prettierrc', 'utf8'));
5+
6+
module.exports = {
7+
parser: 'babel-eslint',
8+
extends: ['airbnb', 'prettier', 'prettier/react'],
9+
plugins: ['prettier', 'redux-saga', 'react', 'jsx-a11y'],
10+
env: {
11+
browser: true,
12+
node: true,
13+
jest: 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+
'comma-dangle': [2, 'always-multiline'],
28+
'import/imports-first': 0,
29+
'import/newline-after-import': 0,
30+
'import/no-dynamic-require': 0,
31+
'import/no-extraneous-dependencies': 0,
32+
'import/no-named-as-default': 0,
33+
'import/no-unresolved': 2,
34+
'import/no-webpack-loader-syntax': 0,
35+
'import/prefer-default-export': 0,
36+
indent: [
37+
2,
38+
2,
39+
{
40+
SwitchCase: 1,
41+
},
42+
],
43+
'jsx-a11y/aria-props': 2,
44+
'jsx-a11y/heading-has-content': 0,
45+
'jsx-a11y/label-has-for': 2,
46+
'jsx-a11y/mouse-events-have-key-events': 2,
47+
'jsx-a11y/role-has-required-aria-props': 2,
48+
'jsx-a11y/role-supports-aria-props': 2,
49+
'max-len': 0,
50+
'newline-per-chained-call': 0,
51+
'no-confusing-arrow': 0,
52+
'no-console': 1,
53+
'no-use-before-define': 0,
54+
'prefer-template': 2,
55+
'react/jsx-closing-tag-location': 0,
56+
'react/forbid-prop-types': 0,
57+
'react/jsx-first-prop-new-line': [2, 'multiline'],
58+
'react/jsx-filename-extension': 0,
59+
'react/jsx-no-target-blank': 0,
60+
'react/require-default-props': 0,
61+
'react/require-extension': 0,
62+
'react/self-closing-comp': 0,
63+
'react/sort-comp': 0,
64+
'redux-saga/no-yield-in-race': 2,
65+
'redux-saga/yield-effects': 2,
66+
'require-yield': 0,
67+
},
68+
settings: {
69+
'import/resolver': {
70+
webpack: {
71+
config: path.resolve(path.join(process.cwd(), './internals/webpack/webpack.prod.babel.js')),
72+
},
73+
},
74+
},
75+
};

.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

.gitignore

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

.nvmrc

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

.prettierignore

Lines changed: 7 additions & 0 deletions
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

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

.stylelintrc

Lines changed: 7 additions & 0 deletions
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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
language: node_js
2+
3+
node_js:
4+
- 9
5+
- 8
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+
yarn: true
25+
directories:
26+
- node_modules

app/.htaccess

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<ifModule mod_rewrite.c>
2+
3+
4+
#######################################################################
5+
# GENERAL #
6+
#######################################################################
7+
8+
# Make apache follow sym links to files
9+
Options +FollowSymLinks
10+
# If somebody opens a folder, hide all files from the resulting folder list
11+
IndexIgnore */*
12+
13+
14+
#######################################################################
15+
# REWRITING #
16+
#######################################################################
17+
18+
# Enable rewriting
19+
RewriteEngine On
20+
21+
# If its not HTTPS
22+
RewriteCond %{HTTPS} off
23+
24+
# Comment out the RewriteCond above, and uncomment the RewriteCond below if you're using a load balancer (e.g. CloudFlare) for SSL
25+
# RewriteCond %{HTTP:X-Forwarded-Proto} !https
26+
27+
# Redirect to the same URL with https://, ignoring all further rules if this one is in effect
28+
RewriteRule ^(.*) https://%{HTTP_HOST}/$1 [R,L]
29+
30+
# If we get to here, it means we are on https://
31+
32+
# If the file with the specified name in the browser doesn't exist
33+
RewriteCond %{REQUEST_FILENAME} !-f
34+
35+
# and the directory with the specified name in the browser doesn't exist
36+
RewriteCond %{REQUEST_FILENAME} !-d
37+
38+
# and we are not opening the root already (otherwise we get a redirect loop)
39+
RewriteCond %{REQUEST_FILENAME} !\/$
40+
41+
# Rewrite all requests to the root
42+
RewriteRule ^(.*) /
43+
44+
</ifModule>
45+
46+
<IfModule mod_headers.c>
47+
# Do not cache sw.js, required for offline-first updates.
48+
<FilesMatch "sw\.js$">
49+
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
50+
Header set Pragma "no-cache"
51+
</FilesMatch>
52+
</IfModule>

0 commit comments

Comments
 (0)