Skip to content

Commit 08e529b

Browse files
committed
fix(#3): use getPhysicalFilename api to get file path
1 parent ac5fa6b commit 08e529b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/rules/folder-match-with-fex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module.exports = {
5555
return;
5656
}
5757

58-
const filenameWithPath = context.getFilename();
58+
const filenameWithPath = context.getPhysicalFilename();
5959
const filename = getFilename(filenameWithPath);
6060
const folderPath = getFolderPath(filenameWithPath);
6161

lib/rules/folder-naming-convention.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module.exports = {
6262
return;
6363
}
6464

65-
const filenameWithPath = context.getFilename();
65+
const filenameWithPath = context.getPhysicalFilename();
6666
const folderPath = getFolderPath(filenameWithPath);
6767
const subPaths = getSubPaths(folderPath);
6868

lib/rules/no-index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = {
2626
create(context) {
2727
return {
2828
Program: (node) => {
29-
const filenameWithPath = context.getFilename();
29+
const filenameWithPath = context.getPhysicalFilename();
3030
const filename = getFilename(filenameWithPath);
3131
const basename = getBasename(filename);
3232

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@
4646
"node": "12.x || 14.x || >= 16"
4747
},
4848
"peerDependencies": {
49-
"eslint": ">=6"
49+
"eslint": ">=7.28.0"
5050
}
5151
}

0 commit comments

Comments
 (0)