Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export configuration type #964

Open
regseb opened this issue Feb 22, 2023 · 0 comments
Open

Export configuration type #964

regseb opened this issue Feb 22, 2023 · 0 comments

Comments

@regseb
Copy link
Contributor

regseb commented Feb 22, 2023

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'
  }
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant