Skip to content

Commit

Permalink
Add a fix command to autofix js linting errors (firefox-devtools#1131)
Browse files Browse the repository at this point in the history
  • Loading branch information
hzoo authored and jasonLaster committed Nov 6, 2016
1 parent 6f58d70 commit b5b07e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,12 @@ To test your JS changes run the command:
$ npm run lint-js
```

To automatically fix many errors run the command:

```
$ npm run lint-fix
```

#### Storybook

Storybook is our local development and testing utility that allows you to see how an individual component like the breakpoint list view or the call stack view react to any changes to style and code you've made.
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"lint": "npm run lint-css -s; npm run lint-js -s",
"lint-css": "stylelint public/js/components/*.css",
"lint-js": "eslint public/js",
"lint-fix": "npm run lint-js -- --fix",
"test": "node public/js/test/node-unit-tests.js",
"test-all": "npm run test; npm run lint; npm run flow; npm run firefox-unit-test",
"mocha-server": "node bin/mocha-server.js",
Expand Down

0 comments on commit b5b07e4

Please sign in to comment.