Skip to content

Commit

Permalink
Lint-only changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicjansma committed Sep 17, 2015
1 parent ff6d4a4 commit 52489e7
Show file tree
Hide file tree
Showing 15 changed files with 57 additions and 2,433 deletions.
8 changes: 5 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@
"no-lonely-if": 2,
"no-multiple-empty-lines": [1, {"max": 1}],
"no-nested-ternary": 2,
"space-after-function-name": [2, "never"],
"space-before-function-paren": [2, "never"],
"space-after-keywords": 1,
"space-before-blocks": 1,
"space-in-brackets": 1,
"object-curly-spacing": 1,
"computed-property-spacing": 1,
"array-bracket-spacing": 1,
"space-in-parens": 1,
"space-unary-ops": 1,
"spaced-line-comment": 1,
"spaced-comment": 1,
"max-len": [1, 120, 4],

//
Expand Down
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*eslint-env node*/
/* eslint-env node */
module.exports = function(grunt) {
"use strict";

Expand Down
28 changes: 14 additions & 14 deletions dist/saltthepass.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*eslint-env node,browser,amd*/
/* eslint-env node,browser,amd */
//
// SaltThePass - Utilities
//
Expand All @@ -9,7 +9,7 @@
//
// Licensed under the MIT license
//
(function (root, factory) {
(function(root, factory) {
"use strict";

if (typeof define === "function" && define.amd) {
Expand All @@ -24,7 +24,7 @@
// Browser globals (root is window)
root.SaltThePassUtils = factory();
}
}(this, function () {
}(this, function() {
"use strict";

// Module definition
Expand Down Expand Up @@ -66,8 +66,8 @@
// export
return Utils;
}));

/*eslint-env node,browser,amd*/

/* eslint-env node,browser,amd */
//
// SaltThePass - DomainNameRule
//
Expand All @@ -78,7 +78,7 @@
//
// Licensed under the MIT license
//
(function (root, factory) {
(function(root, factory) {
"use strict";

if (typeof define === "function" && define.amd) {
Expand All @@ -93,7 +93,7 @@
// Browser globals (root is window)
root.DomainNameRule = factory(root.SaltThePassUtils);
}
}(this, function (utils) {
}(this, function(utils) {
"use strict";

//
Expand Down Expand Up @@ -433,7 +433,7 @@
newPass = this.addRequiredChar(newPass);
newPass = this.trimToMax(newPass);

// make sure we"re still valid
// make sure we're still valid
if (!this.isValid(newPass)) {
return;
}
Expand Down Expand Up @@ -496,8 +496,8 @@
// export
return DomainNameRule;
}));

/*eslint-env node,browser,amd*/

/* eslint-env node,browser,amd */
//
// SaltThePass
//
Expand All @@ -508,7 +508,7 @@
//
// Licensed under the MIT license
//
(function (root, factory) {
(function(root, factory) {
"use strict";

if (typeof define === "function" && define.amd) {
Expand All @@ -534,7 +534,7 @@
try {
require("crypto-js/md5");
} catch (e) {
// If we"re in Appcelerator's environment, they don't support
// If we're in Appcelerator's environment, they don't support
// node_module loading, try to load it from our current path.
modulePath = "../node_modules/";
}
Expand All @@ -560,7 +560,7 @@
root.CryptoJS.RIPEMD160,
root.CryptoJS.enc.Base64);
}
}(this, function (DomainNameRule, utils, md5Fn, sha1Fn, sha512Fn, sha3Fn, ripemd160Fn, base64Fn) {
}(this, function(DomainNameRule, utils, md5Fn, sha1Fn, sha512Fn, sha3Fn, ripemd160Fn, base64Fn) {
"use strict";

// Module definition
Expand Down Expand Up @@ -687,7 +687,7 @@
// NOTE: For base64, we use the base64url variation of RFC 4648 , which replaces the
// last two characters of plus "+" and forward-slash "/" with minus "-" and underscore "_" to
// produce Salted Passwords that are more likely to pass the password requirements of sites that
// limit the characters that can be used in a password. CryptoJS's Base64 doesn"t do this, so we
// limit the characters that can be used in a password. CryptoJS's Base64 doesn't do this, so we
// patch the base64 output here.
//
base64 = base64.replace(/\+/g, "-");
Expand Down
2 changes: 1 addition & 1 deletion dist/saltthepass.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/saltthepass.min.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 52489e7

Please sign in to comment.