File tree Expand file tree Collapse file tree 2 files changed +21
-21
lines changed
_tools/eslint/rules/jsdoc-no-heading-punctuation/lib Expand file tree Collapse file tree 2 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,26 @@ var rule;
4040
4141// FUNCTIONS //
4242
43+ /**
44+ * Copies AST node location info.
45+ *
46+ * @private
47+ * @param {Object } loc - AST node location
48+ * @returns {Object } copied location info
49+ */
50+ function copyLocationInfo ( loc ) {
51+ return {
52+ 'start' : {
53+ 'line' : loc . start . line ,
54+ 'column' : loc . start . column
55+ } ,
56+ 'end' : {
57+ 'line' : loc . end . line ,
58+ 'column' : loc . end . column
59+ }
60+ } ;
61+ }
62+
4363/**
4464* Rule to prevent Markdown headings in JSDoc descriptions from ending with specified characters.
4565*
@@ -115,26 +135,6 @@ function main( context ) {
115135 }
116136 }
117137
118- /**
119- * Copies AST node location info.
120- *
121- * @private
122- * @param {Object } loc - AST node location
123- * @returns {Object } copied location info
124- */
125- function copyLocationInfo ( loc ) {
126- return {
127- 'start' : {
128- 'line' : loc . start . line ,
129- 'column' : loc . start . column
130- } ,
131- 'end' : {
132- 'line' : loc . end . line ,
133- 'column' : loc . end . column
134- }
135- } ;
136- }
137-
138138 /**
139139 * Reports an error message.
140140 *
Original file line number Diff line number Diff line change 1616* limitations under the License.
1717*/
1818
19- /* eslint-disable object-curly-newline */
19+ /* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
2020
2121'use strict' ;
2222
You can’t perform that action at this time.
0 commit comments