You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/folder-match-with-fex.md
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
# The folder should match the naming pattern specified by the file extension (folder-match-with-fex)
1
+
# The folder should match the naming pattern specified by its file (folder-match-with-fex)
2
2
3
-
Allows you to enforce a consistent naming pattern for the folder of the specified file.
3
+
Allows you to enforce a consistent naming pattern for the specified files' folder names.
4
4
5
5
## Rule Details
6
6
7
-
This rule aims to format the folder of the specified file. This rule uses the glob match syntax to match a file and declare the naming pattern for the folder.
7
+
This rule aims to format the folder of the specified files. It will be useful when you want to group the specified files into a folder. This rule uses the glob match syntax to match target files and declare the naming pattern for their folder names.
8
8
9
9
If the rule had been set as follows:
10
10
```js
@@ -27,8 +27,7 @@ bar/__tests__/foo.test.js
27
27
28
28
#### naming pattern object
29
29
30
-
You need to specify a different naming pattern for different file extensions. The plugin will only check files with extensions you explicitly provided:
31
-
30
+
The key is used to select target files, while the value is used to declare the naming pattern for their folder names. You can specify a different folder naming pattern for different target files. The plugin will only check files you explicitly provided:
0 commit comments