Skip to content

Commit 5db21f9

Browse files
committed
Make folder validation an error
1 parent 616cae4 commit 5db21f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "content-lint",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"type": "module",
55
"main": "index.js",
66
"description": "A node.js infrastructure to validate markdown content.",

validations/naming.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ValidationIssue } from '../domain/validation-issue.js';
77
*/
88
function validateFolderName(article) {
99
let errorsOccurred = [];
10-
const issueType = ValidationIssue.Type.WARNING;
10+
const issueType = ValidationIssue.Type.ERROR;
1111

1212
if(article.path.indexOf("_") != -1){
1313
const errorMessage = "Folder path uses discouraged underscore.";

0 commit comments

Comments
 (0)