eslint-config-xo
Advanced tools
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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17867
670