This is a follow up to https://github.com/avajs/eslint-plugin-ava/issues/210.
I finally found a way to reproduce the issue:
yarn install in eachsemantic-release/gitlab => it lints properly without errorssemantic-release/github => The error happensSo after starting Atom it will work for the firt file opened and all the files in the same project. Opening a file from another project will cause the issue.
I'm guessing it's because for each project an instance of the linter will be created and esm fails during the creation of the second instance due to a conflict with the __global__ variable.
Thanks for the repro @pvdlg!
Fixed by https://github.com/standard-things/esm/commit/9c2ecdf21b696c02068a0ed34e00a361ada263f7#diff-332068872182b2165b3007bf6930b230.
@jdalton thanks for the fix! Do you plan to release it soon by any chance?
Soonish. I should release before I start of more aggressive perf work. I'll ping back this thread when it's released.