Skip to content

Commit 1f1b84b

Browse files
author
Alan Wang
authored
chore: fix eslint warning in example (#1922)
1 parent 1dc2d1f commit 1f1b84b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/shopping-cart/api/shop.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* Mocking client-server processing
33
*/
44
const _products = [
5-
{"id": 1, "title": "iPad 4 Mini", "price": 500.01, "inventory": 2},
6-
{"id": 2, "title": "H&M T-Shirt White", "price": 10.99, "inventory": 10},
7-
{"id": 3, "title": "Charli XCX - Sucker CD", "price": 19.99, "inventory": 5}
5+
{ 'id': 1, 'title': 'iPad 4 Mini', 'price': 500.01, 'inventory': 2 },
6+
{ 'id': 2, 'title': 'H&M T-Shirt White', 'price': 10.99, 'inventory': 10 },
7+
{ 'id': 3, 'title': 'Charli XCX - Sucker CD', 'price': 19.99, 'inventory': 5 }
88
]
99

1010
export default {

examples/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = {
5656
new webpack.DefinePlugin({
5757
__DEV__: JSON.stringify(true),
5858
'process.env': {
59-
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
59+
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
6060
}
6161
})
6262
]

0 commit comments

Comments
 (0)