New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-xo-react

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-xo-react - npm Package Compare versions

Comparing version 0.14.0 to 0.15.0

18

index.js

@@ -13,4 +13,7 @@ 'use strict';

'react/boolean-prop-naming': 'error',
'react/button-has-type': 'error',
'react/default-props-match-prop-types': 'error',
'react/destructuring-assignment': ['error', 'always'],
'react/forbid-component-props': 'error',
'react/no-access-state-in-setstate': 'error',
'react/no-array-index-key': 'error',

@@ -36,3 +39,5 @@ 'react/no-children-prop': 'error',

'react/react-in-jsx-scope': 'error',
'react/require-default-props': 'error',
'react/require-default-props': ['error', {
forbidDefaultForRequired: true
}],
'react/self-closing-comp': 'error',

@@ -62,2 +67,3 @@ 'react/style-prop-object': 'error',

'react/jsx-no-undef': 'error',
'react/jsx-one-expression-per-line': 'error',
'react/jsx-curly-brace-presence': ['error', 'never'],

@@ -78,4 +84,12 @@ 'react/jsx-pascal-case': 'error',

'react/jsx-uses-vars': 'error',
'react/jsx-wrap-multilines': 'error'
'react/jsx-wrap-multilines': ['error', {
declaration: 'parens-new-line',
assignment: 'parens-new-line',
return: 'parens-new-line',
arrow: 'parens-new-line',
condition: 'ignore',
logical: 'ignore',
prop: 'ignore'
}]
}
};

6

package.json
{
"name": "eslint-config-xo-react",
"version": "0.14.0",
"version": "0.15.0",
"description": "ESLint shareable config for React to be used with eslint-config-xo",

@@ -56,3 +56,3 @@ "license": "MIT",

"eslint": "^4.10.0",
"eslint-plugin-react": "^7.4.0",
"eslint-plugin-react": "^7.5.1",
"is-plain-obj": "^1.0.0",

@@ -63,4 +63,4 @@ "temp-write": "^3.1.0"

"eslint": ">=4",
"eslint-plugin-react": ">=7.4.0"
"eslint-plugin-react": ">=7.5.1"
}
}
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