highlightjs / highlight.js

JavaScript syntax highlighter with language auto-detection and zero dependencies.
https://highlightjs.org/
BSD 3-Clause "New" or "Revised" License
23.31k stars 3.52k forks source link

Fix linting error with 'import' keyword #3929

Closed allejo closed 7 months ago

allejo commented 7 months ago

The del package became ESM only in v7.0.0 (https://github.com/sindresorhus/del/releases/tag/v7.0.0) and so we used the await import() trick as mentioned in Sindre's ESM help docs. Support for the await import syntax was introduced in ECMAScript 2020, so let's bump the parser setting for eslint so that it knows about the syntax.

Fixes #3915

Checklist

github-actions[bot] commented 7 months ago

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

3 files changed

Total change -6 B

View Changes | file | base | pr | diff | | --- | --- | --- | --- | | es/core.min.js | 8.14 KB | 8.13 KB | -2 B | | es/highlight.min.js | 8.14 KB | 8.13 KB | -2 B | | highlight.min.js | 8.17 KB | 8.17 KB | -2 B |