Last active
October 13, 2015 17:38
-
-
Save jkrems/886b48bd05df2435e952 to your computer and use it in GitHub Desktop.
(Potential) Groupon Javascript Styles, based on https://github.com/airbnb/javascript
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
{ | |
// babel-style base rules | |
"extends": "airbnb/base", | |
"rules": { | |
// This allows things like `reduce((a, b) => a + b)` | |
// Not 100% sure if that's worth the potential cost of badly named identifiers | |
"id-length": 0 | |
} | |
} |
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
{ | |
// ES5-style base rules | |
"extends": "airbnb/legacy", | |
"rules": { | |
// This allows things like `reduce(function(a, b) { return a + b; })` and `var _ = require('lodash')` | |
"id-length": 0, | |
// With unused/redefine tracking, no need to force vars to be at the top | |
"vars-on-top": 0, | |
// In legacy mode, we can't depend on babel to insert `'use strict'` for us | |
"strict": [2, "global"], | |
// Without default parameters, things like `options = options || {}` are kind of useful | |
"no-param-reassign": 0 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment