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

Object.values failed to ignore #1

Open
wzpan opened this issue Nov 18, 2019 · 1 comment
Open

Object.values failed to ignore #1

wzpan opened this issue Nov 18, 2019 · 1 comment

Comments

@wzpan
Copy link

wzpan commented Nov 18, 2019

Hello,

I'm trying to ignore Object.values via appending values to setting config. The other methods are ignorable(including Object.assign), while Object.values is not.

  // ...
  "builtin-compat-ignore": ["find", "includes", "log2", "assign", "values", "trimLeft", "startsWith", "endsWith"];

image

How to dismiss such error?

By the way can I specify the namespace of each method? For example, I want to exclude cc.select but not Intl.PluralRules.select. But appending select to builtin-compat-ignore will dismiss both error. But I still want to keep Intl.PluralRules.select. I tried "builtin-compat-ignore": ["cc.select", ...]; but no luck.

@wzpan
Copy link
Author

wzpan commented Nov 18, 2019

Oh I figure out that such Object.values error is reported by eslint-plugin-compat but not eslint-plugin-builtin-compat.

Still need help for the second problem. Thanks.

By the way can I specify the namespace of each method? For example, I want to exclude cc.select but not Intl.PluralRules.select. But appending select to builtin-compat-ignore will dismiss both error. But I still want to keep Intl.PluralRules.select. I tried "builtin-compat-ignore": ["cc.select", ...]; but no luck.

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