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: add support for import assertions in linter · nodejs/node@abf3b84

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .eslintrc.js
  • test/es-module
    • test-esm-import-assertion-1.mjs
  • tools
    • node_modules/@babel
      • core/node_modules
        • browserslist
          • package.json
        • caniuse-lite
          • data/features
            • sharedarraybuffer.js
          • package.json
        • electron-to-chromium
          • full-chromium-versions.js
          • full-versions.js
          • package.json
        • node-releases
          • README.md
          • data
            • processed
              • envs.json
            • raw
              • iojs.json
              • nodejs.json
            • release-schedule
              • release-schedule.json
          • package.json
        • picocolors
          • README.md
          • package.json
          • picocolors.js
      • plugin-syntax-import-assertions
        • LICENSE
        • README.md
        • lib
          • index.js
        • node_modules/@babel/helper-plugin-utils
          • LICENSE
          • README.md
          • lib
            • index.js
          • package.json
        • package.json
        • src
          • index.js
    • update-babel-eslint.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.eslintrc.js‎

Copy file name to clipboardExpand all lines: .eslintrc.js
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const hacks = [
1717
'eslint-plugin-node-core',
1818
'eslint-plugin-markdown',
1919
'@babel/eslint-parser',
20+
'@babel/plugin-syntax-import-assertions',
2021
];
2122
Module._findPath = (request, paths, isMain) => {
2223
const r = ModuleFindPath(request, paths, isMain);
@@ -36,6 +37,11 @@ module.exports = {
3637
plugins: ['markdown', 'node-core'],
3738
parser: '@babel/eslint-parser',
3839
parserOptions: {
40+
babelOptions: {
41+
plugins: [
42+
Module._findPath('@babel/plugin-syntax-import-assertions'),
43+
],
44+
},
3945
requireConfigFile: false,
4046
sourceType: 'script',
4147
},
Collapse file

‎test/es-module/test-esm-import-assertion-1.mjs‎

Copy file name to clipboard
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Flags: --experimental-json-modules --harmony-import-assertions
2+
import '../common/index.mjs';
3+
import { strictEqual } from 'assert';
4+
5+
import secret from '../fixtures/experimental.json' assert { type: 'json' };
6+
7+
strictEqual(secret.ofLife, 42);
Collapse file

‎tools/node_modules/@babel/core/node_modules/browserslist/package.json‎

Copy file name to clipboardExpand all lines: tools/node_modules/@babel/core/node_modules/browserslist/package.json
+5-5Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎tools/node_modules/@babel/core/node_modules/caniuse-lite/data/features/sharedarraybuffer.js‎

Copy file name to clipboardExpand all lines: tools/node_modules/@babel/core/node_modules/caniuse-lite/data/features/sharedarraybuffer.js
+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎tools/node_modules/@babel/core/node_modules/caniuse-lite/package.json‎

Copy file name to clipboardExpand all lines: tools/node_modules/@babel/core/node_modules/caniuse-lite/package.json
+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎tools/node_modules/@babel/core/node_modules/electron-to-chromium/full-chromium-versions.js‎

Copy file name to clipboardExpand all lines: tools/node_modules/@babel/core/node_modules/electron-to-chromium/full-chromium-versions.js
+9-3Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎tools/node_modules/@babel/core/node_modules/electron-to-chromium/full-versions.js‎

Copy file name to clipboardExpand all lines: tools/node_modules/@babel/core/node_modules/electron-to-chromium/full-versions.js
+7-1Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎tools/node_modules/@babel/core/node_modules/electron-to-chromium/package.json‎

Copy file name to clipboardExpand all lines: tools/node_modules/@babel/core/node_modules/electron-to-chromium/package.json
+2-2Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎tools/node_modules/@babel/core/node_modules/node-releases/README.md‎

Copy file name to clipboardExpand all lines: tools/node_modules/@babel/core/node_modules/node-releases/README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
0 (0)
You are visitor 01402520 — 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.