-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert all CoffeeScript source files to JS, and clean up project dir.
- Loading branch information
Showing
11 changed files
with
664 additions
and
841 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
// To minimize dependencies on Node- or browser-specific features, leave the | ||
// env empty, and instead define globals as needed. | ||
"env": {}, | ||
|
||
// Project-wide globals. If other globals are necessary, prefer putting them | ||
// in a comment at the top of the file rather than adding them here. | ||
"globals": { | ||
"console": true, | ||
"module": true, | ||
"require": true, | ||
}, | ||
"rules": { | ||
// Enforce "one true brace style", allowing start and end braces to be | ||
// on the same line. | ||
"brace-style": [2, "1tbs", {"allowSingleLine": true}], | ||
|
||
// Enforce the name 'self' when assigning `this` to a local variable. | ||
"consistent-this": [0, "self"], | ||
|
||
// Allow braces to be omitted from `if` statements, etc. | ||
curly: [0], | ||
|
||
// Enforce two-space indentation. | ||
"indent": [2, 2, {indentSwitchCase: true}], | ||
|
||
// Enforce the use of strict mode at the file level. | ||
"global-strict": [2, "always"], | ||
|
||
// Allow things like `while(true)`. | ||
"no-constant-condition": 0, | ||
|
||
// Allow variable shadowing. | ||
"no-shadow": 0, | ||
|
||
// Restrict what kind of objects can be used with 'throw'. | ||
"no-throw-literal": 2, | ||
|
||
// Allow identifiers with leading or trailing underscores. | ||
"no-underscore-dangle": 0, | ||
|
||
// Allow unused parameters, but not unused variables. | ||
"no-unused-vars": [2, {"vars": "all", "args": "none"}], | ||
|
||
// Allow functions to be used before they are defined. | ||
"no-use-before-define": [2, "nofunc"], | ||
|
||
// Use single quotes, except when escaping would be necessary. | ||
"quotes": [2, "single", "avoid-escape"], | ||
|
||
// Don't require function-level strict mode, because global strict mode | ||
// is already enforced. | ||
"strict": 0, | ||
|
||
// Force IIFEs to be wrapped in parentheses. | ||
"wrap-iife": [2, "inside"], | ||
|
||
"yoda": [2, "never", {"exceptRange": true}] | ||
} | ||
} |
Oops, something went wrong.