-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
import { createSelector } from '@ngrx/store';
export const selectShoppingCartItems = createSelector(
(state) => state.shoppingCart,
(shoppingCart) => shoppingCart.items
);
export const selectTotalItems = createSelector{
selectShoppingCartItems,
(items) => items.length
};
This is converted to:
import { createSelector } from '@ngrx/store';
export const selectShoppingCartItems = createSelector(
(state) => state.shoppingCart,
(shoppingCart) => shoppingCart.items
);
export const selectTotalItems = createSelector{
selectShoppingCartItems,
(items) => items.length
};
And here is the solution:
{
$languages: "js",
$name: "=",
$excludeIf: [HTML_TAG_RULES],
$startPatterns: [/=/],
$endPatterns: [/[,;\)\]}]/, NEW_LINE_REGEX]
},
To:
{
$languages: "js",
$name: "=",
$excludeIf: [HTML_TAG_RULES],
$startPatterns: [/=(?!>)/],
$endPatterns: [/[,;\)\]}]/, NEW_LINE_REGEX]
},
Metadata
Metadata
Assignees
Labels
No labels