mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 22:38:31 +02:00
18 lines
474 B
Markdown
18 lines
474 B
Markdown
# ESLint Example
|
|
|
|
## What it shows
|
|
|
|
This shows how to configure a WebExtension with
|
|
[eslint](http://eslint.org/)
|
|
to protect against
|
|
writing JavaScript code that may be incompatible with modern versions of
|
|
Firefox or Chrome.
|
|
|
|
## How to use it
|
|
|
|
This requires [NodeJS](https://nodejs.org/en/) and [npm](http://npmjs.com/).
|
|
|
|
* Change into the example directory and run `npm install` to install all
|
|
dependencies.
|
|
* Execute `npm run lint` to view a report of any coding errors.
|