Skip to content

[Frontend Engineering]: Apply Eslint on Vanilla JavaScript code #13

@reboottime

Description

@reboottime

Abstract

This note tracked why we need eslint and how to use eslint in Valina JavaScript and TypeScript projects.

Background

Why?: People may have different habits and preferences on how to format code and name a variable. While this is not necessarily a problem, team collaboration, codebase maintainability, and readability would be annoying issues when working with other people on a large project.

So here comes a question, how can I enforce a consistent style across team members?

JSLint is the first trial of the above problem. Eslint, a successor, is adopted widely by developers. After typescript adoptions, typescript-eslint project emerged to satisfy the needs of force code style on typescript projects.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions