Adds liniting into the workflow (#3082)

* initial linting of src

* fix indent to 2 spaces

* Removes unnecessary rules

* ignore spec folder for now

* Spec linting

* Fix spec indent

* nits

* nits

* no no-empty rule
This commit is contained in:
Florent Vilmart
2016-11-24 15:47:41 -05:00
committed by GitHub
parent 6e2fba4ae4
commit 8c2c76dd26
149 changed files with 3478 additions and 3507 deletions

View File

@@ -1,6 +1,5 @@
// This class handles the Account Lockout Policy settings.
import Config from './Config';
import Parse from 'parse/node';
export class AccountLockout {
constructor(user, config) {
@@ -13,7 +12,7 @@ export class AccountLockout {
*/
_setFailedLoginCount(value) {
let query = {
username: this._user.username,
username: this._user.username
};
const updateFields = {
@@ -76,7 +75,7 @@ export class AccountLockout {
*/
_incrementFailedLoginCount() {
const query = {
username: this._user.username,
username: this._user.username
};
const updateFields = {_failed_login_count: {__op: 'Increment', amount: 1}};
@@ -93,7 +92,7 @@ export class AccountLockout {
return new Promise((resolve, reject) => {
const query = {
username: this._user.username,
_failed_login_count: { $gte: this._config.accountLockout.threshold },
_failed_login_count: { $gte: this._config.accountLockout.threshold }
};
const now = new Date();