Skip to content

Failed to compile. Cannot read config file: /workspace/react-crm/.eslintrc.js Error: Unexpected token ':' #17

@tyintech

Description

@tyintech

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions