You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letnameAndVersion=null;// eslint-disable-line no-useless-assignment -- known bug in the rule
349
350
350
351
try{
351
352
constpackageJsonPath=ModuleResolver.resolve(
@@ -510,6 +511,7 @@ class ConfigArrayFactory {
510
511
* @param {Object} [options] The options.
511
512
* @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.
512
513
* @param {string} [options.name] The config name.
514
+
* @throws {Error} If the config file is invalid.
513
515
* @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist.
514
516
*/
515
517
loadInDirectory(directoryPath,{ basePath, name }={}){
@@ -595,6 +597,7 @@ class ConfigArrayFactory {
595
597
/**
596
598
* Load `.eslintignore` file in the current working directory.
597
599
* @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist.
0 commit comments