Skip to content

Commit

Permalink
Docs: update no-deprecated-api.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed May 27, 2016
1 parent 1e0d9da commit f642dc3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/rules/no-deprecated-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ The following patterns are considered problems:
/*eslint no-deprecated-api: 2*/

var fs = require("fs");

fs.exists("./foo.js", function() {}); /*ERROR: 'fs.exists' was deprecated since v4. Use 'fs.stat()' or 'fs.access()' instead.*/

// And other deprecated API...
// Also, it can report the following patterns.
var exists = require("fs").exists; /*ERROR: 'fs.exists' was deprecated since v4. Use 'fs.stat()' or 'fs.access()' instead.*/
const {exists} = require("fs"); /*ERROR: 'fs.exists' was deprecated since v4. Use 'fs.stat()' or 'fs.access()' instead.*/


// And other deprecated API below.
```

This rule reports the following deprecated API.
Expand Down

0 comments on commit f642dc3

Please sign in to comment.