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

Please document settings.lintAllEsApis (or fix linting logic to make it unnecessary)! #507

Closed
HansBrende opened this issue Jan 11, 2022 · 1 comment · Fixed by #544
Closed
Labels

Comments

@HansBrende
Copy link

Several lintings (e.g. Object.values) only worked for me when I added:

"settings": {
    "lintAllEsApis": true
}

to my eslint config. Please document this! I never saw this setting documented so it took me forever to figure out what the problem was. Or if it is documented somewhere... then where???

@HansBrende
Copy link
Author

This issue may be related to the following comment:

Determine if a user has a TS or babel config... If transpiling code, do not lint ES APIs. We assume that all transpiled code is polyfilled.

This is a grossly inaccurate assumption. The TS compiler, for example, only transpiles SYNTAX, it does not add polyfills!
See: https://stackoverflow.com/a/51044240/2599133

@HansBrende HansBrende changed the title Please document settings.lintAllEsApis! Please document settings.lintAllEsApis (or fix linting logic to make it unnecessary)! Jan 11, 2022
@amilajack amilajack added the docs label Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants