Skip to content

How does linting work in this project? #119

@zeke

Description

@zeke

When I make changes to the files in this project in VSCode, it makes a bunch of formatting changes that I end up having to revert. I don't care what settings we're using here, I just don't want my editor to trample on them.

This project uses eslint and editorconfig, and it has .vscode/settings.json file.

When I run npm run lint on the main branch, all is well.

When I open a file like index.js or index.test.ts in VSCode and hit Save, it formats a bunch of the code, leading to a huge diff. npm run lint still passes after those changes, so apparently eslint is indifferent about all those formatting preferences that my editor is applying on save?

Forgive my ignorance on the matter, but what am I doing wrong here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions