Skip to content

Commit

Permalink
Update project dependencies, reformat existing code with prettier.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cierpliwy committed May 19, 2017
1 parent 45a7f53 commit 694574c
Show file tree
Hide file tree
Showing 10 changed files with 4,836 additions and 304 deletions.
30 changes: 30 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:flowtype/recommended"
],
"plugins": [
"react",
"import",
"flowtype"
],
"rules": {
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"semi": [
"error",
"never"
]
},
"env": {
"node": true,
"es6": true
}
}
9 changes: 6 additions & 3 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ node_modules/react-native/flow
flow/

[options]
emoji=true

module.system=haste

experimental.strict_type_args=true
Expand All @@ -34,11 +36,12 @@ suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-6]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-6]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

unsafe.enable_getters_and_setters=true

[version]
^0.36.0
^0.42.0
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @flow
// @flow

export { default as BleManager } from './src/BleManager'
export { default as Device } from './src/Device'
Expand Down
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,23 @@
},
"scripts": {
"postinstall": "bash build_ios_frameworks.sh",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "jest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Polidea/react-native-ble-plx.git"
},
"devDependencies": {
"react": "15.4.2",
"react-native": "0.40.0"
"babel-eslint": "^7.2.3",
"eslint": "^3.19.0",
"eslint-plugin-flowtype": "^2.33.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-react": "^7.0.1",
"flow-bin": "^0.42.0",
"jest": "^20.0.3",
"prettier": "^1.3.1",
"react": "16.0.0-alpha.6",
"react-native": "0.44.0"
},
"keywords": [
"React",
Expand Down
Loading

0 comments on commit 694574c

Please sign in to comment.