Giter Club home page Giter Club logo

flymake-stylelint's Introduction

flymake-stylelint

Flymake backend for CSS and friends using stylelint

Installation

  1. Make sure stylelint is installed and present on your emacs exec-path. For Linux systems exec-path usually equals your $PATH environment variable; for other systems, you're on your own.
  2. Install: download and place inside ~/.emacs.d/lisp. then edit ~/.emacs or equivalent:
(add-to-list 'load-path "~/.emacs.d/lisp")
(require "flymake-stylelint.el")
  1. Enable:
(add-hook 'scss-mode-hook ; or whatever the mode-hook is for your mode of choice
  (lambda ()
    (flymake-stylelint-enable)))

Customization

useful variables are members of the flymake-stylelint group and can be viewed and modified with the command M-x customize-group [RET] flymake-stylelint [RET].

(defcustom flymake-stylelint-executable-name "stylelint"
  "Name of executable to run when checker is called.  Must be present in variable `exec-path'."
  :type 'string
  :group 'flymake-stylelint)

(defcustom flymake-stylelint-executable-args nil
  "Extra arguments to pass to stylelint."
  :type 'string
  :group 'flymake-stylelint)

(defcustom flymake-stylelint-show-rule-name t
  "Set to t to append rule name to end of warning or error message, nil otherwise."
  :type 'boolean
  :group 'flymake-stylelint)

(defcustom flymake-stylelint-defer-binary-check nil
  "Set to t to bypass the initial check which ensures stylelint is present.

Useful when the value of variable `exec-path' is set dynamically and the location of stylelint might not be known ahead of time."
  :type 'boolean
  :group 'flymake-stylelint)

See Also

flymake-eslint

License

MIT

flymake-stylelint's People

Contributors

orzechowskid avatar ybiquitous avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flymake-stylelint's Issues

[Question] Register flymake-stylelint to MELPA?

Hi @orzechowskid, ๐Ÿ‘‹๐Ÿผ

This question is just out of curious, but do you have any reason not to register flymake-stylelint to MELPA like your flymake-eslint?

Although I respect your decision, I think this package is worth being provided on MELPA! ๐Ÿ˜„ ๐Ÿ‘๐Ÿผ

Thanks for creating the package. Please feel free to close this issue.

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.