Closed wesdse001 closed 2 years ago
@wesdse001 Add following in .babelrc
{ "presets": ["@babel/env"], "plugins": ["@babel/plugin-proposal-class-properties"] }
And add the following in eslintConfig
"plugins": ["@babel"]
@wesdse001 Add following in .babelrc
{ "presets": ["@babel/env"], "plugins": ["@babel/plugin-proposal-class-properties"] }
And add the following in eslintConfig"plugins": ["@babel"]
It seems to me that .babelrc
and .eslintrc
is not generated with npm init preact
. Is there anyway we can do better by adding the configuration files with these content by default?
Hi Preact team! I'm testing out WMR, which is amazing BTW! Here is my
package.json
:After I installed
eslint-config-preact
, I got the following error:I double checked my
package-lock.json
and made sure@babel/plugin-syntax-class-properties
is installed:I also made sure the
node_modules/@babel/plugin-syntax-class-properties
directory exists in my computer.This should mean the package is there right? Or am i just dumb haha.