mirror of
https://github.com/redmine/redmine.git
synced 2025-12-15 21:10:27 +01:00
Adds Stylelint to lint CSS files (#32888).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19732 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -80,3 +80,16 @@ Checking with RuboCop is recommended when you write patches.
|
||||
|
||||
You can run RuboCop with:
|
||||
`bundle exec rubocop [file ...]`
|
||||
|
||||
Running Stylelint, a static code analyzer for CSS files
|
||||
=======================================
|
||||
|
||||
You need to have NodeJS and Yarn installed and available in your PATH:
|
||||
https://nodejs.org/en/download/package-manager/
|
||||
https://legacy.yarnpkg.com/lang/en/docs/install/#mac-stable
|
||||
|
||||
Install Stylelint:
|
||||
`yarn install`
|
||||
|
||||
You can run Stylelint with:
|
||||
`node_modules/.bin/stylelint "public/stylesheets/**/*.css"`
|
||||
|
||||
Reference in New Issue
Block a user