Eslintrc format compatibility during migrations
See original GitHub issueDescription
Ensure compatibility for .eslintrc.js
during migrations as .eslintrc.json
format currently supported.
Motivation
.js
can provide access to some advantages such as exported functions benefits.
Suggested Implementation
I imagine that .eslintrc
format can be choose in NX generators, then during migration will be equally treated both .json
and .js
formats.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Configuration Files - ESLint - Pluggable JavaScript Linter
ESLint supports configuration files in several formats: ... Both the JSON and YAML configuration file formats support comments ( package.json files should ...
Read more >Configuring ESLint - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >Migrating to v8.0.0 - ESLint - Pluggable JavaScript Linter
This guide is intended to walk you through the breaking changes. ... ESLint is officially dropping support for these versions of Node.js starting...
Read more >Migrating to v7.0.0 - ESLint - Pluggable JavaScript Linter
To address: Make sure you upgrade to at least Node.js 10.12.0 when using ESLint v7.0.0. One important thing to double check is the...
Read more >Migrating from JSCS - ESLint - Pluggable JavaScript Linter
Configuration File - In JSCS, the configuration file is .jscsrc , .jscsrc.json , .jscsrc.yaml , or .jscsrs.js . In ESLint, the configuration ...
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 Free
Top 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
Hey @Polm1, sorry for the delay in response.
EsLint is working on the new format -
eslint.config.js
(you can read about it more here: https://github.com/eslint/rfcs/tree/main/designs/2019-config-simplification).Unfortunately, due to high complexity and lack of time, instead of creating support for
.eslintrc.js
now and then again for new config once it lands, we would rather wait until the new format comes as it will also include compatibility mapper.Here is the progress: https://github.com/eslint/eslint/issues/13481 We will start with the adoption after stage 2.
Hi, not yet but it’s on the list. The new format is already implemented in eslint, although hidden behind a flag.