mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
## target resolve #732 ## contexts - globals definition from https://github.com/sindresorhus/globals/blob/main/globals.json - port https://github.com/eslint/eslintrc/blob/main/conf/environments.js to derive environments
11 lines
242 B
Handlebars
11 lines
242 B
Handlebars
use phf::{phf_map, Map};
|
|
|
|
pub static ENVIRONMENTS: Map<&'static str, Map<&'static str, bool>> = phf_map! {
|
|
{{#each envs }}
|
|
"{{name}}" => phf_map! {
|
|
{{#each vars}}
|
|
"{{name}}" => {{writeable}},
|
|
{{/each}}
|
|
},
|
|
{{/each}}
|
|
};
|