commit bac754a046f857fada39f1a12adf3c8a7627a1d8
parent 0591378ff341ce138f2770f23d68c5912fdce77b
Author: Mark Banner <standard8@mozilla.com>
Date: Mon, 3 Nov 2025 14:08:15 +0000
Bug 1997547 - Add Temporal to the list of globals for ESLint. r=frontend-codestyle-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D270829
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.mjs b/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.mjs
@@ -359,6 +359,11 @@ export default [
// If this changes, ensure the version in `legacyConfig` is updated, as well
// as the return value of `helpers.getECMAVersion()`.
ecmaVersion: "latest",
+ globals: {
+ // Temporal is currently a stage 3 ECMA proposal, and won't be in the
+ // "latest" ecmaVersion in ESLint until it reaches stage 4.
+ Temporal: "readonly",
+ },
},
name: "mozilla/recommended/main-rules",
rules: {