Skip to content

Commit

Permalink
Merge branch 'release/0.7.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Aug 31, 2018
2 parents e9128b1 + ffbcde2 commit 0492e66
Show file tree
Hide file tree
Showing 40 changed files with 9,711 additions and 6,376 deletions.
73 changes: 73 additions & 0 deletions .eslintrc
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"] }]
}
}
14 changes: 14 additions & 0 deletions .flowconfig
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]
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/build/* linguist-generated=true
/package.lock linguist-generated=true
/yarn.lock linguist-generated=true
/swagger.json
/generated.json

14 changes: 13 additions & 1 deletion .gitignore
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
18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
# Change Log

## [0.6.2](https://github.com/bunq/doc/tree/0.6.2)
## [0.7.0](https://github.com/bunq/doc/tree/0.7.0)

[Full Changelog](https://github.com/bunq/doc/compare/0.6.2...0.7.0)

**Closed issues:**

- Remove old php examples from doc [\#60](https://github.com/bunq/doc/issues/60)
- Replace ReDoc with Swagger [\#56](https://github.com/bunq/doc/issues/56)
- Can't view the first chapters before "amount-used" [\#50](https://github.com/bunq/doc/issues/50)

**Merged pull requests:**

- Fixed styling for tables on smaller devices bunq/doc\#56 [\#61](https://github.com/bunq/doc/pull/61) ([parrello](https://github.com/parrello))
- Fixed API definition url bunq/doc\#56 [\#59](https://github.com/bunq/doc/pull/59) ([parrello](https://github.com/parrello))
- Bunq/doc\#56 [\#57](https://github.com/bunq/doc/pull/57) ([parrello](https://github.com/parrello))
- Remove references to PHP examples [\#44](https://github.com/bunq/doc/pull/44) ([basst85](https://github.com/basst85))

## [0.6.2](https://github.com/bunq/doc/tree/0.6.2) (2018-08-08)
[Full Changelog](https://github.com/bunq/doc/compare/0.6.1...0.6.2)

**Closed issues:**
Expand Down
Loading

0 comments on commit 0492e66

Please sign in to comment.