ESLint and SASS Lint should be used when developing Origami components. It’s useful to have linters run in the background and highlight errors as you’re typing.
If you already have Origami Build Tools (OBT) with ESLint and SASS Lint configured, skip to the Installing background linter plugins section.
You can have an
.eslintrc configuration file per folder. It is recommended to use the Origami global configuration when developing Origami components. We recommend installing the configuration file into your home directory (User directory) to avoid installing it into each individual project folder.
curl -o ~/.eslintrc https://raw.githubusercontent.com/Financial-Times/origami-build-tools/master/config/.eslintrc
curl -o ~/.sass-lint.yml https://raw.githubusercontent.com/Financial-Times/origami-build-tools/master/config/scss-lint.yml