Created
May 11, 2015 03:26
-
-
Save ponko2/da4f10e956f3c6de6ac2 to your computer and use it in GitHub Desktop.
Atom linter-eslint plugin v0.5.4 + ESLint v0.21.0 でESLint Pluginが読み込まれない問題への応急処置
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- lib/linter-eslint.coffee | |
+++ lib/linter-eslint.coffee | |
@@ -71,6 +71,9 @@ class LinterESLint extends Linter | |
if @localEslint | |
options.plugins = config.plugins | |
engine = new CLIEngine(options) | |
+ config.plugins.forEach (key) -> | |
+ plugin = require(resolve("eslint-plugin-#{key}", {basedir: path.dirname(origPath)})) | |
+ engine.addPlugin(key, plugin) | |
else | |
isPluginRule = new RegExp("^(#{config.plugins.join('|')})/") | |
Object.keys(config.rules).forEach (key) -> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment