Skip to content

Commit 09a849b

Browse files
committed
Switch out for custom rules
1 parent 50af533 commit 09a849b

2 files changed

Lines changed: 50 additions & 39 deletions

File tree

etc/eslint/rules/stdlib.js

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,56 @@ rules[ 'stdlib/jsdoc-leading-description-sentence' ] = [ 'error', {
647647
]
648648
}];
649649

650+
/**
651+
* Require Unix linebreaks.
652+
*
653+
* @see [linebreak-style]{@link https://github.com/wooorm/remark-lint/tree/master/packages/remark-lint-linebreak-style}
654+
*/
655+
rules[ 'stdlib/jsdoc-linebreak-style' ] = [ 'error', 'unix' ];
656+
657+
/**
658+
* Require double quotes for link titles.
659+
*
660+
* @see [link-title-style]{@link https://github.com/wooorm/remark-lint/tree/master/packages/remark-lint-link-title-style}
661+
*
662+
* @example
663+
* // Bad...
664+
*
665+
* /**
666+
* * Boop beep.
667+
* *
668+
* * [example](https://example.com (Example))
669+
* *
670+
* * @returns {string} a value
671+
* *
672+
* * @example
673+
* * var str = beep();
674+
* * // returns 'boop'
675+
* *\/
676+
* function beep() {
677+
* return 'boop';
678+
* }
679+
*
680+
* @example
681+
* // Good...
682+
*
683+
* /**
684+
* * Boop beep.
685+
* *
686+
* * [example](https://example.com "Example")
687+
* *
688+
* * @returns {string} a value
689+
* *
690+
* * @example
691+
* * var str = beep();
692+
* * // returns 'boop'
693+
* *\/
694+
* function beep() {
695+
* return 'boop';
696+
* }
697+
*/
698+
rules[ 'stdlib/jsdoc-link-title-style' ] = [ 'error', '"' ];
699+
650700
/**
651701
* Prevent unnecessary indentation of list item bullets.
652702
*

etc/remark/plugins/lint/jsdoc.js

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,6 @@ plugins.push([
126126
[ 'error', 'atx' ]
127127
]);
128128

129-
/**
130-
* Require Unix linebreaks.
131-
*
132-
* @see [linebreak-style]{@link https://github.com/wooorm/remark-lint/tree/master/packages/remark-lint-linebreak-style}
133-
*/
134-
plugins.push([
135-
require( 'remark-lint-linebreak-style' ),
136-
[ 'error', 'unix' ]
137-
]);
138-
139129
/**
140130
* Require double quotes for link titles.
141131
*
@@ -243,35 +233,6 @@ plugins.push([
243233
[ 'off' ]
244234
]);
245235

246-
/**
247-
* Require blank lines between block nodes.
248-
*
249-
* @see [no-missing-blank-lines]{@link https://github.com/wooorm/remark-lint/tree/master/packages/remark-lint-no-missing-blank-lines}
250-
*
251-
* @example
252-
* <!-- Bad -->
253-
*
254-
* # Beep
255-
* ## Boop
256-
*
257-
* @example
258-
* <!-- Good -->
259-
*
260-
* # Beep
261-
*
262-
* ## Boop
263-
*
264-
*/
265-
plugins.push([
266-
require( 'remark-lint-no-missing-blank-lines' ),
267-
[
268-
'error',
269-
{
270-
'exceptTightLists': true
271-
}
272-
]
273-
]);
274-
275236
/**
276237
* Allow multiple top-level headings.
277238
*

0 commit comments

Comments
 (0)