-
Notifications
You must be signed in to change notification settings - Fork 33
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
TypeError: Cannot read property 'length' of undefined #53
Comments
Thank you for catching this, @evilebottnawi! I've release v2.8.1. It should address your issue. It also contains feedback from #50. Let me know what you think. |
@tclindner problem still exists 😞 use post above to reproducible error. [ 'error',
[ 'name',
'version',
'description',
'keywords',
'homepage',
'bugs',
'license',
'author',
'contributors',
'files',
'main',
'jsnext:main',
'bin',
'man',
'directories',
'repository',
'scripts',
'config',
'dependencies',
'devDependencies',
'peerDependencies',
'bundleDependencies',
'bundledDependencies',
'optionalDependencies',
'engines',
'engineStrict',
'os',
'cpu',
'preferGlobal',
'private',
'publishConfig' ] ] |
I'm so sorry about that @evilebottnawi! I believe I have identified the issue. The rules loader was not properly interpreting this rule as a "array" type rule. I've released v2.8.2 to address that. Can you please try it out and see if it resolves your issue? Sorry again about the issues with this rule. P.S. I will be logging an enhancement to improve the rules loader to avoid hitting this issue in the future. I'll tag you on that ticket. Thank you again for helping improve this project 🥇 |
2.8.0
5.3.0
8.4.0
Not throw error.
npmpackagejsonlint.config.js
withprefer-property-order
rule.package.json
.The text was updated successfully, but these errors were encountered: