GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: support explicit resource management in eslint · nodejs/node@208d6a5

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • eslint.config.mjs
  • tools/eslint
    • package-lock.json
    • package.json
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎eslint.config.mjs‎

Copy file name to clipboardExpand all lines: eslint.config.mjs
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import nodeCore from './tools/eslint/eslint-plugin-node-core.js';
1818
const { globalIgnores } = await importEslintTool('eslint/config');
1919
const { default: js } = await importEslintTool('@eslint/js');
2020
const { default: babelEslintParser } = await importEslintTool('@babel/eslint-parser');
21+
const babelPluginProposalExplicitResourceManagement =
22+
resolveEslintTool('@babel/plugin-proposal-explicit-resource-management');
2123
const babelPluginSyntaxImportAttributes = resolveEslintTool('@babel/plugin-syntax-import-attributes');
2224
const babelPluginSyntaxImportSource = resolveEslintTool('@babel/plugin-syntax-import-source');
2325
const { default: jsdoc } = await importEslintTool('eslint-plugin-jsdoc');
@@ -103,6 +105,7 @@ export default [
103105
parserOptions: {
104106
babelOptions: {
105107
plugins: [
108+
babelPluginProposalExplicitResourceManagement,
106109
babelPluginSyntaxImportAttributes,
107110
babelPluginSyntaxImportSource,
108111
],
Collapse file

‎tools/eslint/package-lock.json‎

Copy file name to clipboardExpand all lines: tools/eslint/package-lock.json
+16Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎tools/eslint/package.json‎

Copy file name to clipboardExpand all lines: tools/eslint/package.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"@babel/eslint-parser": "^7.27.1",
88
"@babel/plugin-syntax-import-attributes": "^7.27.1",
99
"@babel/plugin-syntax-import-source": "^7.27.1",
10+
"@babel/plugin-proposal-explicit-resource-management": "^7.27.1",
1011
"@stylistic/eslint-plugin-js": "^4.2.0",
1112
"eslint": "^9.25.1",
1213
"eslint-formatter-tap": "^8.40.0",

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.