Skip to content

Commit

Permalink
add eslint config and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
naoufal committed Jul 19, 2015
1 parent 8343edb commit baa094e
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 24 deletions.
30 changes: 30 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"rules": {
"indent": [
2,
2
],
"quotes": [
2,
"single"
],
"linebreak-style": [
2,
"unix"
],
"semi": [
2,
"always"
]
},
"env": {
"es6": true,
"node": true
},
"ecmaFeatures": {
"jsx": true
},
"plugins": [
"react"
]
}
2 changes: 1 addition & 1 deletion TouchID.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var warning = require('warning');

var TouchID = {
test: function() {
warning("Not yet implemented for Android.");
warning('Not yet implemented for Android.');
}
};

Expand Down
36 changes: 18 additions & 18 deletions data/errors.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
module.exports = {
"LAErrorAuthenticationFailed": {
message: "Authentication was not successful because the user failed to provide valid credentials."
'LAErrorAuthenticationFailed': {
message: 'Authentication was not successful because the user failed to provide valid credentials.'
},
"LAErrorUserCancel": {
message: "Authentication was canceled by the user—for example, the user tapped Cancel in the dialog."
'LAErrorUserCancel': {
message: 'Authentication was canceled by the user—for example, the user tapped Cancel in the dialog.'
},
"LAErrorUserFallback": {
message: "Authentication was canceled because the user tapped the fallback button (Enter Password)."
'LAErrorUserFallback': {
message: 'Authentication was canceled because the user tapped the fallback button (Enter Password).'
},
"LAErrorSystemCancel": {
message: "Authentication was canceled by system—for example, if another application came to foreground while the authentication dialog was up."
'LAErrorSystemCancel': {
message: 'Authentication was canceled by system—for example, if another application came to foreground while the authentication dialog was up.'
},
"LAErrorPasscodeNotSet": {
message: "Authentication could not start because the passcode is not set on the device."
'LAErrorPasscodeNotSet': {
message: 'Authentication could not start because the passcode is not set on the device.'
},
"LAErrorTouchIDNotAvailable": {
message: "Authentication could not start because Touch ID is not available on the device"
'LAErrorTouchIDNotAvailable': {
message: 'Authentication could not start because Touch ID is not available on the device'
},
"LAErrorTouchIDNotEnrolle": {
message: "Authentication could not start because Touch ID has no enrolled fingers."
'LAErrorTouchIDNotEnrolle': {
message: 'Authentication could not start because Touch ID has no enrolled fingers.'
},
"RCTTouchIDUnknownError": {
message: "Could not authenticate for an unknown reason."
'RCTTouchIDUnknownError': {
message: 'Could not authenticate for an unknown reason.'
},
"RCTTouchIDNotSupported": {
message: "Device does not support Touch ID."
'RCTTouchIDNotSupported': {
message: 'Device does not support Touch ID.'
}
};
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"name": "react-native-touch-id",
"version": "1.2.0",
"version": "1.2.1",
"description": "React Native authentication with the native Touch ID popup.",
"scripts": {
"start": "node_modules/react-native/packager/packager.sh"
"lint": "node_modules/.bin/eslint .",
"start": "node_modules/react-native/packager/packager.sh",
"test": "npm run lint"
},
"dependencies": {
"react-native": ">=0.4.4"
"peerDependencies": {
"react-native": ">=0.4.0"
},
"main": "TouchID.ios.js",
"devDependencies": {},
"repository": {
"type": "git",
"url": "https://github.com/naoufal/react-native-touch-id.git"
Expand All @@ -35,5 +36,9 @@
"jshintConfig": {
"esnext": true,
"node": true
},
"devDependencies": {
"eslint": "0.24.1",
"eslint-plugin-react": "2.7.1"
}
}

0 comments on commit baa094e

Please sign in to comment.