-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
Idea: auto-create .eslintrc #76
Comments
Anything stopping you from using https://github.com/sindresorhus/atom-linter-xo? |
Yes, primarily the fact that it's on Atom (not sold on its performance yet). Also, eslint_d is a big improvment in linting performance for big files, but I guess there might be a Atom plugin around for it. |
Sorry, I meant https://github.com/sindresorhus/SublimeLinter-contrib-xo. |
Oh, I wasn't aware of its existance, thanks! If you're not using |
SublimeLinter-contrib-xo feels fast to me. I use it continuously. Could probably be a tiny bit faster, but I don't think it's worth the complexity and fragileness it adds. |
Gave it a try. It works on project using xo's rules, but it also started linting my non-xo projects for some reason. Could it be that plugin doesn't actually check |
@silverwind Yes, I hadn't really considered that until today. Just added it to the Atom plugin. Should add it to the Sublime plugin too. Opened an issue: xojs/SublimeLinter-contrib-xo#2 |
Awesome, thanks! |
@sindresorhus And what about webstorm? 😢 |
re: WebStorm. I think adding a command to XO to emit a Why? Because currently WS can only use ESLint directly. So using XO with WebStorm essentially boils down to having to manually configure ESLint to run like XO. Which in turns means installing various modules, eslint plugins and configs, and creating an appropriate (#67 doesn't do much to automate that integration with WS: it simply provide an outline of all the steps involved in setting up ESLint to work with WebStorm) The command would work sort of like the It seems to me that most of the work to generate the With such an ˋejectˋ command available, I think that integrating XO with WS would as simple as: $ npm install --save-dev xo eslint
$ xo --init --eject ... The ejected config would not be used by XO only by the external |
In-Editor linter plugins like SublimeLinter-contrib-eslint_d require a
.eslintrc
to be present in the project directory to work. Would it be possible for xo to create one, maybe through apostinstall
npm script?The text was updated successfully, but these errors were encountered: