Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Switching between ES5 and ES6 #112

Closed
imalitavakoli opened this issue Sep 21, 2015 · 1 comment
Closed

Switching between ES5 and ES6 #112

imalitavakoli opened this issue Sep 21, 2015 · 1 comment

Comments

@imalitavakoli
Copy link

Is there any possible solution to disable linter-jscs when we're viewing a ES5 .js file, so that it doesn't show errors on our file?

And yes! It doesn't matter if I remove the config file(.jshintrc) for the jscs... As far as the linter-jscs package is enable, it shows errors on ES5 Javascript files!

This issue is somehow similar to this one: #18

But the difference is that I'd like to view both(ES5, ES6) files in the SAME project.
Right now whenever I open my ES5 file, I have to disable the linter-jscs package and enable it again when I switch to ES6... This is tedious!

Is there a solution or something that I'm not seeing?
Thanks.

@imalitavakoli imalitavakoli changed the title Switing between ES5 and ES6 Switching between ES5 and ES6 Sep 21, 2015
@casesandberg
Copy link
Contributor

The package lints all js files, there is no way for atom to know that your file is ES5 / ES6 and conditionally apply it.

You can, however, move your ES5 files into a specific folder and just exlude that folder from being linted: http://jscs.info/overview#excludefiles

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants