Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint_d

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint_d - npm Package Compare versions

Comparing version 10.0.1 to 10.0.2

lib/eslint-path.js

6

bin/eslint_d.js

@@ -14,3 +14,7 @@ #!/usr/bin/env node

if (cmd === '-h' || cmd === '--help') {
const options = require('../lib/options-cliengine');
const eslint_path = require('../lib/eslint-path');
const eslint = require(eslint_path.resolve(process.cwd()));
const options = eslint.ESLint
? require('../lib/options-eslint')
: require('../lib/options-cliengine');
console.log(options.generateHelp());

@@ -17,0 +21,0 @@ return;

# Changes
## 10.0.2
- 🐛 [`bc46363`](https://github.com/mantoni/eslint_d.js/commit/bc46363454d568f1895a142ed3abc34977d8eab8)
Generate correct help
- ✨ [`058d662`](https://github.com/mantoni/eslint_d.js/commit/058d66288632c1b9a6eb2712651b90fbe41e534e)
Refactor eslint path resolution into own file
- ✨ [`0df364d`](https://github.com/mantoni/eslint_d.js/commit/0df364dc5f32cf4ae1467e21a034b65aaa63f180)
Do not run builds twice on own branch PR
- ✨ [`39ab052`](https://github.com/mantoni/eslint_d.js/commit/39ab0522f94c399a7a7e7fceb5ad565b3469744f)
Run build for PRs
_Released by [Maximilian Antoni](https://github.com/mantoni) on 2021-02-10._
## 10.0.1

@@ -4,0 +17,0 @@

18

lib/linter.js

@@ -8,2 +8,3 @@ /* eslint-disable no-sync */

const resolver = require('./resolver');
const eslint_path = require('./eslint-path');
const options_cliengine = require('./options-cliengine');

@@ -89,9 +90,3 @@ const options_eslint = require('./options-eslint');

function createCache(cwd) {
let eslintPath;
try {
eslintPath = resolver.resolve('eslint', { paths: [cwd] });
} catch (e) {
// module not found
eslintPath = resolver.resolve('eslint');
}
const eslintPath = eslint_path.resolve(cwd);
return eslintCache.set(cwd, {

@@ -298,5 +293,6 @@ eslint: require(eslintPath),

const opts = cache.eslint.ESLint
? options_eslint.parse([0, 0].concat(args))
: options_cliengine.parse([0, 0].concat(args));
const options = cache.eslint.ESLint
? options_eslint
: options_cliengine;
const opts = options.parse([0, 0].concat(args));
cache.chalk.enabled = opts.color;

@@ -311,3 +307,3 @@ if (opts.color === false) {

if (!files.length && (!stdin || typeof text !== 'string')) {
callback(null, `${options_cliengine.generateHelp()}\n`);
callback(null, `${options.generateHelp()}\n`);
return;

@@ -314,0 +310,0 @@ }

{
"name": "eslint_d",
"version": "10.0.1",
"version": "10.0.2",
"description": "Makes eslint the fastest linter on the planet",

@@ -5,0 +5,0 @@ "bin": "bin/eslint_d.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc