Config O'clock
We define all eslint rules in this project.
This config contains several common utility, like :
- Babel
- ESLint
- Mocha
- Chai
- Sinon
- Husky
- Prettier
- Lint-staged
Config React
- If you're using this config with a React project,
- Also, download config-oclock-front.
- In your project, add this config in
.eslintrc
:
- Create a
.babelrc
and add this :
- Create a file
brunch-config.js
at root of your project, and add this :
const package = ;const brunchConfig = ;exportsconfig = ;
Config Node.js
- Or, with a Node.js project,
- Also, download config-oclock-back,
- In your project, add this config in
.eslintrc
:
- Create a
.babelrc
and add this :
Others config
You need use this config with one of both.
If you're using React : this config-oclock-front is made for you !
That will install these packages :
Brunch
- Auto Reload Brunch
- Brunch
- Clean CSS Brunch
- Stylus Brunch
- Uglify JS Brunch
Babel
- Babel-brunch
- Babel-plugin-glamorous-displayname
- Babel-plugin-transform-react-remove-prop-types
- Babel-preset-react
Tests
- Enzyme, + Adapter for React 16
- Enzyme Redux
- JSDom
- Node Localstorage
- React test renderer
- Redux test utils
Or, if you're using Node.js : you should use this config-oclock-back.
That will install these packages :
- Babel-cli
- Nodemon
- Supertest