@kevinoid/eslint-config
Advanced tools
Comparing version 26.0.0 to 27.0.0
10
node.js
@@ -11,3 +11,3 @@ // ESLint configuration for Node 6 and later. | ||
const { "configs": { "recommended": { "parserOptions": { sourceType } } } } = | ||
requirePeer("eslint-plugin-node"); | ||
requirePeer("eslint-plugin-n"); | ||
@@ -34,3 +34,3 @@ module.exports = { | ||
// field from nearest ancestor package.json to process.cwd(). | ||
"./rules/node" | ||
"./rules/n" | ||
], | ||
@@ -44,3 +44,3 @@ | ||
}, | ||
// It would be preferable to use the version set by eslint-plugin-node | ||
// It would be preferable to use the version set by eslint-plugin-n | ||
// (determined based on package.json#engines/node). Unfortunately, it | ||
@@ -53,4 +53,4 @@ // currently sets ecmaVersion: 2019 unconditionally, which lacks support | ||
"env": { | ||
// Disable es2021 env added by eslint-plugin-unicorn, add es2020 instead. | ||
// TODO [engine:node@>=15]: Enable es2021 (AggregateError, | ||
// Disable es2022 env added by eslint-plugin-unicorn, add es2020 instead. | ||
// TODO [engine:node@>=15]: Enable es2022 (AggregateError, | ||
// FinalizationRegistry, WeakRef) | ||
@@ -57,0 +57,0 @@ "es2020": true, |
{ | ||
"name": "@kevinoid/eslint-config", | ||
"version": "26.0.0", | ||
"version": "27.0.0", | ||
"description": "ESLint shareable config for @kevinoid's style (based on airbnb).", | ||
@@ -61,5 +61,5 @@ "keywords": [ | ||
"eslint-plugin-jsdoc": "^39.0.0", | ||
"eslint-plugin-node": "^11.0.0", | ||
"eslint-plugin-n": "^15.0.0", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"eslint-plugin-unicorn": "^42.0.0" | ||
"eslint-plugin-unicorn": "^43.0.0" | ||
}, | ||
@@ -72,11 +72,11 @@ "devDependencies": { | ||
"eslint-plugin-jsdoc": "^39.0.0", | ||
"eslint-plugin-node": "^11.0.0", | ||
"eslint-plugin-n": "^15.0.0", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"eslint-plugin-unicorn": "^42.0.0", | ||
"eslint-plugin-unicorn": "^43.0.0", | ||
"peer-version-check": "^0.1.0" | ||
}, | ||
"engines": { | ||
"node": "^14.14 || ^16", | ||
"node": "^14.18 || ^16", | ||
"npm": ">=1.3.7" | ||
} | ||
} |
@@ -6,3 +6,3 @@ // ESLint IE 11 no-restricted-globals configuration rules | ||
const assert = require("assert"); | ||
const assert = require("node:assert"); | ||
const airbnbVariables = | ||
@@ -9,0 +9,0 @@ require("eslint-config-airbnb-base/rules/variables"); |
@@ -103,9 +103,2 @@ // ESLint common configuration rules for Unicorn plugin | ||
// don't prefer node: protocol when importing builtin modules | ||
// TODO: enable once eslint-plugin-node and depcheck support it: | ||
// https://github.com/mysticatea/eslint-plugin-node/issues/275 | ||
// https://github.com/depcheck/depcheck/pull/635 | ||
// https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1200 | ||
"unicorn/prefer-node-protocol": "off", | ||
// don't prefer Number static properties over global ones. | ||
@@ -112,0 +105,0 @@ // I don't find these more-verbose and less-compatible versions preferable, |
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
52504
1142