npm-package-json-lint
Version:
Configurable linter for package.json files.
11 lines (10 loc) • 500 B
TypeScript
/**
* Applies values from the 'overrides' field in a configuration file.
* @param {string} cwd The current working directory.
* @param {Object} filePath The file path of the file being linted.
* @param {Object} rules Rules object
* @param {Object} overrides Overrides object
* @returns {Object} A new configuration object with all of the 'overrides' applied.
* @private
*/
export declare const applyOverrides: (cwd: string, filePath: string, rules: any, overrides?: any[]) => any;