Last active
August 29, 2015 14:01
-
-
Save katylava/11548610 to your computer and use it in GitHub Desktop.
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
{ | |
"browser": false, | |
"node": true, | |
"predef": ["after", "afterEach", "before", "beforeEach", "describe", "it" ], | |
"strict": false, // this should unnecessary -- default is false -- but seems to be enabled in some environments | |
// Katy | |
// enforcing options | |
// "camelcase": true, // require camelCase or ALL_UPPER -- this would be nice but we don't control all identifiers (e.g. the ones from jsforce) | |
"curly": true, // require all blocks be enclosed in curly braces | |
"eqeqeq": true, // require === and !== vs == and != | |
"immed": true, // require IIFE be wrapped in parentheses | |
"latedef": "nofunc", // must define variables before they are used ("nofunc" means funcs can be defined later) | |
"newcap": true, // require cap first on objects you can use 'new' on | |
"trailing": true, // trailing whitespace should be an error | |
"undef": true, // can't use explicitly undefined variables | |
"unused": "vars", // warns about unused vars (unless they are function params) | |
// relaxing options | |
"lastsemic": true // allows you to omit the last semicolon *inside* single-line functions (not after) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment