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'
|
isBase ? baseEsLintConfigFile : '.eslintrc.json'
|
||||||
);
|
);
|
||||||
updateJson(tree, fileName, (json) => {
|
updateJson(tree, fileName, (json) => {
|
||||||
json.overrides ?? [];
|
json.overrides ??= [];
|
||||||
if (options.insertAtTheEnd) {
|
if (options.insertAtTheEnd) {
|
||||||
json.overrides.push(override);
|
json.overrides.push(override);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user