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

Not working IF sentence inside #428

Open
yizumi1012xxx opened this issue Dec 6, 2020 · 1 comment
Open

Not working IF sentence inside #428

yizumi1012xxx opened this issue Dec 6, 2020 · 1 comment

Comments

@yizumi1012xxx
Copy link

yizumi1012xxx commented Dec 6, 2020

I cloned eslint-plugin-compat-demo and added code and executed yarn lint.
COMPAT work IF sentence outside, but NOT work IF sentence inside.

image
const foo1 = Object.values({});(line 17) is not warning by compat.
I desire compat work everywhere include IF sentence inside.

xxx@xxx eslint-plugin-compat-demo % yarn lint
yarn run v1.22.10
$ eslint .; exit 0
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

/Users/xxx/xxx/eslint-plugin-compat-demo/index.js
   7:13  error  PaymentRequest is not supported in Safari 9, IE 9        compat/compat
  10:18  error  IntersectionObserver is not supported in Safari 9, IE 9  compat/compat
  12:13  error  Object.values() is not supported in Safari 9, IE 9       compat/compat

✖ 3 problems (3 errors, 0 warnings)

✨  Done in 1.21s.
@YuseiUeno
Copy link

YuseiUeno commented Dec 10, 2021

same issue
#404

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

2 participants