Skip to content

Update eslint, fix linting errors and integrate in CI #525

@Rob--W

Description

@Rob--W

This repo has an .eslintrc, added in #244: https://github.com/mdn/webextensions-examples/blob/main/.eslintrc.json

... but it is stuck in 2017 and it doesn't appear to be enforced (evidenced by the plenty of failures when I run the following from the root of the repo:

npm install
npm test   # this is equivalent to: ./node_modules/.bin/eslintrc .

eslint used to be run in CI, but for some unknown reason it was dropped in #259.
We should re-enable CI. Move to Github Actions instead of Travis CI, because Travis CI is no longer free and most mdn/Mozilla projects have switched already.

Task list:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImproves an existing repo feature.idleIssues and pull requests with no activity for three months.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions