Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const installLinterMarkdownDeps = () => {
idleCallbacks.delete(callbackID);
// Install package dependencies
if (!atom.inSpecMode()) {
require('atom-package-deps').install('linter-markdown');
}
// Load required modules
loadDeps();
};
this.StatusView = require('./views/status-bar-view');
}
({ File: this.File } = require('atom'));
this.workspaceElement = atom.views.getView(atom.workspace);
({ CompositeDisposable, Emitter } = require('atom'));
this.disposables = new CompositeDisposable;
this.contextMenus = new CompositeDisposable;
this.emitter = new Emitter;
atom.particleDev = {
emitter: this.emitter
};
// Install packages we depend on
require('atom-package-deps').install(packageName(), true);
// Create promises for consumed services
activatePromise = Promise.all([
new Promise((resolve, reject) => this.statusBarResolve = resolve),
new Promise((resolve, reject) => this.toolBarResolve = resolve),
new Promise((resolve, reject) => this.profilesResolve = resolve),
new Promise((resolve, reject) => this.consolePanelResolve = resolve)
]).then(() => {
return this.ready();
});
return activatePromise;
},
activate () {
this.subscriptions = new CompositeDisposable()
require('atom-package-deps').install('gometalinter-linter').then(() => {
this.dependenciesInstalled = true
return this.dependenciesInstalled
}).catch((e) => {
console.log(e)
})
},
const installLinterClojureDeps = () => {
this.idleCallbacks.delete(depsCallbackID);
if (!atom.inSpecMode()) {
require('atom-package-deps').install('linter-clojure');
}
loadDeps();
};
depsCallbackID = window.requestIdleCallback(installLinterClojureDeps);
activate () {
require('atom-package-deps').install(packageInfo.name, false)
this.subscriptions = new CompositeDisposable()
},
consumeSignal (registry) {
const installLinterPycodestyleDeps = () => {
this.idleCallbacks.delete(depsCallbackID);
if (!atom.inSpecMode()) {
require('atom-package-deps').install('linter-pycodestyle');
}
loadDeps();
};
depsCallbackID = window.requestIdleCallback(installLinterPycodestyleDeps);
const installLinterPhpDeps = () => {
this.idleCallbacks.delete(depsCallbackID);
if (!atom.inSpecMode()) {
require('atom-package-deps').install('linter-php');
}
loadDeps();
};
depsCallbackID = window.requestIdleCallback(installLinterPhpDeps);
const installLinterLuacheckDeps = () => {
this.idleCallbacks.delete(depCallbackID);
require('atom-package-deps').install('linter-luacheck');
loadDeps();
};
depCallbackID = window.requestIdleCallback(installLinterLuacheckDeps);
.then(() => {
return require('atom-package-deps').install('language-marko');
})
.catch((e) => {
activate() {
require('atom-package-deps').install('linter-elixirc');
this.subscriptions = new CompositeDisposable();
this.subscriptions.add(
atom.config.observe('linter-elixirc.elixircPath', (value) => {
elixircPath = value;
}),
atom.config.observe('linter-elixirc.mixPath', (value) => {
mixPath = value;
}),
atom.config.observe('linter-elixirc.forceElixirc', (value) => {
forceElixirc = value;
}),
atom.config.observe('linter-elixirc.mixEnv', (value) => {
mixEnv = value;
}),
);