fix(linter): fix null coallescing in eslint-file (#20409)
This commit is contained in:
parent
0df8293c91
commit
f2895bde38
@ -196,7 +196,7 @@ export function addOverrideToLintConfig(
|
||||
isBase ? baseEsLintConfigFile : '.eslintrc.json'
|
||||
);
|
||||
updateJson(tree, fileName, (json) => {
|
||||
json.overrides ?? [];
|
||||
json.overrides ??= [];
|
||||
if (options.insertAtTheEnd) {
|
||||
json.overrides.push(override);
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user