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

eslint-config-eslint

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-eslint - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

27

index.js

@@ -14,20 +14,25 @@ /**

var fs = require("fs"),
path = require("path"),
yaml = require("js-yaml");
//------------------------------------------------------------------------------
// Public Interface
// Bootstrapping
//------------------------------------------------------------------------------
module.exports = (function() {
var filePath = path.resolve(__dirname, "./default.yml"),
config;
var filePath = "./default.yml";
try {
config = yaml.safeLoad(fs.readFileSync(filePath, "utf8")) || {};
} catch (e) {
console.error("Error reading YAML file: " + filePath);
e.message = "Cannot read config file: " + filePath + "\nError: " + e.message;
throw e;
}
try {
return yaml.safeLoad(fs.readFileSync(filePath, "utf8")) || {};
} catch (e) {
console.error("Error reading YAML file: " + filePath);
e.message = "Cannot read config file: " + filePath + "\nError: " + e.message;
throw e;
}
}());
//------------------------------------------------------------------------------
// Public Interface
//------------------------------------------------------------------------------
module.exports = config;
{
"name": "eslint-config-eslint",
"version": "1.0.0",
"version": "1.0.1",
"author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",

@@ -5,0 +5,0 @@ "description": "Default ESLint configuration for ESLint projects.",

Sorry, the diff of this file is not supported yet

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