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

eslint-config-xo

Package Overview
Dependencies
Maintainers
2
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-xo - npm Package Compare versions

Comparing version 0.35.0 to 0.36.0

57

index.js

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

'no-useless-call': 'error',
'no-useless-catch': 'error',
'no-useless-concat': 'error',

@@ -182,2 +183,6 @@ 'no-useless-escape': 'error',

'no-with': 'error',
// Disabled for now as Firefox doesn't support named capture groups and I'm tired of getting issues about the use of named capture groups...
// 'prefer-named-capture-group': 'error'
'prefer-promise-reject-errors': [

@@ -194,3 +199,4 @@ 'error',

// TODO: Enable it in the future when I have time to deal with
// the churn and the rule is stable and has an autofixer
// the churn and the rule is stable and has an autofixer.
// Still doesn't have a fixer as of ESLint 7.24.0.
// 'require-unicode-regexp': 'error',

@@ -237,3 +243,5 @@

'smalloc',
'punycode',
'sys',
'querystring',
'colors'

@@ -376,6 +384,2 @@ ],

'no-new-object': 'error',
'no-restricted-syntax': [
'error',
'WithStatement'
],
'no-whitespace-before-property': 'error',

@@ -419,2 +423,3 @@ 'no-trailing-spaces': 'error',

'prefer-exponentiation-operator': 'error',
'prefer-object-spread': 'error',
'quote-props': [

@@ -535,2 +540,44 @@ 'error',

'no-useless-rename': 'error',
'no-var': 'error',
'object-shorthand': [
'error',
'always'
],
'prefer-arrow-callback': [
'error',
{
allowNamedFunctions: true
}
],
'prefer-const': [
'error',
{
destructuring: 'all'
}
],
'prefer-destructuring': [
'error',
{
// `array` is disabled because it forces destructuring on
// stupid stuff like `foo.bar = process.argv[2];`
// TODO: Open ESLint issue about this
VariableDeclarator: {
array: false,
object: true
},
AssignmentExpression: {
array: false,
// Disabled because object assignment destructuring requires parens wrapping:
// `let foo; ({foo} = object);`
object: false
}
},
{
enforceForRenamedProperties: false
}
],
'prefer-numeric-literals': 'error',
'prefer-rest-params': 'error',
'prefer-spread': 'error',
'require-yield': 'error',

@@ -537,0 +584,0 @@ 'rest-spread-spacing': [

3

package.json
{
"name": "eslint-config-xo",
"version": "0.35.0",
"version": "0.36.0",
"description": "ESLint shareable config for XO",

@@ -21,3 +21,2 @@ "license": "MIT",

"index.js",
"esnext.js",
"browser.js"

@@ -24,0 +23,0 @@ ],

@@ -40,14 +40,6 @@ # eslint-config-xo

This package also exposes [`xo/esnext`](esnext.js) if you want ES2015+ rules:
This package also exposes [`xo/browser`](browser.js) if you're in the browser:
```json
{
"extends": "xo/esnext"
}
```
And [`xo/browser`](browser.js) if you're in the browser:
```json
{
"extends": "xo/browser"

@@ -54,0 +46,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