File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,14 @@ The following patterns are considered problems:
1111/* eslint no-deprecated-api: 2*/
1212
1313var fs = require (" fs" );
14-
1514fs .exists (" ./foo.js" , function () {}); /* ERROR: 'fs.exists' was deprecated since v4. Use 'fs.stat()' or 'fs.access()' instead.*/
1615
17- // And other deprecated API...
16+ // Also, it can report the following patterns.
17+ var exists = require (" fs" ).exists ; /* ERROR: 'fs.exists' was deprecated since v4. Use 'fs.stat()' or 'fs.access()' instead.*/
18+ const {exists } = require (" fs" ); /* ERROR: 'fs.exists' was deprecated since v4. Use 'fs.stat()' or 'fs.access()' instead.*/
19+
20+
21+ // And other deprecated API below.
1822```
1923
2024This rule reports the following deprecated API.
You can’t perform that action at this time.
0 commit comments