GithubHelp home page GithubHelp logo

isabella232 / linter-rorybot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shopify/linter-rorybot

0.0 0.0 0.0 274 KB

Atom linter plugin using rory to catch Shopify style guide violations.

License: Other

JavaScript 100.00%

linter-rorybot's Introduction

linter-rorybot Atom package

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.

  1. Open Atom.
  2. Press cmd + shift + p to open the command palette.
  3. Type install pack to bring up Settings View: Install Packages And Themes. Press enter.
  4. 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

  1. Type linter-rorybot in the Install Packages and Themes search box and press the Install button next to linter-rorybot.
  2. 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.

linter-rorybot's People

Contributors

adamhollett avatar blakeembrey avatar gregdodd avatar jeremyhansonfinger avatar rorytanner avatar steelbrain avatar wooorm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.