Is linting default in METEOR@1.3.3?


#1

After I updated to 1.3.3 Meteor gives me errors for globals:

Foo = new Mongo.Collection('foo');

ReferenceError: Foo is not defined

Is there anyway that I disable some rules, or what?
Thanks


#2

Where are you trying to use Foo? Did it work in 1.2? There should be no difference in 1.3+.


#3

Exception is thrown where I make the assignment.
So I think it doesn’t matter where I try to use it. Correct?
It works if I define it with const.
It works with METEOR@1.3.2.4 without any problem.


#4

That’s odd - is this in a file in imports/? I don’t understand how we wouldn’t have noticed before, and we are definitely using stuff like this all over Galaxy. I feel like there is some missing information here.


#5

The files are located in the /collections directory, not in imports directory.
I am going to reproduce the issue with a minimal code.


#6

That would be awesome!


#7

Here is the repo.
I found that if I remove es2015 preset from the .babelrc it works.


#8

Have you tried removing the babelrc entirely? The ES2015 preset has strict mode on by default, which doesn’t allow globals.


#9

I am going to remove babelrc, thank you @sashko.