Skip to content

Commit

Permalink
👷 Resolves #169, add the Mozilla addons linter (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Apr 17, 2018
1 parent 4a070bd commit 64d3f3c
Show file tree
Hide file tree
Showing 5 changed files with 9,815 additions and 2,527 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ before_install:
- export PATH=$HOME/.yarn/bin:$PATH

script:
- npm run lint
- npm run build
- npm run test
- yarn lint:code
- yarn build
- yarn lint:firefox
- yarn test
12 changes: 4 additions & 8 deletions hacking.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,16 @@ This command will produce a zip file that can be load in Chrome: [.path]_dist/as
This project is using a code linter to enforce code consistency.
To make sure that the code you have contributed, follow the code rules, execute the following command:

$ npm run lint
$ npm run lint:code

== Add-on Linter

Mozilla provides a Node.js package to validate an add-on.
You can install the linter with `npm`:
You can run the linter with `npm`:

$ npm install -g addons-linter
$ npm run lint:firefox

This command will install the package globally, so you can use the linter from any directory on your machine.

After installation, run the linter on the archive produced by `npm run build`:

$ addons-linter dist/asciidoctor-browser-extension.zip
NOTE: The linter will inspect the archive produced by `npm run build`, so make sure the file `dist/asciidoctor-browser-extension.zip` is present before running this command.

== Release

Expand Down
Loading

0 comments on commit 64d3f3c

Please sign in to comment.