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
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: copyright/README.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,8 @@ This tool reads from the `headers/copyright.extension.txt` text files to select
7
7
Add the following to your `package.json`
8
8
9
9
```json
10
-
"copyright:lint": "copyright.js PATH --lint",
11
-
"copyright:fix""copyright.js PATH"
10
+
"copyright:lint": "copyright.js glob --lint",
11
+
"copyright:fix""copyright.js glob"
12
12
```
13
13
14
14
```bash
@@ -30,8 +30,6 @@ Passing the `--lint` flag to this tool will enable lint mode.
30
30
31
31
With lint mode enabled, the process will exit if any of the target directories contain files which do not have copyright headers.
32
32
33
-
`copyright.js` can be integrated into the `npm run lint` step of a project by pulling the script into the project, and adding `node copyright.js PATTERN --lint` into the `lint` npm command
0 commit comments