Fix linter config issues. Closes #689
This commit is contained in:
		
							parent
							
								
									6e0d073cbf
								
							
						
					
					
						commit
						ab83ed8f0f
					
				|  | @ -27,7 +27,7 @@ | ||||||
|     if (!linter) { |     if (!linter) { | ||||||
|       return; |       return; | ||||||
|     } |     } | ||||||
|     const storageName = linter === 'styleint' ? 'editorStylelintConfig' : 'editorCSSLintConfig'; |     const storageName = linter === 'stylelint' ? 'editorStylelintConfig' : 'editorCSSLintConfig'; | ||||||
|     const getRules = memoize(linter === 'stylelint' ? |     const getRules = memoize(linter === 'stylelint' ? | ||||||
|       editorWorker.getStylelintRules : editorWorker.getCsslintRules); |       editorWorker.getStylelintRules : editorWorker.getCsslintRules); | ||||||
|     const linterTitle = linter === 'stylelint' ? 'Stylelint' : 'CSSLint'; |     const linterTitle = linter === 'stylelint' ? 'Stylelint' : 'CSSLint'; | ||||||
|  | @ -72,7 +72,7 @@ | ||||||
|       return getRules() |       return getRules() | ||||||
|         .then(rules => { |         .then(rules => { | ||||||
|           if (linter === 'stylelint') { |           if (linter === 'stylelint') { | ||||||
|             return Object.keys(config.rules).filter(k => !rules.hasOwnProperty(k)); |             return Object.keys(config.rules).filter(k => !config.rules.hasOwnProperty(k)); | ||||||
|           } |           } | ||||||
|           const ruleSet = new Set(rules.map(r => r.id)); |           const ruleSet = new Set(rules.map(r => r.id)); | ||||||
|           return Object.keys(config).filter(k => !ruleSet.has(k)); |           return Object.keys(config).filter(k => !ruleSet.has(k)); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user