Anything that can be determined using static analysis can be made into a rule. Here are the docs on creating your own rules: http://eslint.org/docs/developer-guide/working-with-rules
-N On Wed, Feb 24, 2016 at 7:31 AM Jérôme Odier <[email protected]> wrote: > Hi! > > I would like to know if it is possible and how to write a plugin for > supporting class factories. For instance, in our application, we do: > > $class('MyClass', { > > foo: function() { > > }, > > bar: function() { > > } > > }); > > var myInstance = new MyClass(); > > Thanks a lot for your help. > > Best regards > > -- > 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. > -- 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.
