[PR #86] [CLOSED] Moved rules into their own files #816

Closed
opened 2026-03-03 01:30:17 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/DavidAnson/markdownlint/pull/86
Author: @JoshuaKGoldberg
Created: 10/30/2017
Status: Closed

Base: masterHead: rule-files-split


📝 Commits (1)

  • b63647f Moved rules into their own files

📊 Changes

43 files changed (+1283 additions, -1177 deletions)

View changed files

lib/expressions.js (+18 -0)
📝 lib/rules.js (+40 -1177)
lib/rules/blanksAroundFences.js (+19 -0)
lib/rules/blanksAroundHeaders.js (+34 -0)
lib/rules/blanksAroundLists.js (+33 -0)
lib/rules/commandsShowOutput.js (+24 -0)
lib/rules/fencedCodeLanguage.js (+16 -0)
lib/rules/firstHeaderH1.js (+18 -0)
lib/rules/firstLineH1.js (+32 -0)
lib/rules/headerIncrement.js (+20 -0)
lib/rules/headerStartLeft.js (+17 -0)
lib/rules/headerStyle.js (+38 -0)
lib/rules/hrStyle.js (+19 -0)
lib/rules/lineLength.js (+46 -0)
lib/rules/listIndent.js (+18 -0)
lib/rules/listMarkerSpace.js (+28 -0)
lib/rules/noBareUrls.js (+27 -0)
lib/rules/noBlanksBlockQuote.js (+17 -0)
lib/rules/noDuplicateHeader.js (+19 -0)
lib/rules/noEmphasisAsHeader.js (+41 -0)

...and 23 more files

📄 Description

Everything under lib/rules/* is a rules file (with the name of the rule in camelCase), re-exported into an array in lib/rules.js.
Moved the regular expressions from lib/rules.js to lib/expressions.js, and the rest of the variables into lib/shared.js.

Fixes #83.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/DavidAnson/markdownlint/pull/86 **Author:** [@JoshuaKGoldberg](https://github.com/JoshuaKGoldberg) **Created:** 10/30/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `rule-files-split` --- ### 📝 Commits (1) - [`b63647f`](https://github.com/DavidAnson/markdownlint/commit/b63647f6b159eddb0897b381508719118af4e8ee) Moved rules into their own files ### 📊 Changes **43 files changed** (+1283 additions, -1177 deletions) <details> <summary>View changed files</summary> ➕ `lib/expressions.js` (+18 -0) 📝 `lib/rules.js` (+40 -1177) ➕ `lib/rules/blanksAroundFences.js` (+19 -0) ➕ `lib/rules/blanksAroundHeaders.js` (+34 -0) ➕ `lib/rules/blanksAroundLists.js` (+33 -0) ➕ `lib/rules/commandsShowOutput.js` (+24 -0) ➕ `lib/rules/fencedCodeLanguage.js` (+16 -0) ➕ `lib/rules/firstHeaderH1.js` (+18 -0) ➕ `lib/rules/firstLineH1.js` (+32 -0) ➕ `lib/rules/headerIncrement.js` (+20 -0) ➕ `lib/rules/headerStartLeft.js` (+17 -0) ➕ `lib/rules/headerStyle.js` (+38 -0) ➕ `lib/rules/hrStyle.js` (+19 -0) ➕ `lib/rules/lineLength.js` (+46 -0) ➕ `lib/rules/listIndent.js` (+18 -0) ➕ `lib/rules/listMarkerSpace.js` (+28 -0) ➕ `lib/rules/noBareUrls.js` (+27 -0) ➕ `lib/rules/noBlanksBlockQuote.js` (+17 -0) ➕ `lib/rules/noDuplicateHeader.js` (+19 -0) ➕ `lib/rules/noEmphasisAsHeader.js` (+41 -0) _...and 23 more files_ </details> ### 📄 Description Everything under `lib/rules/*` is a rules file (with the name of the rule in camelCase), re-exported into an array in `lib/rules.js`. Moved the regular expressions from `lib/rules.js` to `lib/expressions.js`, and the rest of the variables into `lib/shared.js`. Fixes #83. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 01:30:17 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#816
No description provided.