When using '#' to declare a private member in a javascript class, eslint throws an error Parsing error: Unexpected character '#'.
For eg.
class Test{
#priavteMember; //Parsing error: Unexpected character '#'
}
eslint configuration: .eslintrc.json
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"airbnb-base"
],
"rules": {
"no-use-before-define": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-nested-ternary": "off",
"lines-between-class-members": "off"
},
"globals": {
"root": "readonly",
"app": "readonly",
"db": "readonly"
}
}