SublimeLinter not recognize "jest/globals" env

977 Views Asked by At

SublimeLinter-Eslint not working after a fresh install of react-native project.

shell$ react-native init MyProject

Error is "Environment key "jest/globals" is unknown"

Running eslint (comand line) not fired any error.

shell$ eslint App.js

Also by Using "Eslint" package (https://packagecontrol.io/packages/ESLint)

But the package "SublimeLinter-eslint" throw this error "Environment key "jest/globals" is unknown"

Thanks

1

There are 1 best solutions below

0
Djha Effendi On BEST ANSWER

It's works. Need to downgrade eslint to version 5

Version 6 is incompatible with this plugin

see https://github.com/SublimeLinter/SublimeLinter-eslint/issues/279