Skip to content

Latest commit

 

History

History
 
 

client

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Please see parent directory README.md.

Classes and React

We switched to ES6 Classes from React.createClass(). Thus your React components extend React.Component.

ESLint

The .eslintrc file is based on the AirBnb eslintrc.

It also includes many eslint defaults that the AirBnb eslint does not include.

Running linter:

Soon to be in gulpfile....but gulp-eslint depends on eslint depends on

    "eslint-plugin-react": "^2.0.2",

So don't use yarn run gulp lint yet.

From either top level or within client directory

yarn run lint

Updating Node Dependencies

yarn global add npm-check-updates

Then run this to update the dependencies (starting at the top level).

# Make sure you are in the top directory, then run:
cd client
ncu -u
yarn upgrade

Adding Node Modules

Suppose you want to add a dependency to "module_name"....

Before you do so, consider:

  1. Do we really need the module and the extra JS code?
  2. Is the module well maintained?
cd client
yarn add module_name@version