A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/typescript-eslint/typescript-eslint/discussions/6019 below:

Have recommended/strict configs include lesser configs, and simplify type checked names · typescript-eslint/typescript-eslint · Discussion #6019 · GitHub

Description

Edited December 8th, 2022: updated to include @aaronadamsCA's #6019 (comment) and @robertknight's #6014 (comment) to this proposal.

Context

Right now, no config in the following list of configs provided with typescript-eslint includes any other config in that list:

That means if you want, say, the strictest, you must enable all three (https://typescript-eslint.io/docs/linting/configs):

{
  "extends": [
    "plugin:@typescript-eslint/recommended",
    "plugin:@typescript-eslint/recommended-requiring-type-checking",
    "plugin:@typescript-eslint/strict"
  ]
}

That's very inconvenient -and sometimes even confusing- for end users.

Breaking Change: Including Lesser Configs

Proposal: how about we have each config in that list also include any previous config in the list? That way if you want, say, the strict ruleset, you would only need to enable it, not recommended-* ones:

{
  "extends": [
    "plugin:@typescript-eslint/strict"
  ]
}
Associated Enhancement: More Delineated Configs

We've received occasional user feedback (e.g. #6014 (comment)) that our recommended rulesets also include some stylistic rules. The ESLint community has generally moved away from the old 2010s-era eslint-config-airbnb practice of doing that. I agree that we should separate those out.

This proposal suggests we split our recommended configurations into:

You can see the equivalent code changes in #5251.

Description of Breaking Changes

In other words, there are three changes being proposed here:

Thanks @shawnmcknight for a great Twitter discussion on phrasing the breaking changes!


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4