File tree 4 files changed +5
-5
lines changed
lib/overcommit/hook/pre_commit
spec/overcommit/hook/pre_commit
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,7 @@ issue](https://github.com/brigade/overcommit/issues/238) for more details.
546
546
* [SlimLint](lib/overcommit/hook/pre_commit/slim_lint.rb)
547
547
* [Sqlint](lib/overcommit/hook/pre_commit/sqlint.rb)
548
548
* [Standard](lib/overcommit/hook/pre_commit/standard.rb)
549
- * [StyleLint](lib/overcommit/hook/pre_commit/style_lint .rb)
549
+ * [StyleLint](lib/overcommit/hook/pre_commit/stylelint .rb)
550
550
* [TrailingWhitespace](lib/overcommit/hook/pre_commit/trailing_whitespace.rb)
551
551
* [TravisLint](lib/overcommit/hook/pre_commit/travis_lint.rb)
552
552
* [TsLint](lib/overcommit/hook/pre_commit/ts_lint.rb)
Original file line number Diff line number Diff line change @@ -712,10 +712,10 @@ PreCommit:
712
712
include : ' **/*.js'
713
713
714
714
StyleLint :
715
- enabled : true
715
+ enabled : false
716
716
description : ' Check styles with Stylelint'
717
717
require_executable : ' stylelint'
718
- flags : ['-f compact']
718
+ flags : ['-f', ' compact']
719
719
install_command : ' npm install -g stylelint'
720
720
include :
721
721
- ' **/*.scss'
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ module Overcommit::Hook::PreCommit
2
2
# Runs `stylelint` against any modified CSS file.
3
3
#
4
4
# @see https://github.com/stylelint/stylelint
5
- class StyleLint < Base
5
+ class Stylelint < Base
6
6
# example of output:
7
7
# index.css: line 4, col 4, error - Expected indentation of 2 spaces (indentation)
8
8
Original file line number Diff line number Diff line change 1
1
require 'spec_helper'
2
2
3
- describe Overcommit ::Hook ::PreCommit ::StyleLint do
3
+ describe Overcommit ::Hook ::PreCommit ::Stylelint do
4
4
let ( :config ) { Overcommit ::ConfigurationLoader . default_configuration }
5
5
let ( :context ) { double ( 'context' ) }
6
6
subject { described_class . new ( config , context ) }
You can’t perform that action at this time.
0 commit comments