Skip to content

Instantly share code, notes, and snippets.

@alekseykulikov
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alekseykulikov/7db5095cf78ae3a433b2 to your computer and use it in GitHub Desktop.
Save alekseykulikov/7db5095cf78ae3a433b2 to your computer and use it in GitHub Desktop.
My code style validation: ~/.jshintrc with atom's linter + linter-jshint
{
// validate code
"freeze": true, // prohibits overwriting prototypes
"unused": true,
"undef": true,
// relaxing options
"expr": true, // suppresses warnings about expressive expressions, like ?
"laxbreak": true, // allow line breaking
"lastsemic": true, // suppresses warnings about last missing semicolon
"noyield": true, // allow simple koa middleware
// environments
"node": true,
"esnext": true,
"browser": true,
"mocha": true,
// globals
"globals": {
"Promise": true,
"Event": true,
"Notification": true,
"after": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment