question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automatic conversion of .jscsrc files to .eslintrc files

See original GitHub issue

For people coming over from JSCS, it would be nice to have a way to automatically convert their .jscsrc files into equivalent .eslintrc files.

What I have in mind is adding an additional option to --init that is “Convert JSCS configuration file”:

  • We could use Polyjuice to do this, and contribute back to Polyjuice to help make it more feature-complete.
  • We’d need to figure out what to do about style presets from JSCS. Some of them already have ESLint shareable config equivalents, but I’m guessing a lot of them do not. We might need to do this manually.

Another option would be to instruct people on how to do the conversion themselves using Polyjuice or some other tool, though it seems like the better user experience would be to have this capability as part of ESLint.

Thoughts?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

7reactions
mgolcommented, Apr 14, 2016

It might be worthwhile to be able to merge existing .jscsrc AND .eslintrc into a final .eslintrc as some people are already using ESLint in conjunction with JSCS. I know I have for some time, in times when JSCS had way more style-related rules than ESLint.

4reactions
nzakascommented, Aug 19, 2016

After thinking about this some more, I wonder if we can get away with just having people use Polyjuice directly. It would mean we don’t have to add anything specifically to ESLint, avoiding another dependency. We would just have to make sure that the documentation called out this step.

Thoughts? @markelog

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrating from JSCS - ESLint - Pluggable JavaScript Linter
Polyjuice is a utility for converting JSCS (and JSHint) configuration files into ESLint configuration files automatically. It understands the equivalent ...
Read more >
Welcoming JSCS To ESLint - ESLint中文文档
Incorporating a way to convert .jscsrc files into .eslintrc files with the goal of having a single command to do this automatically. (#5857);...
Read more >
Integrating and Enforcing Prettier & ESLint
What do ESLint and Prettier have in common? They both convert files to an AST, perform various alterations to it, and convert it...
Read more >
ESLint | AppCode Documentation - JetBrains
With automatic configuration, AppCode uses the ESLint package from the project node_modules folder and the .eslintrc.* configuration file from the folder ...
Read more >
Converting your Angular project from TSLint to ESLint
ng g @angular-eslint/schematics:convert-tslint-to-eslint <project-name-here>. You will notice it adds a new .eslintrc.json file and quite a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found