Skip to content

Commit ad56e5f

Browse files
mcrosby114abisalehalliprasan
authored andcommitted
Fix/eslint formatting (#38)
* Fixes multiple eslint formatting errors * Fixes strict equality comparison to enforce number type * Adds harmony flag to node start script to enable ES2017 support * Changing minimum node from 6 to 7
1 parent f4379bb commit ad56e5f

File tree

10 files changed

+191
-122
lines changed

10 files changed

+191
-122
lines changed

.eslintrc.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,46 @@
1313
"imports": "always-multiline",
1414
"exports": "always-multiline",
1515
"functions": "never"
16+
}],
17+
"no-underscore-dangle": ["error", {
18+
"allow": [
19+
"_checkExpiry",
20+
"_urlencodedContentType",
21+
"_jsonContentType",
22+
"_contentType"
23+
]
24+
}],
25+
"camelcase": ["error", {
26+
"allow": [
27+
"access_secret",
28+
"access_token",
29+
"client_id",
30+
"client_secret",
31+
"error_description",
32+
"expires_in",
33+
"grant_type",
34+
"id_token",
35+
"Intuit_name",
36+
"intuit_tid",
37+
"jwks_uri",
38+
"migrate_production",
39+
"migrate_sandbox",
40+
"oauth_consumer_key",
41+
"oauth_consumer_secret",
42+
"oauth_nonce",
43+
"oauth_signature",
44+
"oauth_timestamp",
45+
"oauth_token",
46+
"oauth_version",
47+
"redirect_uri",
48+
"refresh_token",
49+
"response_type",
50+
"token_parts",
51+
"token_type",
52+
"user_agent",
53+
"userinfo_endpoint_production",
54+
"userinfo_endpoint_sandbox"
55+
]
1656
}]
1757
}
1858
}

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ node_js:
44
- 9
55
- 8
66
- 7
7-
- 6
87

98
before_script:
109
- npm install

README.md

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,40 @@ The OAuth2 Nodejs Client library is meant to work with Intuit's [OAuth2.0](https
1111

1212
## Table of Contents
1313

14+
- [Intuit OAuth2.0 NodeJS Library](#intuit-oauth20-nodejs-library)
15+
- [Table of Contents](#table-of-contents)
1416
- [Requirements](#requirements)
1517
- [Installation](#installation)
1618
- [Using NodeJS](#using-nodejs)
19+
- [Options :](#options)
1720
- [Usage](#usage)
18-
- [Authorization Code flow](#authorization-code-flow)
19-
- [Sample](#sample)
20-
- [Helpers](#helpers)
21-
- [Is Access Token valid](#is-accesstoken-valid)
22-
- [Refresh Access_Token](#refresh-access_token)
23-
- [Refresh Access_Token by passing the refresh_token explicitly](#refresh-access_token_explicitly)
24-
- [Revoke Access Token](#revoke-access_token)
25-
- [Getter / Setter for Token](#getter-/-setter-for-token )
26-
- [Auth Response](#auth-response)
27-
- [Error Logging](#error-logging)
28-
- [Contributing](#contributing)
29-
- [Authors](#authors)
30-
- [Contributors](#contributors)
31-
- [Changelog](#changelog)
32-
- [License](#license)
21+
- [Authorization Code Flow](#authorization-code-flow)
22+
- [Step 1](#step-1)
23+
- [Scopes :](#scopes)
24+
- [Step 2](#step-2)
25+
- [Sample](#sample)
26+
- [Helpers](#helpers)
27+
- [Is AccessToken Valid](#is-accesstoken-valid)
28+
- [Refresh access_token](#refresh-accesstoken)
29+
- [Refresh access_token by passing the refresh_token explicitly](#refresh-accesstoken-by-passing-the-refreshtoken-explicitly)
30+
- [Revoke access_token](#revoke-accesstoken)
31+
- [Getter / Setter for Token](#getter--setter-for-token)
32+
- [Retrieve the Token :](#retrieve-the-token)
33+
- [Set the Token :](#set-the-token)
34+
- [Migrate OAuth1.0 Tokens to OAuth2.0](#migrate-oauth10-tokens-to-oauth20)
35+
- [Validate ID Token](#validate-id-token)
36+
- [Auth-Response](#auth-response)
37+
- [Error Logging](#error-logging)
38+
- [FAQ](#faq)
39+
- [Contributing](#contributing)
40+
- [Steps](#steps)
41+
- [Changelog](#changelog)
42+
- [License](#license)
3343

3444

3545
# Requirements
3646

37-
The Node.js client library is tested against the `Node` >= `6.0.0`
47+
The Node.js client library is tested against the `Node` >= `7.0.0`
3848

3949
# Installation
4050

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
]
4444
},
4545
"engines": {
46-
"node": ">=6.0.0"
46+
"node": ">=7.0.0"
4747
},
4848
"repository": {
4949
"type": "git",

0 commit comments

Comments
 (0)