Open wineSu opened 3 years ago
Consider supporting non relative path usage.
Examples of incorrect code for this rule: import x from '../../x'; require('../inner');
import x from '../../x';
require('../inner');
Examples of correct code for this rule: import x from 'x'; require('inner');
import x from 'x';
require('inner');
I'm not sure what you mean "supporting". Those can only work if x or inner are in node_modules, or if you've configured an import resolver to indicate they're an alias (via babel, or webpack, or typescript, etc).
x
inner
Consider supporting non relative path usage.
Examples of incorrect code for this rule:
import x from '../../x';
require('../inner');
Examples of correct code for this rule:
import x from 'x';
require('inner');