-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nicola Parrello
committed
Aug 28, 2018
1 parent
5a813ed
commit 66264a5
Showing
35 changed files
with
8,395 additions
and
5,351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"extends": ["react-app"], | ||
"plugins": ["react"], | ||
"rules": { | ||
"quotes": ["error", "double"], // Use double-quotes for strings. | ||
"jsx-quotes": ["error", "prefer-double"], // Use double-quotes for strings in JSX. | ||
"semi": ["error", "always"], // Enforce semicolon at the end of statements. | ||
"indent": ["error", 4, { "SwitchCase": 1 }], // Indent with 4 spaces. | ||
"react/jsx-indent": ["error", 4], // Indent JSX with 4 spaces. | ||
"no-multi-spaces": "error", // Do not allow multiple spaces in js. | ||
"no-multiple-empty-lines": ["error", { "max": 1 }], // Do not allow consecutive empty lines. | ||
"no-trailing-spaces": "error", // Disallow trailing whitespace at the end of lines. | ||
"max-len": ["error", { "code": 120 }], // Restrict maximum line length to 120 characters. | ||
"no-console": "warn", // Restrict usage of console.log/error etc. | ||
"no-unused-vars": "error", // Do not allow declaring unused variables. | ||
"prefer-template": "error", // Use back-tick for string concatanation if needed. | ||
"object-curly-spacing": ["error", "always"], // Enforce spaces inside inline object curly braces. | ||
"newline-before-return": "error", // Enforce new-line before return statements. | ||
"react/jsx-curly-spacing": [2, {"when": "always", // Enforce spaces inside objects in JSX. | ||
"spacing": { | ||
"objectLiterals": "never" | ||
}, | ||
"children": true | ||
}], | ||
"react/jsx-tag-spacing": ["error", { // Enforce space before tag close in JSX. | ||
"closingSlash": "never", | ||
"beforeSelfClosing": "always", | ||
"afterOpening": "never", | ||
"beforeClosing": "never" | ||
}], | ||
|
||
// Doc-block settings | ||
"require-jsdoc": ["error", { | ||
"require": { | ||
"FunctionDeclaration": true, | ||
"MethodDefinition": true, | ||
"ClassDeclaration": true, | ||
"ArrowFunctionExpression": true, | ||
"FunctionExpression": true | ||
} | ||
}], | ||
"valid-jsdoc": ["error", { | ||
"prefer": { | ||
"arg": "param", | ||
"argument": "param", | ||
"class": "constructor", | ||
"return": "returns", | ||
"virtual": "abstract" | ||
}, | ||
"preferType": { | ||
"Boolean": "boolean", | ||
"Number": "number", | ||
"object": "Object", | ||
"String": "string" | ||
}, | ||
"requireReturn": false, | ||
"requireReturnType": true, | ||
"requireParamDescription": false, | ||
"requireReturnDescription": false | ||
}], | ||
|
||
// React-specific settings | ||
"react/forbid-component-props": ["error", { "forbid": ["style"] }], // Forbid inline style in JSX. | ||
|
||
// Flow-specific settings | ||
"flowtype/newline-after-flow-annotation": [2, "never"], // Do not allow empty line after flow annotation. | ||
"flowtype/require-valid-file-annotation": [2, "always"], // Validate flow annotations and report missing ones. | ||
|
||
/* the following are to suppress some warnings that might come up due to eslint version inconsistency */ | ||
"jsx-a11y/href-no-hash": "off", | ||
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ignore] | ||
node_modules | ||
|
||
[include] | ||
|
||
[libs] | ||
|
||
[lints] | ||
|
||
[options] | ||
module.system.node.resolve_dirname=node_modules | ||
module.system.node.resolve_dirname=src | ||
|
||
[strict] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
node_modules | ||
# dependencies | ||
/node_modules | ||
|
||
# misc | ||
.DS_Store | ||
.idea | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# css | ||
src/**/*.css |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"main.css": "static/css/main.9c9d507a.css", | ||
"main.css.map": "static/css/main.9c9d507a.css.map", | ||
"main.js": "static/js/main.9b60bc3c.js", | ||
"main.js.map": "static/js/main.9b60bc3c.js.map" | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!doctype html><html lang="en-US"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="/manifest.json"><link rel="shortcut icon" href="favicon.ico"><title>bunq API Documentation</title><link href="/static/css/main.9c9d507a.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div class="header"></div><div id="root"></div><script type="text/javascript" src="/static/js/main.9b60bc3c.js"></script></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"short_name": "bunqDoc", | ||
"name": "bunq API Documentation", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "64x64 32x32 24x24 16x16", | ||
"type": "image/x-icon" | ||
} | ||
], | ||
"start_url": "./index.html", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#FFFFFF" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.