This package provides the following services:
linter-rorybot
Atom linter meets rorybot to enforce Shopify content style.
linter-rorybot is an Atom package that uses rorybot to check for style errors according to the retext-shopify ruleset.
Install linter-rorybot in Atom
Installing the linter takes a few steps in your terminal.
Install the base linter
Most linters depend on a "base" linter package that provides general line highlighting and error message functionality.
- Open Atom.
- Press
cmd
+shift
+p
to open the command palette. - Type
install pack
to bring upSettings View: Install Packages And Themes
. Pressenter
. - Type
base linter
in the search box and press the Install button next to linter (the one described as "A Base Linter with Cow Powers.")
Install the rorybot linter
- Type
linter-rorybot
in the Install Packages and Themes search box and press the Install button next to linter-rorybot. - Quit and reopen Atom.
The next time you launch Atom, the package linter-rorybot should be active, and your Markdown and HTML files should be linted according to Shopify style.
Linting custom file types
By default, linter-rorybot works on the following languages:
source.gfm, text.html.basic, text.html.ruby, text.plain
You can add custom languages to this list if you normally work with other kinds of files, for example, adding source.ruby
will enable the style guide linter for Ruby (.rb
) files.
Note that adding a custom language overwrites the default list, so unless you add the default languages in your custom list, the linter will only run on the custom languages you've specified.
You may have to restart Atom for changes to your language list to take effect.
Contributing
Raise issues for the Atom plugin in this repository. Raise issues with rorybot in its repository. The styleguide ruleset is in the retext-shopify repository.