Skip to content
Merged
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 @@ -129,7 +129,7 @@ function main( context ) {
}
sourceCode = replace( source.text, RE_JSDOC, '' );
sourceCode = replace( sourceCode, RE_ESLINT_INLINE, '\n' );
filename = context.getFilename();
filename = context.filename;
dir = dirname( filename );
/**
* Requires modules after converting relative to absolute paths.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function main( context ) {

hasMainExportTest = false;
tOkExists = false;
filename = context.getFilename();
filename = context.filename;
if (
contains( filename, '/test/' ) &&
contains( filename, 'test.' ) &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function main( context ) {
// Do not lint executable Node.js script files:
return {};
}
filename = context.getFilename();
filename = context.filename;
dir = dirname( filename );
opts = {
'includeDecimal': false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* @returns {Object} validators
*/
function main( context ) {
var filename = context.getFilename();
var filename = context.filename;
var source = context.sourceCode;

return {
Expand Down Expand Up @@ -99,7 +99,7 @@

// Use `git` to determine the year the file was created...
try {
expected = execSync( 'git log --diff-filter=A --follow --format=%ad --date=short -- '+filename, {

Check warning on line 102 in lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-license-header-year/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected sync method: 'execSync'
'encoding': 'utf8'
});
expected = expected.split( '-' )[ 0 ];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

// VARIABLES //

// TODO: Figure out a better way than relying on a curated list of non-verbs

Check warning on line 33 in lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-main-export/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected 'todo' comment: 'TODO: Figure out a better way than...'
var NON_VERBS = [
'Bias',
'BLAS',
Expand Down Expand Up @@ -64,7 +64,7 @@
var source;

source = context.sourceCode;
modulePath = context.getFilename();
modulePath = context.filename;

// Get the part starting with `@stdlib`, shift by one to avoid leading `@`:
modulePath = modulePath.substr( modulePath.indexOf( '@stdlib' )+1 );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
* @returns {boolean} boolean indicating whether the directory content is a directory
*/
function isDirectory( content ) {
var stat = statSync( content );

Check warning on line 71 in lib/node_modules/@stdlib/_tools/eslint/rules/namespace-export-all/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected sync method: 'statSync'
return stat.isDirectory();
}

Expand Down Expand Up @@ -103,7 +103,7 @@
} else {
excludes = EXCLUDE_LIST;
}
filename = context.getFilename();
filename = context.filename;
if ( !filename || !endsWith( filename, 'index.js' ) ) {
return {};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function main( context ) {
* @param {string} id - module identifier
*/
function isSelfRequire( context, node, id ) {
var filePath = context.getFilename();
var filePath = context.filename;
if ( filePath && id && filePath === resolve( id ) ) {
report( node );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function main( context ) {
if ( node.callee.name === 'require' ) {
requirePath = node.arguments[ 0 ].value;
if ( isString( requirePath ) ) {
filename = context.getFilename();
filename = context.filename;
dir = dirname( filename );
if ( startsWith( requirePath, '.' ) ) {
requirePath = path.resolve( dir, requirePath );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ function main( context ) {
var dir;

sourceCode = context.sourceCode;
filename = context.getFilename();
filename = context.filename;

// Only process TypeScript declaration files:
if ( !endsWith( filename, '.d.ts' ) ) {
Expand Down