Skip to content

.eslintrc doesn't override defaults #514

@gamtiq

Description

@gamtiq

First of all, thank you for the great tool!

Current Behavior

tsdx ignores .eslintrc.js or .eslintrc.json in project's root directory and uses default config when lint script is run.
At the moment it is possible to redefine default linting config only by specifying necessary settings in eslint key inside package.json. It is quite inconvenient.

Desired Behavior

Use .eslintrc.js or .eslintrc.json when it is present in project's root directory to redefine/replace default config.

Suggested Solution

Check presence of .eslintrc.js or .eslintrc.json in project's root directory and use its contents instead of default config returned by createEslintConfig.

Who does this impact? Who is this for?

All users wanting to customize linting settings.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: integrationRelated to an integration, not necessarily to core (but could influence core)solution: duplicateThis issue or pull request already existssolution: workaround availableThere is a workaround available for this issue

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions