GeezerVison is showing github.com — tools: update ESLint to 9.14.0 · nodejs/node@15028dd
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: eslint.config.mjs +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -289,7 +289,7 @@ export default [ | 289 | 289 | 'error', | 290 | 290 | { blankLine: 'always', prev: 'function', next: 'function' }, | 291 | 291 | ], | 292 | | - '@stylistic/js/quotes': ['error', 'single', { avoidEscape: true }], | | 292 | + '@stylistic/js/quotes': ['error', 'single', { avoidEscape: true, allowTemplateLiterals: true }], | 293 | 293 | '@stylistic/js/quote-props': ['error', 'consistent'], | 294 | 294 | '@stylistic/js/rest-spread-spacing': 'error', | 295 | 295 | '@stylistic/js/semi': 'error', | |
Collapse file Copy file name to clipboardExpand all lines: test/es-module/test-esm-loader-hooks.mjs +10-10Lines changed: 10 additions & 10 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -791,14 +791,14 @@ describe('Loader hooks', { concurrency: !process.env.TEST_PARALLEL }, () => { | 791 | 791 | const hook = ` | 792 | 792 | import { readFile } from 'node:fs/promises'; | 793 | 793 | export ${ | 794 | | - async function load(url, context, nextLoad) { | 795 | | - const resolved = await nextLoad(url, context); | 796 | | - if (context.format === 'commonjs') { | 797 | | - resolved.source = await readFile(new URL(url)); | 798 | | - } | 799 | | - return resolved; | 800 | | - } | 801 | | -}`; | | 794 | + async function load(url, context, nextLoad) { | | 795 | + const resolved = await nextLoad(url, context); | | 796 | + if (context.format === 'commonjs') { | | 797 | + resolved.source = await readFile(new URL(url)); | | 798 | + } | | 799 | + return resolved; | | 800 | + } | | 801 | + }`; | 802 | 802 |
| 803 | 803 | const { code, signal, stdout, stderr } = await spawnPromisified(execPath, [ | 804 | 804 | '--no-warnings', | @@ -807,8 +807,8 @@ describe('Loader hooks', { concurrency: !process.env.TEST_PARALLEL }, () => { | 807 | 807 | `data:text/javascript,${encodeURIComponent(` | 808 | 808 | import{ register } from "node:module"; | 809 | 809 | register(${ | 810 | | - JSON.stringify('data:text/javascript,' + encodeURIComponent(hook)) | 811 | | -}); | | 810 | + JSON.stringify('data:text/javascript,' + encodeURIComponent(hook)) | | 811 | + }); | 812 | 812 | `)}`, | 813 | 813 | fixtures.path('source-map/throw-on-require.js'), | 814 | 814 | ]); | |
Collapse file Copy file name to clipboardExpand all lines: tools/doc/addon-verify.mjs +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -61,9 +61,9 @@ function verifyFiles(files, blockName) { | 61 | 61 | files[name] = `'use strict'; | 62 | 62 | const common = require('../../common'); | 63 | 63 | ${files[name].replace( | 64 | | - "'./build/Release/addon'", | 65 | | - // eslint-disable-next-line no-template-curly-in-string | 66 | | - '`./build/${common.buildType}/addon`')} | | 64 | + "'./build/Release/addon'", | | 65 | + // eslint-disable-next-line no-template-curly-in-string | | 66 | + '`./build/${common.buildType}/addon`')} | 67 | 67 | `; | 68 | 68 | } | 69 | 69 | return { | |
|