Skip to content

Commit 17db227

Browse files
fix(eslint-plugin): don't test against dev directories for localhost rule
1 parent 30e6c36 commit 17db227

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

projects/eslint-plugin/rules/portal/lib/rules/no-localhost-reference.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ module.exports = {
1313
const filename = path.basename(filePath);
1414

1515
if (
16-
filename.includes('webpack') ||
1716
filename.includes('jest') ||
18-
filePath.includes('test')
17+
filePath.includes('dev') ||
18+
filePath.includes('test') ||
19+
filePath.includes('webpack')
1920
) {
2021
return {};
2122
}

0 commit comments

Comments
 (0)