Skip to content

Auto-detect original ESLint file in any form #722

Open
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

🚀 Feature Request

Following #58, https://eslint.org/docs/user-guide/configuring states:

Configuration Files - use a JavaScript, JSON or YAML file to specify configuration information for an entire directory and all of its subdirectories. This can be in the form of an .eslintrc.* file or an eslintConfig field in a package.json file, both of which ESLint will look for and read automatically, or you can specify a configuration file on the command line.

Existing Behavior

tslint-to-eslint-config will only look at .eslintrc.js by default if not explicitly told a path.

config: "./.eslintrc.js",

Change Proposal

Add a function dependency to runCli that determines the initial script path for ESLint, such as .eslintrc.js, .eslintrc.yml.

The tricky part here will be supporting package.json eslintConfig...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions