Skip to content

Commit

Permalink
fix(eslint-plugin): no-deep-imports add Windows-OS support (#2741)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbarsukov authored Sep 21, 2022
1 parent 5edfedb commit e54e3de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/eslint-plugin/no-deep-imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = {
[`ImportDeclaration[source.value=/${importDeclaration}/]`]({
source: sourceNode,
}) {
const currentFilePath = context.getFilename();
const currentFilePath = context.getFilename().replace(/\\+/g, '/');
const [currentFileProjectName] =
(currentProject &&
currentFilePath.match(new RegExp(currentProject, 'g'))) ||
Expand Down

0 comments on commit e54e3de

Please sign in to comment.