Skip to content

Commit ad45dd1

Browse files
committed
CODE REVIEW
1 parent 2d14ad4 commit ad45dd1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ issue](https://github.com/brigade/overcommit/issues/238) for more details.
546546
* [SlimLint](lib/overcommit/hook/pre_commit/slim_lint.rb)
547547
* [Sqlint](lib/overcommit/hook/pre_commit/sqlint.rb)
548548
* [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)
550550
* [TrailingWhitespace](lib/overcommit/hook/pre_commit/trailing_whitespace.rb)
551551
* [TravisLint](lib/overcommit/hook/pre_commit/travis_lint.rb)
552552
* [TsLint](lib/overcommit/hook/pre_commit/ts_lint.rb)

config/default.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -712,10 +712,10 @@ PreCommit:
712712
include: '**/*.js'
713713

714714
StyleLint:
715-
enabled: true
715+
enabled: false
716716
description: 'Check styles with Stylelint'
717717
require_executable: 'stylelint'
718-
flags: ['-f compact']
718+
flags: ['-f', 'compact']
719719
install_command: 'npm install -g stylelint'
720720
include:
721721
- '**/*.scss'

lib/overcommit/hook/pre_commit/style_lint.rb lib/overcommit/hook/pre_commit/stylelint.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module Overcommit::Hook::PreCommit
22
# Runs `stylelint` against any modified CSS file.
33
#
44
# @see https://github.com/stylelint/stylelint
5-
class StyleLint < Base
5+
class Stylelint < Base
66
# example of output:
77
# index.css: line 4, col 4, error - Expected indentation of 2 spaces (indentation)
88

spec/overcommit/hook/pre_commit/style_lint_spec.rb spec/overcommit/hook/pre_commit/stylelint_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'spec_helper'
22

3-
describe Overcommit::Hook::PreCommit::StyleLint do
3+
describe Overcommit::Hook::PreCommit::Stylelint do
44
let(:config) { Overcommit::ConfigurationLoader.default_configuration }
55
let(:context) { double('context') }
66
subject { described_class.new(config, context) }

0 commit comments

Comments
 (0)