Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Add support for sasslintConfig option in package.json #178

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,12 @@ module.exports =
globule = require 'globule'
configExt = '.sass-lint.yml'
filePath = editor.getPath()
packageFile = require(find filePath, 'package.json').sasslintConfig
packageConfig = find filePath, packageFile if packageFile
projectConfig = find filePath, configExt
localConfig = if packageConfig isnt null then packageConfig else projectConfig
globalConfig = if @configFile is '' then null else @configFile
config = if projectConfig isnt null then projectConfig else globalConfig
config = if localConfig isnt null then localConfig else globalConfig

try
linter = @findExecutable()
Expand Down