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

eslint-config-airbnb

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-airbnb - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

12

index.js

@@ -1,1 +0,11 @@

module.exports = require('airbnb-style/linters/.eslintrc');
var resolve = require('resolve');
var stripComments = require('strip-json-comments');
var fs = require('fs');
// you could do this all at once if you wanted to look cool
var filename = resolve.sync('airbnb-style/linters/.eslintrc');
var data = fs.readFileSync(filename, {encoding: 'utf-8'});
var dataWithoutComments = stripComments(data);
var parsed = JSON.parse(dataWithoutComments);
module.exports = parsed;

6

package.json
{
"name": "eslint-config-airbnb",
"version": "0.0.1",
"version": "0.0.2",
"description": "Airbnb's ESLint config, following our styleguide",

@@ -30,4 +30,6 @@ "main": "index.js",

"eslint": "0.21.2",
"eslint-plugin-react": "2.3.0"
"eslint-plugin-react": "2.3.0",
"resolve": "1.1.6",
"strip-json-comments": "1.0.2"
}
}
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