Closed akvaliya closed 4 years ago
It should be able to parse
Parsing error: Unexpected token ..
// webpack.config.js { test: /\.js$/, exclude: /node_modules/, loader: 'eslint-loader', include: path.resolve(__dirname, 'app'), options: { failOnError: true, }, },
Object.entries(data).flatMap(([key,v])=>v.map(x=>({key, ...x})))
... syntax works with array but not like above. What am i missing here?
Hi @akvaliya I couldn't reproduce
Please use eslint-webpack-plugin. eslint-loader will be deprecated.
eslint-webpack-plugin
eslint-loader
Expected Behavior
It should be able to parse
Actual Behavior
Parsing error: Unexpected token ..
Code
How Do We Reproduce?
Object.entries(data).flatMap(([key,v])=>v.map(x=>({key, ...x})))
... syntax works with array but not like above. What am i missing here?