@electron/lint-roller 2.4.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +0,0 @@
1
- const { addError, filterTokens } = require('markdownlint/helpers');
2
-
3
- module.exports = {
4
- names: ['EMD004', 'no-newline-in-links'],
5
- description: 'Newlines inside link text',
6
- tags: ['newline', 'links'],
7
- parser: 'markdownit',
8
- function: function EMD004(params, onError) {
9
- filterTokens(params, 'inline', (token) => {
10
- const { children } = token;
11
- let { lineNumber } = token;
12
- let inLink = false;
13
- for (const child of children) {
14
- const { type } = child;
15
- if (type === 'link_open') {
16
- inLink = true;
17
- } else if (type === 'link_close') {
18
- inLink = false;
19
- } else if (type === 'softbreak') {
20
- if (inLink) {
21
- addError(onError, lineNumber);
22
- break;
23
- } else {
24
- lineNumber++;
25
- }
26
- }
27
- }
28
- });
29
- },
30
- };
@@ -1,5 +0,0 @@
1
- const EMD002 = require('./emd002.js');
2
- const EMD003 = require('./emd003.js');
3
- const EMD004 = require('./emd004.js');
4
-
5
- module.exports = [EMD002, EMD003, EMD004];