We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 725f1a1 commit 813592dCopy full SHA for 813592d
docs/rules/filenames-match-regex.md
@@ -0,0 +1,35 @@
1
+# Ensure filenames match a regex naming convention (`github/filenames-match-regex`)
2
+
3
+💼 This rule is enabled in the ✅ `recommended` config.
4
5
+<!-- end auto-generated rule header -->
6
7
+## Rule Details
8
9
+TRule to ensure that filenames match a convention, with a default of camelCase.
10
11
+👎 Examples of **incorrect** filename for this default rule:
12
13
+`file-name.js`
14
15
+👍 Examples of **correct** code for this rule:
16
17
+`fileName.js`
18
19
+## Options
20
21
+regex - Regex to match the filename structure. Defaults to camelCase.
22
23
24
+```json
25
+{
26
+ "filenames-match-regex": [
27
+ "error",
28
+ "^[a-z0-9-]+(.[a-z0-9-]+)?$"
29
+ ]
30
+}
31
+```
32
33
+## Version
34
35
+4.3.2
0 commit comments