Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

Commit

Permalink
chore(update): update package.json packages (#1739)
Browse files Browse the repository at this point in the history
* chore(update): update package.json packages

* feat(ci): try to fix ci

* chore(lint): fix lint

* fix(lint): fix lint
  • Loading branch information
sibelius authored Aug 24, 2018
1 parent da8e79c commit 843cbf4
Show file tree
Hide file tree
Showing 8 changed files with 1,200 additions and 1,542 deletions.
5 changes: 3 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
"import/named": 0,
"import/namespace": [2, { "allowComputed": true }],
"no-extra-boolean-cast": 0,
"import/no-duplicates": 2
"import/no-duplicates": 2,
"react/no-deprecated": 0
},
"settings": {
"import/resolver": {
Expand All @@ -65,4 +66,4 @@
"globals": {
"__DEV__": true
}
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ buck-out/
\.buckd/
android/app/libs
android/keystores/debug.keystore
package-json.lock
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- v1-npm
- run:
name: Install Dependencies
command: yarn install
command: yarn install --ignore-engines
- run:
name: Lint
command: yarn lint
Expand Down
217 changes: 0 additions & 217 deletions package-lock.json

This file was deleted.

32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@
"logo": "https://opencollective.com/opencollective/logo.txt"
},
"dependencies": {
"lodash": "^4.17.4",
"prop-types": "^15.5.10"
"lodash": "^4.17.10",
"prop-types": "^15.6.2"
},
"devDependencies": {
"@commitlint/cli": "^6.1.0",
"@commitlint/config-conventional": "^6.1.0",
"babel-eslint": "^8.2.1",
"eslint": "^4.17.0",
"eslint-plugin-flowtype": "^2.46.2",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-react": "^7.6.1",
"eslint-plugin-react-native": "^3.2.0",
"generate-changelog": "1.7.0",
"@commitlint/cli": "^7.0.0",
"@commitlint/config-conventional": "^7.0.1",
"babel-eslint": "^8.2.6",
"eslint": "^5.3.0",
"eslint-plugin-flowtype": "^2.50.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-react": "^7.10.0",
"eslint-plugin-react-native": "^3.2.1",
"generate-changelog": "1.7.1",
"husky": "^0.14.3",
"idx": "2.2.0",
"lint-staged": "^7.0.0",
"idx": "2.4.0",
"lint-staged": "^7.2.0",
"minimist": "1.2.0",
"pre-commit": "^1.2.2",
"prettier": "^1.12.0",
"react": "16.3.1",
"react-native": "^0.55.2",
"simple-git": "1.89.0"
"react": "16.4.2",
"react-native": "^0.56.0",
"simple-git": "1.96.0"
},
"homepage": "https://github.com/react-native-community/react-native-camera",
"keywords": [
Expand Down
2 changes: 2 additions & 0 deletions src/Camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export default class Camera extends Component {
this._cameraHandle = null;
}

// eslint-disable-next-line
async componentWillMount() {
this._addOnBarCodeReadListener();
this._addOnFocusChanged();
Expand Down Expand Up @@ -208,6 +209,7 @@ export default class Camera extends Component {
}
}

// eslint-disable-next-line
componentWillReceiveProps(newProps) {
const { onBarCodeRead, onFocusChanged, onZoomChanged } = this.props;
if (onBarCodeRead !== newProps.onBarCodeRead) {
Expand Down
1 change: 1 addition & 0 deletions src/RNCamera.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ export default class Camera extends React.Component<PropsType, StateType> {
}
};

// eslint-disable-next-line
async componentWillMount() {
const hasVideoAndAudio = this.props.captureAudio;
const isAuthorized = await requestPermissions(
Expand Down
Loading

0 comments on commit 843cbf4

Please sign in to comment.