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

eslint-config-sanity

Package Overview
Dependencies
Maintainers
39
Versions
261
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-sanity - npm Package Compare versions

Comparing version 6.0.0 to 7.0.0

.github/renovate.json

46

package.json
{
"name": "eslint-config-sanity",
"version": "6.0.0",
"version": "7.0.0",
"description": "Shared eslint configs for sanity-io",
"main": "index.js",
"scripts": {
"test": "eslint .",
"release": "standard-version",
"diff": "node ./bin/diff.js && echo '\nnpm update eslint to get latest rules'"
"test": "eslint ."
},

@@ -35,13 +33,30 @@ "engines": {

"peerDependencies": {
"eslint": ">=8.0.0"
"eslint": "^8.51.0",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-react": "^7.33.2"
},
"peerDependenciesMeta": {
"@typescript-eslint/eslint-plugin": {
"optional": true
},
"@typescript-eslint/parser": {
"optional": true
},
"eslint-plugin-import": {
"optional": true
},
"eslint-plugin-react": {
"optional": true
}
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.18.0",
"@typescript-eslint/parser": "^5.18.0",
"eslint": "^8.12.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-react": "^7.29.4",
"lodash.difference": "4.5.0",
"prettier": "^2.6.2",
"standard-version": "^9.3.2"
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"eslint": "^8.51.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-react": "^7.33.2",
"prettier": "^3.0.3",
"prettier-plugin-packagejson": "^2.4.6"
},

@@ -53,8 +68,3 @@ "prettier": {

"singleQuote": true
},
"standard-version": {
"skip": {
"changelog": true
}
}
}

@@ -7,3 +7,3 @@ // Use this for React projects

},
extends: ['./index'],
extends: ['plugin:react/recommended', 'plugin:react/jsx-runtime', './index'],
plugins: ['react'],

@@ -23,3 +23,2 @@ parserOptions: {

'react/button-has-type': 'error',
'react/display-name': ['error', {ignoreTranspilerName: false}],
'react/default-props-match-prop-types': 'error',

@@ -32,6 +31,4 @@ 'react/destructuring-assignment': 'off',

'react/forbid-prop-types': 'warn',
'react/jsx-no-comment-textnodes': 'error',
'react/jsx-sort-props': 'off',
'react/jsx-first-prop-new-line': ['error', 'multiline'],
'react/jsx-no-target-blank': 'error',
'react/jsx-filename-extension': ['error', {extensions: ['.tsx', '.js']}],

@@ -48,8 +45,5 @@ 'react/jsx-boolean-value': 'error',

'react/jsx-indent-props': ['error', 2],
'react/jsx-key': 'error',
'react/jsx-max-props-per-line': ['error', {maximum: 6}],
'react/jsx-no-bind': 'warn',
'react/jsx-no-duplicate-props': 'error',
'react/jsx-no-literals': 'off',
'react/jsx-no-undef': 'error',
'react/jsx-one-expression-per-line': 'off',

@@ -60,4 +54,2 @@ 'react/jsx-pascal-case': 'error',

// "react/jsx-space-before-closing": ["error", "always"],
'react/jsx-uses-react': 'error',
'react/jsx-uses-vars': 'error',
'react/jsx-tag-spacing': [

@@ -74,22 +66,10 @@ 'error',

'react/no-array-index-key': 'warn',
'react/no-children-prop': 'error',
//@@@ deprecated in favor of react/jsx-no-comment-textnodes
// "react/no-comment-textnodes": "error",
'react/no-danger': 'warn',
'react/no-danger-with-children': 'error',
'react/no-deprecated': 'error',
'react/no-did-mount-set-state': 'warn',
'react/no-did-update-set-state': 'error',
'react/no-direct-mutation-state': 'error',
'react/no-find-dom-node': 'warn',
'react/no-is-mounted': 'error',
'react/no-multi-comp': 'off',
'react/no-redundant-should-component-update': 'error',
'react/no-render-return-value': 'error',
'react/no-set-state': 'off',
'react/no-string-refs': 'warn',
'react/no-this-in-sfc': 'error',
'react/no-typos': 'error',
'react/no-unescaped-entities': ['error', {forbid: ['>', '}']}],
'react/no-unknown-property': 'error',
'react/no-unused-prop-types': 'error',

@@ -99,8 +79,5 @@ 'react/no-unused-state': 'error',

'react/prefer-es6-class': 'off',
'react/prop-types': 'error',
'react/react-in-jsx-scope': 'error',
//@@@ deprecated in favor of the eslint-plugin-import extensions rule
// "react/require-extension": "...",
'react/require-optimization': 'off',
'react/require-render-return': 'error',
'react/require-default-props': 'warn',

@@ -113,5 +90,3 @@ 'react/prefer-stateless-function': ['warn', {ignorePureComponents: true}],

'react/void-dom-elements-no-children': 'error',
//@@@ deprecated in favor of react/jsx-wrap-multilines
// "react/wrap-multilines": "error"
},
}

Sorry, the diff of this file is not supported yet

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