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

eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

.travis.yml

9

dist/index.js

@@ -8,2 +8,3 @@ 'use strict';

exports.default = function (opts) {
var generate = opts.generate;
var react = opts.react;

@@ -17,2 +18,6 @@

if (generate) {
(0, _generateEslintrc2.default)(opts);
}
return {

@@ -41,2 +46,6 @@ rules: rules,

var _generateEslintrc = require('./generate-eslintrc');
var _generateEslintrc2 = _interopRequireDefault(_generateEslintrc);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -43,0 +52,0 @@

3

gulpfile.babel.js

@@ -21,3 +21,4 @@ import gulp from 'gulp';

isDev: isWatch,
lintEnv: 'build'
lintEnv: 'build',
generate: true
});

@@ -24,0 +25,0 @@

@@ -5,2 +5,3 @@ import path from 'path';

import reactRules from './react-rules';
import generateEslint from './generate-eslintrc';

@@ -15,3 +16,3 @@ /**

export default function(opts) {
const {react} = opts;
const {generate, react} = opts;
const rules = baseRules(opts);

@@ -23,2 +24,6 @@

if (generate) {
generateEslint(opts);
}
return {

@@ -25,0 +30,0 @@ rules,

{
"name": "eslint-config",
"version": "0.2.1",
"version": "0.3.0",
"description": "Linting Config",
"main": "dist/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prepublish": "gulp release"
"test": "echo \"Error: no test specified\" && exit 1"
},

@@ -21,3 +20,5 @@ "repository": {

"dependencies": {
"app-root-path": "^1.0.0",
"eslint": "^2.1.0",
"gulp-util": "^3.0.7",
"object-assign": "^4.0.1"

@@ -45,5 +46,5 @@ },

"gulp-babel": "^6.1.2",
"gulp-eslint": "^2.0.0-rc-3",
"gulp-eslint": "^2.0.0",
"gulp-rename": "^1.2.2"
}
}

@@ -71,1 +71,7 @@ # eslint-config

Add rules for React/JSX
#### options.generate
Type: `Boolean`
Generate a `.eslintrc` in your project root

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