eslint / js

Monorepo for the JS language tools.
BSD 2-Clause "Simplified" License
2.29k stars 196 forks source link

feat: Support ES2024 and regexp v flag #575

Closed ota-meshi closed 1 year ago

ota-meshi commented 1 year ago

This PR enables ES2024 and changes ES2024 to the latest supported version. It also adds support for the regexp v flag.

Acorn has been merged with changes that add support for the regexp v flag. (But not yet released.) https://github.com/acornjs/acorn/pull/1219#issuecomment-1560695559 https://github.com/acornjs/acorn/commit/1f8c7f1404add9548408ae5b8816461526716f96 https://github.com/acornjs/acorn/commit/fb4c5820138c21f93edd801985be5061db21a672

See also: https://github.com/tc39/proposal-regexp-v-flag https://github.com/tc39/ecma262/pull/2418

mdjermanovic commented 1 year ago

LGTM, thanks! Leaving open in case anyone else wants to review it before merging.

Didn't see the other approval. Merging now

matz3 commented 1 year ago

So this means ES2023 is final, right?

mdjermanovic commented 1 year ago

So this means ES2023 is final, right?

Yes, here's the specification: https://tc39.es/ecma262/2023/

Hashbang Grammar was the only syntax addition in ES2023 (to check, see https://github.com/tc39/proposals/blob/main/finished-proposals.md, last column is the spec year) and espree supports it.