index.js
function getFoldersToCheck(src) {
		var folders = [];
		src.forEach(function (entry) {
			if (entry.charAt(0) === '!') {
				folders.push(path.join('!' + mainFolder, entry.substring(1, entry.length)));
			} else {
				if (entry.charAt(0) === '/') {
					folders.push(entry);
				} else {
					folders.push(path.join(mainFolder, entry));
				}
			}
		});

		return folders;
	}
function getFoldersToCheck(src) {
		var folders = [];
		src.forEach(function (entry) {
			if (entry.charAt(0) === '!') {
				folders.push(path.join('!' + mainFolder, entry.substring(1, entry.length)));
			} else {
				if (entry.charAt(0) === '/') {
					folders.push(entry);
				} else {
					folders.push(path.join(mainFolder, entry));
				}
			}
		});

		return folders;
	}
function getFoldersToCheck ( src ) { var folders = [ ] ; src . forEach ( function ( entry ) { if ( entry . charAt ( 0 ) === '!' ) { folders . push ( path . join ( '!' + mainFolder , entry . substring ( 1 , entry . length ) ) ) ; } else { if ( entry . charAt ( 0 ) === '/' ) { folders . push ( entry ) ; } else { folders . push ( path . join ( mainFolder , entry ) ) ; } } } ) ; return folders ; }
Return all the folders that the plugin have to check. Because the plugin is inside the node_modules
folder, we prepended to all the path the absolute path of the main context of execution.

@param {object} src - Path of the files you want to be checked by the plugin.

@returns {string[]} Path of the files you want to be checked by the plugin with the absolute path of the context prepended.
Return all the folders that the plugin have to check . Because the plugin is inside the node_modules folder we prepended to all the path the absolute path of the main context of execution .