PolylintCatch errors in your polymer project before even running your code.
Installationpolylint is available via npm. Just run
npm install -g polylint from a terminal and you're ready to go.
Installing the Atom PackagePolylint provides a package for the Atom editor for in-line code linting. To install:
- Install the linter package with
apm install linteror through Atom's package installer interface
- Install the polymer-atom package through
apm install polymer-atomor through Atom's package installer.
Installing the Sublime PluginThere is currently a Sublime plugin that leverages Polylint available at https://github.com/nomego/SublimeLinter-contrib-polylint
UsageIf you want to lint a project in
my-project-dir with two endpoints,
cart.html, you could run:
polylint --root my-project-dir/ --input index.html cart.html
For complete usage instructions, run: