This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 885
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only lint call expressions and external module
... references in no-require-imports rule. Fixes #816.
- Loading branch information
Showing
3 changed files
with
24 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
var lib = require('lib'); // error | ||
var lib = require('lib'); // failure | ||
|
||
let lib2 = require('lib2'); // error | ||
let lib2 = require('lib2'); // failure | ||
|
||
import {l} from 'lib'; | ||
|
||
var lib3 = load('not_an_import'); | ||
|
||
var lib4 = lib2.subImport; | ||
|
||
var lib5 = require('lib5'), // error | ||
lib6 = require('lib6'), // error | ||
var lib5 = require('lib5'), // failure | ||
lib6 = require('lib6'), // failure | ||
lib7 = 700; | ||
|
||
import lib8 = require('lib8'); // error | ||
import lib8 = require('lib8'); // failure | ||
|
||
import foo = bar; // error | ||
import lib9 = lib2.anotherSubImport; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters