Skip to content

Instantly share code, notes, and snippets.

@aneudysamparo
Last active December 19, 2020 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aneudysamparo/5eb5006987ef979af162fa80d2180e7d to your computer and use it in GitHub Desktop.
Save aneudysamparo/5eb5006987ef979af162fa80d2180e7d to your computer and use it in GitHub Desktop.
Enable classPrivateMethods in ReactJS
First, Install this
npm i eslint @babel/core @babel/eslint-parser @babel/preset-env -D
Second, Create a .babelrc file
{
"presets": [
["@babel/preset-env",
{
"shippedProposals": true
}]
]
}
Thrid create a .eslintrc file
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment