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

eslint-config-xo

Package Overview
Dependencies
Maintainers
1
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.43.1 to 0.44.0

73

index.js

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

'no-nonoctal-decimal-escape': 'error',
'no-object-constructor': 'error',
'no-new': 'error',

@@ -225,2 +226,15 @@ 'no-octal-escape': 'error',

'event',
// TODO: Enable this in 2025.
// {
// name: 'Buffer',
// message: 'Use Uint8Array instead. See: https://sindresorhus.com/blog/goodbye-nodejs-buffer',
// },
{
name: 'atob',
message: 'This API is deprecated. Use https://github.com/sindresorhus/uint8array-extras instead.',
},
{
name: 'btoa',
message: 'This API is deprecated. Use https://github.com/sindresorhus/uint8array-extras instead.',
},
],

@@ -239,2 +253,3 @@ 'no-shadow-restricted-names': 'error',

vars: 'all',
varsIgnorePattern: /^_/.source,
args: 'after-used',

@@ -257,2 +272,11 @@ ignoreRestSiblings: true,

'colors',
// TODO: Enable this in 2025.
// {
// name: 'buffer',
// message: 'Use Uint8Array instead. See: https://sindresorhus.com/blog/goodbye-nodejs-buffer',
// },
// {
// name: 'node:buffer',
// message: 'Use Uint8Array instead. See: https://sindresorhus.com/blog/goodbye-nodejs-buffer',
// },
],

@@ -364,12 +388,9 @@ 'array-bracket-newline': [

],
// TODO: Enable this again when targeting Node.js 16.
// 'logical-assignment-operators': [
// 'error',
// 'always',
// {
// enforceForIfStatements: true,
// },
// ],
'logical-assignment-operators': [
'error',
'always',
{
enforceForIfStatements: true,
},
],
'max-depth': 'warn',

@@ -408,3 +429,2 @@ 'max-nested-callbacks': [

'no-negated-condition': 'error',
'no-new-object': 'error',
'no-whitespace-before-property': 'error',

@@ -417,4 +437,26 @@ 'no-trailing-spaces': 'error',

],
// Disabled because of https://github.com/xojs/eslint-config-xo/issues/27
// 'object-property-newline': 'error',
'object-curly-newline': [
'error',
{
ObjectExpression: {
multiline: true,
minProperties: 4,
consistent: true,
},
ObjectPattern: {
multiline: true,
consistent: true,
},
ImportDeclaration: {
multiline: true,
minProperties: 4,
consistent: true,
},
ExportDeclaration: {
multiline: true,
minProperties: 4,
consistent: true,
},
},
],
'one-var': [

@@ -610,6 +652,3 @@ 'error',

'prefer-numeric-literals': 'error',
// TODO: Enable when targeting Node.js 16.
// 'prefer-object-has-own': 'error',
'prefer-object-has-own': 'error',
'prefer-rest-params': 'error',

@@ -616,0 +655,0 @@ 'prefer-spread': 'error',

{
"name": "eslint-config-xo",
"version": "0.43.1",
"version": "0.44.0",
"description": "ESLint shareable config for XO",

@@ -13,4 +13,5 @@ "license": "MIT",

},
"sideEffects": false,
"engines": {
"node": ">=12"
"node": ">=18"
},

@@ -57,8 +58,8 @@ "scripts": {

"ava": "^2.4.0",
"eslint": "^8.27.0",
"eslint": "^8.56.0",
"is-plain-obj": "^3.0.0"
},
"peerDependencies": {
"eslint": ">=8.27.0"
"eslint": ">=8.56.0"
}
}

@@ -13,5 +13,5 @@ # eslint-config-xo

```sh
npm install --save-dev eslint-config-xo
```
$ npm install --save-dev eslint-config-xo
```

@@ -18,0 +18,0 @@ ## Usage

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