Open
Description
Failed to compile.
Cannot read config file: /workspace/react-crm/.eslintrc.js
Error: Unexpected token ':'
yarn add eslint-config-standard
yarn add eslint-plugin-promise
yarn add eslint-plugin-n
yarn add eslint
yarn add eslint-friendly-formatter
yarn add eslint-loader
yarn add eslint-plugin-html
yarn add eslint-plugin-nodejs
Here is the full code for .eslintrc.json file.
{
"env": {
"browser": true,
"es2021": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"react/react-in-jsx-scope": "off"
}
}
yarn run eslint --init
yarn start
Metadata
Metadata
Assignees
Labels
No labels