Automatic conversion of .jscsrc files to .eslintrc files
See original GitHub issueFor 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:
- Created 7 years ago
- Reactions:2
- Comments:14 (13 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.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