????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 18.217.150.104 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/appsrv.astacus.se/forge/node_modules/eslint/bin/ |
Upload File : |
#!/usr/bin/env node /** * @fileoverview Main CLI that is run via the eslint command. * @author Nicholas C. Zakas */ /* eslint no-console:off */ "use strict"; //------------------------------------------------------------------------------ // Helpers //------------------------------------------------------------------------------ const useStdIn = (process.argv.indexOf("--stdin") > -1), init = (process.argv.indexOf("--init") > -1), debug = (process.argv.indexOf("--debug") > -1); // must do this initialization *before* other requires in order to work if (debug) { require("debug").enable("eslint:*,-eslint:code-path"); } //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ // now we can safely include the other modules that use debug const cli = require("../lib/cli"), path = require("path"), fs = require("fs"); //------------------------------------------------------------------------------ // Execution //------------------------------------------------------------------------------ process.once("uncaughtException", err => { // lazy load const lodash = require("lodash"); if (typeof err.messageTemplate === "string" && err.messageTemplate.length > 0) { const template = lodash.template(fs.readFileSync(path.resolve(__dirname, `../messages/${err.messageTemplate}.txt`), "utf-8")); const pkg = require("../package.json"); console.error("\nOops! Something went wrong! :("); console.error(`\nESLint: ${pkg.version}.\n${template(err.messageData || {})}`); } else { console.error(err.stack); } process.exitCode = 2; }); if (useStdIn) { /* * Note: `process.stdin.fd` is not used here due to https://github.com/nodejs/node/issues/7439. * Accessing the `process.stdin` property seems to modify the behavior of file descriptor 0, resulting * in an error when stdin is piped in asynchronously. */ const STDIN_FILE_DESCRIPTOR = 0; process.exitCode = cli.execute(process.argv, fs.readFileSync(STDIN_FILE_DESCRIPTOR, "utf8")); } else if (init) { const configInit = require("../lib/config/config-initializer"); configInit.initializeConfig().then(() => { process.exitCode = 0; }).catch(err => { process.exitCode = 1; console.error(err.message); console.error(err.stack); }); } else { process.exitCode = cli.execute(process.argv); }