This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| // http://eslint.org/docs/rules/ | |
| "ecmaFeatures": { | |
| "binaryLiterals": false, // enable binary literals | |
| "blockBindings": false, // enable let and const (aka block bindings) | |
| "defaultParams": false, // enable default function parameters | |
| "forOf": false, // enable for-of loops | |
| "generators": false, // enable generators | |
| "objectLiteralComputedProperties": false, // enable computed object literal property names |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Configuration File for JavaScript Lint 0.2.6 | |
| # Developed by Matthias Miller (http://www.JavaScriptLint.com) | |
| # | |
| # This configuration file can be used to lint a collection of scripts, or to enable | |
| # or disable warnings for scripts that are linted via the command line. | |
| # | |
| #### NOTE TO TEXTMATE BUNDLE USERS: | |
| #### Feel free to experiment with enabling/disabling individual warnings to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Highlight current page menu item as user scrolls | |
| var lastId, | |
| pageMenu = $(".nav"), | |
| pageMenuHeight = pageMenu.outerHeight() + 126, | |
| // All list items | |
| menuItems = pageMenu.find("a"), | |
| // Anchors corresponding to menu items | |
| scrollItems = menuItems.map(function(){ | |
| var item = $($(this).attr("href")); | |
| if (item.length) { return item; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // String utils | |
| // | |
| // resources: | |
| // -- mout, https://github.com/mout/mout/tree/master/src/string | |
| /** | |
| * "Safer" String.toLowerCase() | |
| */ | |
| function lowerCase(str){ | |
| return str.toLowerCase(); |