Carousel exercise requested by Whitespectre.
Feel free to use the code editor of your choice. It has prettier-eslint
setup; Visual Studio and Atom have a nice plugin to format and enforce eslint on file save, you can configure them in the next section.
Make sure you have prettier-vscode
plugin installed
ext install prettier-vscode
Also following settings in your workspace settings:
{
"editor.formatOnSave": true,
"prettier.eslintIntegration": true
}
Make sure you have prettier-atom
plugin installed
apm install prettier-atom
-Automatically format on save (requires enabling in Packages → Prettier → Toggle Format on Save
)
-Check the ESLint Integration
checkbox
- Backbone
- JQuery
- Webpack
- ES6
- Prettier
- ESLint
Run the code below:
git clone git@github.com:sorioinc/backbone.git
cd backbone/
npm install
To build/bundle the app use npm run build:prod
, if you want to run the development web server, run npm run build
.
The style is driven by ESLint, and it's based upon Airbnb's configuration. Plus, it makes use of Prettier as a formatter. It is enforced with git commit hooks
.