All Projects → lesshint → Lesshint

lesshint / Lesshint

Licence: mit
A tool to aid you in writing clean and consistent Less.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Lesshint

sonar-css-plugin
SonarQube CSS / SCSS / Less Analyzer
Stars: ✭ 46 (-61.34%)
Mutual labels:  less, linter
Vscode Stylelint
A Visual Studio Code extension to lint CSS/SCSS/Less with stylelint
Stars: ✭ 260 (+118.49%)
Mutual labels:  linter, less
Stylelint
A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.
Stars: ✭ 9,350 (+7757.14%)
Mutual labels:  linter, less
Scopelint
scopelint checks for unpinned variables in go programs
Stars: ✭ 110 (-7.56%)
Mutual labels:  linter
Norepeat
The norepeat package contains some magical function, tools
Stars: ✭ 111 (-6.72%)
Mutual labels:  less
Cargo Deadlinks
Cargo subcommand for checking your documentation for broken links
Stars: ✭ 113 (-5.04%)
Mutual labels:  linter
Surelog
SystemVerilog 2017 Pre-processor, Parser, Elaborator, UHDM Compiler. Provides IEEE Design/TB C/C++ VPI and Python AST API.
Stars: ✭ 116 (-2.52%)
Mutual labels:  linter
Prettier
Prettier is an opinionated code formatter.
Stars: ✭ 41,411 (+34699.16%)
Mutual labels:  less
Rollup Plugin Styles
🎨 Universal Rollup plugin for styles: PostCSS, Sass, Less, Stylus and more.
Stars: ✭ 116 (-2.52%)
Mutual labels:  less
Zoe
🌀 Zero-config ESLint toolchain with sensible defaults.
Stars: ✭ 113 (-5.04%)
Mutual labels:  linter
Codeheat.org
Codeheat Coding Contest Website https://codeheat.org
Stars: ✭ 1,577 (+1225.21%)
Mutual labels:  less
Yamllint
A linter for YAML files.
Stars: ✭ 1,750 (+1370.59%)
Mutual labels:  linter
Dockle
Container Image Linter for Security, Helping build the Best-Practice Docker Image, Easy to start
Stars: ✭ 1,713 (+1339.5%)
Mutual labels:  linter
Electron Vue Cloud Music
🚀Electron + Vue 仿网易云音乐windows客户端
Stars: ✭ 1,894 (+1491.6%)
Mutual labels:  less
Antd Live Theme
Customize Ant Design specific colors dynamically on runtime
Stars: ✭ 116 (-2.52%)
Mutual labels:  less
Create Apollo App
Create Apollo App is a command-line tool designed to generate fully-configured starter Apollo GraphQL projects with essential dependencies for developing web, server and mobile applications and zero build configuration.
Stars: ✭ 110 (-7.56%)
Mutual labels:  less
Flint
Fast and configurable filesystem (file and directory names) linter
Stars: ✭ 115 (-3.36%)
Mutual labels:  linter
Abaplint
Standalone linter for ABAP
Stars: ✭ 111 (-6.72%)
Mutual labels:  linter
Vue2 Element
基于vue2 + vue-router2 + element-ui + vuex2 + fetch + webpack2 企业级后台管理系统最佳实践
Stars: ✭ 112 (-5.88%)
Mutual labels:  less
Petal
A modern, light CSS UI framework by Shakr
Stars: ✭ 113 (-5.04%)
Mutual labels:  less

lesshint

npm Build Status Build status Coverage Status

lesshint is a tool to aid you in writing clean and consistent Less.

Installation

Node.js 6 (or later) is required.

Run the following from the command line to install lesshint (add -g to install globally):

npm install lesshint

Configuration

For information on how to configure lesshint and other available options, see the user guide.

Since lesshint is highly customizable we recommend you to also take a look at the available rule options to tailor it to your needs.

CLI usage

Run lesshint from the command-line by passing one or more files/directories to recursively scan. Quote the glob patterns for optimal cross-platform results.

lesshint "src/less/" "lib/style.less"
Available Flags Description
-c/--config Specify the configuration file to use (will be merged with defaults).
-e/--exclude A globby glob pattern or a file to exclude from being linted.
-l/--linters Paths to custom linters to add to the built-in list. See "Linters" below for more information.
-r/--reporter The reporter to use. See "Reporters" below for more information.
-V/--version Show the version.
-x/--max-warnings Number of warnings to allow before exiting with a non-zero code. Omit it to always exit with zero code.

Exit status codes

Depending on the linter results and options supplied, the exit status code returned by the CLI will differ.

Exit status code Description
0 Everything is alright or only linting errors with a severity of warning were found.
1 One or more linting errors with a severity of error were found. Or when --max-warnings flag is set and the number of linting errors with a severity of warning found is greater than the given value.
66 No files to lint were supplied.
70 An unknown error occurred within lesshint, possibly a bug. Please file an issue!
78 Something is wrong with the config file, most likely invalid JSON.

These codes were chosen with regards to the preferable exit codes.

Complementary tools

Linters

In addition to the linters included with lesshint, it's also possible to include custom ones. For example to check something team or project specific.

For more information on using custom linters, see the user guide.

Reporters

Reporters are small modules that can be used to perform actions with the lint results, for example printing something to the terminal or generate custom reports.

For more information on using reporters, see the user guide.

Developer resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].