Socket
Socket
Sign inDemoInstall

eslint-config-standard-jsx

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-standard-jsx - npm Package Compare versions

Comparing version 9.0.0 to 10.0.0

43

eslintrc.json

@@ -14,2 +14,11 @@ {

"settings": {
"react": {
"version": "17"
},
"linkComponents": [
"Link"
]
},
"rules": {

@@ -31,9 +40,14 @@ "jsx-quotes": ["error", "prefer-single"],

"react/jsx-handler-names": "error",
"react/jsx-indent": ["error", 2, { "checkAttributes": true, "indentLogicalExpressions": true }],
"react/jsx-indent": ["error", 2, {
"checkAttributes": false,
"indentLogicalExpressions": true
}],
"react/jsx-indent-props": ["error", 2],
"react/jsx-key": "error",
"react/jsx-key": ["error", {
"checkFragmentShorthand": true
}],
"react/jsx-no-comment-textnodes": "error",
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-target-blank": ["error", { "enforceDynamicLinks": "always" }],
"react/jsx-no-undef": "error",
"react/jsx-no-undef": ["error", { "allowGlobals": true }],
"react/jsx-pascal-case": ["error", { "allowAllCaps": false }],

@@ -49,4 +63,27 @@ "react/jsx-props-no-multi-spaces": "error",

"react/jsx-uses-vars": "error",
"react/jsx-wrap-multilines": ["error", {
"declaration": "parens-new-line",
"assignment": "parens-new-line",
"return": "parens-new-line",
"arrow": "ignore",
"condition": "ignore",
"logical": "ignore",
"prop": "ignore"
}],
"react/no-children-prop": "error",
"react/no-danger-with-children": "error",
"react/no-deprecated": "error",
"react/no-direct-mutation-state": "error",
"react/no-find-dom-node": "error",
"react/no-is-mounted": "error",
"react/no-string-refs": ["error", {
"noTemplateLiterals": true
}],
"react/no-unescaped-entities": ["error", {
"forbid": [">", "}"]
}],
"react/no-render-return-value": "error",
"react/require-render-return": "error",
"react/self-closing-comp": "error"
}
}

8

package.json
{
"name": "eslint-config-standard-jsx",
"description": "JavaScript Standard Style JSX support - ESLint Shareable Config",
"version": "9.0.0",
"version": "10.0.0",
"author": {

@@ -14,3 +14,3 @@ "name": "Feross Aboukhadijeh",

"devDependencies": {
"eslint": "^7.11.0",
"eslint": "^7.12.1",
"eslint-plugin-react": "^7.21.5",

@@ -50,4 +50,4 @@ "tape": "^5.0.1"

"peerDependencies": {
"eslint": ">=7.11.0",
"eslint-plugin-react": ">=7.21.5"
"eslint": "^7.12.1",
"eslint-plugin-react": "^7.21.5"
},

@@ -54,0 +54,0 @@ "repository": {

@@ -48,3 +48,3 @@ # eslint-config-standard-jsx [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]

```bash
npm install --save-dev eslint-config-standard eslint-config-standard-jsx eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node eslint-plugin-react
npm install --save-dev eslint-config-standard eslint-config-standard-jsx eslint-plugin-promise eslint-plugin-import eslint-plugin-node eslint-plugin-react
```

@@ -51,0 +51,0 @@

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