Parsing error: Unexpected token =eslint
Выдает ошибку после data Parsing error: Unexpected token =eslint, в чем проблема? снизу мой файл .eslint.js и после зависимости в package.json
"devDependencies": {
"eslint": "^6.6.0",
"eslint-config-google": "^0.14.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.5",
"gh-pages": "^3.2.3",
"prettier": "2.0.5"
}
class Store
{
data = {}
order = {}
module.exports = {
env: {
browser: true,
es2020: true,
},
extends: ['plugin:react/recommended', 'google'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 11,
sourceType: 'module',
},
plugins: ['react'],
rules: {
'require-jsdoc': 'off',
'linebreak-style': 'off',
'object-curly-spacing': 'off',
'react/prop-types': 'off',
'indent': 'off',
'operator-linebreak': 'off',
},
};