npm-package-json-lint icon indicating copy to clipboard operation
npm-package-json-lint copied to clipboard

Export configuration type

Open regseb opened this issue 2 years ago • 0 comments

Export the types (file *.d.ts) of the configuration so that we can validate our configurations with TypeScript.


Example of npmpackagejsonlint.config.js if types are exported:

// @ts-check
/**
 * @type {import('npm-package-json-lint').Configuration}
 */
module.exports = {
  rules: {
    'require-author': 'error'
  }
};

regseb avatar Feb 22 '23 15:02 regseb