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/format/name-format.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ id: name-format
3
3
title: name-format
4
4
---
5
5
6
-
Enabling this rule will result in an error being generated if `name`is not lowercase.
6
+
Enabling this rule will result in an error being generated if `name`does not meet the [naming constraints](https://github.com/npm/validate-npm-package-name#naming-rules).
7
7
8
8
## Example .npmpackagejsonlintrc configuration
9
9
@@ -25,6 +25,18 @@ Enabling this rule will result in an error being generated if `name` is not lowe
25
25
}
26
26
```
27
27
28
+
```json
29
+
{
30
+
"name": "npm package json lint"
31
+
}
32
+
```
33
+
34
+
```json
35
+
{
36
+
"name": ".npm-package-json-lint"
37
+
}
38
+
```
39
+
28
40
### *Correct* example(s)
29
41
30
42
```json
@@ -35,4 +47,6 @@ Enabling this rule will result in an error being generated if `name` is not lowe
35
47
36
48
## History
37
49
50
+
* Augmented with all name checks in `validate-npm-package-name` in version 6.0.0
51
+
* Added checks for name length and not starting with . or _ in version 4.0.0
0 commit comments