Hey Paul, You're correct, the brace style is applied to everything and we don't have the ability to pick and choose where to apply which styles. You can file an enhancement request if you're interested, however, we generally ask the people filing the request to implement the rule changes ( http://eslint.org/docs/developer-guide/contributing/rule-changes). I think what you're suggesting makes sense, as using Allman style for arrow functions would be a bit odd. :)
-N On Fri, Apr 22, 2016 at 11:13 AM, 'Paul Irish' via ESLint < [email protected]> wrote: > Hey all, > > > I'm configuring eslint for the Chrome DevTools frontend, and currently > unable to enforce brace style on our codebase. > > To describe our current style, I'd say we use 1tbs, however for > (non-arrow) functions, we use allman. > > > Here's a sample > <https://github.com/ChromeDevTools/devtools-frontend/blob/75e82c991002d0b11cc2211468943aec66d7eef3/front_end/workspace/UISourceCode.js#L368-L404> > of our JS: > > <https://lh3.googleusercontent.com/-9sgIQ6AMtw0/VxpoagNU2qI/AAAAAAAAIY4/gk6TDkyosDMnnC8o13voyKbAaQxUzRVcACLcB/s1600/Screen%2BShot%2B2016-04-22%2Bat%2B11.07.20%2BAM.png> > > As far as I can tell, this style isn't configurable in eslint, correct? > > If that's correct, I *could* file a feature request, but I bet this style > is sufficiently atypical, I probably wouldn't bother. :) > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "ESLint" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- ______________________________ Nicholas C. Zakas @slicknet Author, Professional JavaScript for Web Developers Buy it at Amazon.com: http://www.amazon.com/Professional-JavaScript-Developers-Nicholas-Zakas/dp/1118026691/ref=sr_1_3 -- You received this message because you are subscribed to the Google Groups "ESLint" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
