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.

Eslintrc format compatibility during migrations

See original GitHub issue

Description

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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
meeroslavcommented, Aug 17, 2021

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.

0reactions
meeroslavcommented, Dec 5, 2022

Hi, not yet but it’s on the list. The new format is already implemented in eslint, although hidden behind a flag.

Read more comments on GitHub >

github_iconTop 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 >

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