Typescript-eslint: [camelcase] Add option to disable checking on library imports?

Created on 15 Nov 2019  路  3Comments  路  Source: typescript-eslint/typescript-eslint

(As this is a feature request I didn't use the template. If you guys want me to fill it in, let me know and I will)

For the camelcase rule does it make sense to add an option to not check imports from 3rd party libraries? As you have no influence on their naming checking not checking those names would be a nice opt-out IMO.

I understand that you could rename the imports using the ... as ... convention, but there are plenty of use cases where people prefer not to.

(BTW I tried if the ignoreDestructuring option works, as named importing is technically object destructuring, but alas!)

plugin rule option external eslint-plugin

Most helpful comment

@Zjaaspoer, @bradzacher Seems like it has been merged into eslint a week ago.

All 3 comments

Happy to accept a PR

馃憤

@Zjaaspoer, @bradzacher Seems like it has been merged into eslint a week ago.

Was this page helpful?
0 / 5 - 0 ratings