Skip to content

Commit 308b444

Browse files
build(deps-dev): bump the npm-deps group with 4 updates (#5809)
* build(deps-dev): bump the npm-deps group with 4 updates Bumps the npm-deps group with 4 updates: [eslint](https://github.com/eslint/eslint), [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc), [puppeteer](https://github.com/puppeteer/puppeteer) and [undici-types](https://github.com/nodejs/undici). Updates `eslint` from 9.8.0 to 9.9.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v9.8.0...v9.9.0) Updates `eslint-plugin-jsdoc` from 48.11.0 to 50.0.1 - [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases) - [Changelog](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/.releaserc) - [Commits](gajus/eslint-plugin-jsdoc@v48.11.0...v50.0.1) Updates `puppeteer` from 22.15.0 to 23.0.2 - [Release notes](https://github.com/puppeteer/puppeteer/releases) - [Changelog](https://github.com/puppeteer/puppeteer/blob/main/release-please-config.json) - [Commits](puppeteer/puppeteer@puppeteer-v22.15.0...puppeteer-v23.0.2) Updates `undici-types` from 6.19.5 to 6.19.6 - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](nodejs/undici@v6.19.5...v6.19.6) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-deps - dependency-name: eslint-plugin-jsdoc dependency-type: direct:development update-type: version-update:semver-major dependency-group: npm-deps - dependency-name: puppeteer dependency-type: direct:development update-type: version-update:semver-major dependency-group: npm-deps - dependency-name: undici-types dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-deps ... Signed-off-by: dependabot[bot] <[email protected]> * fix * fix --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Roma Sosnovsky <[email protected]>
1 parent 9f635de commit 308b444

File tree

6 files changed

+282
-294
lines changed

6 files changed

+282
-294
lines changed

eslint-local-rules.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ module.exports = {
4040
if (propertyName === 'forEach' || propertyName === 'each') {
4141
context.report({ node, message: DO_NOT_USE_EACH });
4242
} else if (propertyName === 'map') {
43-
const ancestors = context.getAncestors();
43+
const sourceCode = context.sourceCode ?? context.getSourceCode();
44+
const ancestors = sourceCode.getAncestors ? sourceCode.getAncestors(node) : context.getAncestors();
4445
const parent = ancestors[ancestors.length - 1];
4546
if (parent && parent.type === 'ExpressionStatement') {
4647
context.report({ node, message: DO_NOT_USE_MAP_EXPR_STMT });

eslint.config.mjs

+10-9
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ const commonConfig = {
9292
'@typescript-eslint/no-unused-vars': ['error'],
9393
'@typescript-eslint/no-unused-expressions': 'error',
9494
'@typescript-eslint/no-use-before-define': 'off',
95-
'@typescript-eslint/no-var-requires': 'error',
9695
'@typescript-eslint/prefer-for-of': 'error',
9796
'@typescript-eslint/prefer-function-type': 'error',
9897
'@typescript-eslint/prefer-namespace-keyword': 'error',
@@ -151,20 +150,22 @@ const commonConfig = {
151150
radix: 'off',
152151
'require-atomic-updates': 0,
153152
'sort-imports': 'off',
154-
'spaced-comment': [
155-
'error',
156-
'always',
157-
{
158-
markers: ['/'],
159-
},
160-
],
161153
'local-rules/standard-loops': 'error',
162154
},
163155
};
164156

165157
export default [
166158
{
167-
ignores: ['extension/types/**', 'extension/js/common/core/types/**', 'test/source/core/types/**', 'build/**', 'extension/lib/**', 'eslint.config.js'],
159+
ignores: [
160+
'build/**',
161+
'conf/**',
162+
'eslint.config.mjs',
163+
'eslint-local-rules.js',
164+
'extension/lib/**',
165+
'extension/types/**',
166+
'extension/js/common/core/types/**',
167+
'test/source/core/types/**',
168+
],
168169
},
169170
pluginJs.configs.recommended,
170171
...tseslint.configs.strictTypeChecked,

0 commit comments

Comments
 (0)