Skip to content

Commit

Permalink
Add "npm audit" command, fix errors
Browse files Browse the repository at this point in the history
This does not fix errors that stem from the nightwatch dependency, as
those vulnerabilities are only corrected in a beta version of Nightwatch
that isn't ready for prime time. The good news is that, as a
devDependency, nightwatch is not installed on Heroku.
  • Loading branch information
openjck committed Jun 13, 2018
1 parent bf6acfa commit aa340c9
Show file tree
Hide file tree
Showing 7 changed files with 15,108 additions and 9,775 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,10 @@ module.exports = {
'react/display-name': 'off',
'react/prop-types': 'off',
'react/no-unescaped-entities': ['error', {forbid: ['>', '}']}],

// Temporarily work around this bug:
// https://github.com/evcohen/eslint-plugin-jsx-a11y/pull/437
'jsx-a11y/heading-has-content': 'off',
'jsx-a11y/anchor-has-content': 'off',
},
};
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# testing
/coverage
selenium-debug.log
selenium-server.log

# generated files
/build
Expand All @@ -18,12 +19,12 @@ selenium-debug.log
.env.production.local

npm-debug.log*

# We used Yarn in the past
yarn.lock
yarn-debug.log*
yarn-error.log*

# We use yarn.lock, not package-lock.json
/package-lock.json

# Just an extra precaution. At the moment, some demo instances of this site have
# a data/ directory which should not be published.
data/
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ Facebook.

### Install

1. [Install Yarn](https://yarnpkg.com/lang/en/docs/install/)
2. Run `yarn`
1. [Install Node and NPM](https://nodejs.org/en/download/)
2. Run `npm install`

### Run

Run `yarn start`
Run `npm start`

### Test

Run `yarn test`
Run `npm test`

### Analyze

To analyze the size of the JavaScript bundle that will be served, run `yarn
To analyze the size of the JavaScript bundle that will be served, run `npm run
size`.

### Notes
Expand Down
Loading

0 comments on commit aa340c9

Please sign in to comment.