Skip to content

Commit

Permalink
examples: add example for no-new-requir rule
Browse files Browse the repository at this point in the history
  • Loading branch information
blond committed Apr 8, 2016
1 parent 8d43a72 commit 9cfe57c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 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.