Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,29 @@
};


// FUNCTIONS //

/**
* Copies AST node location info.
*
* @private
* @param {Object} loc - AST node location
* @returns {Object} copied location info
*/
function copyLocationInfo( loc ) {
return {
'start': {
'line': loc.start.line,
'column': loc.start.column
},
'end': {
'line': loc.end.line,
'column': loc.end.column
}
};
}


// MAIN //

/**
Expand All @@ -61,7 +84,7 @@
'commonmark': true
}
};
lint = remark().use( config ).processSync;

Check warning on line 87 in lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-ordered-list-marker-style/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected sync method: 'processSync'
source = context.getSourceCode();

return {
Expand Down Expand Up @@ -117,26 +140,6 @@
}
}

/**
* Copies AST node location info.
*
* @private
* @param {Object} loc - AST node location
* @returns {Object} copied location info
*/
function copyLocationInfo( loc ) {
return {
'start': {
'line': loc.start.line,
'column': loc.start.column
},
'end': {
'line': loc.end.line,
'column': loc.end.column
}
};
}

/**
* Reports an error message.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var debug = logger( 'lint:license-header-glob:sync' );
* };
*
* var errs = lint( opts );
* // returns [...]
* // returns []
*/
function lint( options ) {
var names;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

var isEnumerableProperty = require( './../lib' );

var bool = isEnumerableProperty( { 'a': 'b' }, 'a' );
var bool = isEnumerableProperty({ 'a': 'b' }, 'a');
console.log( bool );
// => true

Expand Down Expand Up @@ -50,10 +50,10 @@ bool = isEnumerableProperty( void 0, 'a' );
console.log( bool );
// => false

bool = isEnumerableProperty( { 'null': false }, null );
bool = isEnumerableProperty({ 'null': false }, null);
console.log( bool );
// => true

bool = isEnumerableProperty( { '[object Object]': false }, {} );
bool = isEnumerableProperty({ '[object Object]': false }, {});
console.log( bool );
// => true