@adguard/aglint
Version:
Universal adblock filter list linter.
25 lines (23 loc) • 694 B
JavaScript
/*
* AGLint v3.0.2 (build date: Mon, 08 Dec 2025 08:25:49 GMT)
* (c) 2025 AdGuard Software Ltd.
* Released under the MIT license
* https://github.com/AdguardTeam/AGLint#readme
*/
/**
* We throw this error when we can't find a config file for the given directory.
* It is easy to catch this error and show a nice error message to the user
* when using the CLI tool.
*/
class NoConfigError extends Error {
/**
* Creates an instance of NoConfigError.
*
* @param dir The directory for which no config file was found.
*/
constructor(dir) {
super(`No config file found for ${dir}`);
this.name = 'NoConfigError';
}
}
export { NoConfigError };