Scalefast editor tools
Tools that help developing code in Scalefast and are easy can be integrated in Sublime, VS Code, Atom and Vim in Windows and Linux.
In this first versions it only includes the eslint linter.
npx install-peerdeps editor-tools-scalefast --global #global installation (requires privileges: sudo or administrator terminal)npx install-peerdeps editor-tools-scalefast # local installation
We use install-peerdeps, this way eslint and its plugins are installed like normal packages instead of dependencies of our package, some IDEs extensions depend on eslint being installed this way.
It also simplifies having multiple packages and configurations globally installed.
We recommend installing this package globally to make it easier for IDEs extensions to find eslint but it's possible to install it locally and point the extension to the local eslint version avoiding potential conflicts.
If you are interested in a local installation it may be more helpful to add the peer dependencies of this package to your own project package.json, many extensions and tools support per project installations out of the box.
A local installation is also necessary to automatically run these tools before committing or pushing code to ensure the environment is reproducible and identical for all developers.
Test editor configuration
Install the ESLint (dbaeumer.vscode-eslint) and stylelint (shinnn.stylelint) extensions.
linter-eslint package. Not tested with stylelint.
Should use syntastic but not tested yet
To use this package in a project we need to create a eslint configuration file in the project path or point our IDE extension to the configuration file.
We include a sample .eslintrc configuration file in root of this package. Our configuration extends eslint-config-scalefast and will inherit all the rules defined in that package. Specific .eslintrc files per project are desirable so certain rules can be adapted to each project.