Socket
Socket
Sign inDemoInstall

eslint-config-digital-scientists-react

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-digital-scientists-react - npm Package Compare versions

Comparing version 0.9.0 to 0.10.0

17

index.js

@@ -7,2 +7,4 @@ "use strict";

const cosmiconfig = require("cosmiconfig");
const compose = (...fns) => arg => fns.reduce((arg, fn) => fn(arg), arg);

@@ -17,3 +19,2 @@ const tryCatch = (tryer, catcher) => (...args) => {

const cosmiconfig = require("cosmiconfig");
const prettier = cosmiconfig("prettier").searchSync();

@@ -59,3 +60,11 @@ const saga = tryCatch(require.resolve.bind(require), () => null)("redux-saga");

rules: {
// ------------- REDUX-SPECIFIC RULES ----------------
// Enforces that all connected components are defined in a separate file
"react-redux/prefer-separate-component-file": 0,
// Enforces that all connect arguments have recommended names
"react-redux/connect-prefer-named-arguments": 1,
// Enforces consistent naming for boolean props
// ------------- REACT-SPECIFIC RULES ----------------
"react/boolean-prop-naming": 1,

@@ -117,3 +126,3 @@ // Forbid "button" element without an explicit "type" attribute

// Prevent invalid characters from appearing in markup
"react/no-unescaped-entities": 2,
"react/no-unescaped-entities": 0,
// Prevent usage of unknown DOM property (fixable)

@@ -194,2 +203,4 @@ "react/no-unknown-property": 2,

// ------------- JSX-SPECIFIC RULES ----------------
// Enforce boolean attributes notation in JSX (fixable)

@@ -206,3 +217,3 @@ "react/jsx-boolean-value": [1, "always"],

2,
{ when: "never", children: true, allowMultiline: false },
{ when: "never", children: true, allowMultiline: true },
],

@@ -209,0 +220,0 @@ // Enforce or disallow spaces around equal signs in JSX attributes (fixable)

2

package.json
{
"name": "eslint-config-digital-scientists-react",
"version": "0.9.0",
"version": "0.10.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.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