Skip to content

A Code Climate engine for the mighty, modern CSS linter

Notifications You must be signed in to change notification settings

eurailcom/codeclimate-stylelint

 
 

Repository files navigation

Code Climate Stylelint Engine

Maintainability

A Code Climate engine that wraps stylelint.
You can run it on your local environment using the Code Climate CLI, or on the hosted analysis platform.

Stylelint is a tool to help you enforce consistent conventions and avoid errors in your stylesheets.
It can be configured using a configuration file.

Installation

  1. If you haven't already, install the Code Climate CLI.
  2. Run codeclimate engines:enable stylelint. This command both installs the engine and enables it in your .codeclimate.yml file.
  3. Add a stylelint config file.
  4. You're ready to analyze! Browse into your project's folder and run codeclimate analyze.

Configuration Options

  • ignore_warnings: true|false (default false) - skip warnings with styletint quiet flag
  • config: Specify a relative path for the configuration file. (ex: config/.stylelintrc)

Configs

Plugins

This engine has support for the recommended plugins:

If you need something else, please open an issue.

Processors

This engine has support for some of the recommended processors:

Development

If you want to run the code locally, you'll need to install docker and build the image.
Navigate to the project in your terminal and run:

docker build -t codeclimate/codeclimate-stylelint .

Tests

run npm test or ./run-tests.sh after building the image.

If you need something else, please open an issue.

Need help?

For help with stylelint, check out their documentation.

About

A Code Climate engine for the mighty, modern CSS linter

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 71.3%
  • JavaScript 21.6%
  • HTML 3.6%
  • Vue 2.3%
  • Dockerfile 0.5%
  • Shell 0.4%
  • Makefile 0.3%