Skip to content
Permalink
Browse files

examples: add example for `no-new-requir` rule

  • Loading branch information...
blond committed Apr 8, 2016
1 parent 8d43a72 commit 9cfe57c502e2eff04f2ce2933087f589e83aea0c
Showing with 3 additions and 0 deletions.
  1. +3 −0 examples/bad/commonjs.js
@@ -0,0 +1,3 @@
/*eslint no-new-require: "error"*/
var instance = new require('class'); // The `instance` variable will be equal to constructor function
// instead of expected instance of class.

0 comments on commit 9cfe57c

Please sign in to comment.
You can’t perform that action at this time.