We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Check order of sub-properties with prefer-property-order. Example with sub-properties of exports to check that types comes first and default comes last (I had a problem because I had positioned types after default):
prefer-property-order
exports
types
default
{ "rules": { "prefer-property-order": ["error", [ "...", "files", "exports", "exports.types", "exports.deno", "exports.browser", "exports.react-native", "exports.node-addons", "exports.node", "exports.import", "exports.require", "exports.default", "main", "..." ]] } }
Other sub-properties:
[ "bugs.url", "bugs.email", "license.type", "license.url", "author.name", "author.email", "author.url", "funding.type", "funding.url", "repository.type", "repository.url", "repository.directory" ]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Check order of sub-properties with
prefer-property-order
. Example with sub-properties ofexports
to check thattypes
comes first anddefault
comes last (I had a problem because I had positionedtypes
afterdefault
):Other sub-properties:
The text was updated successfully, but these errors were encountered: