We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
i have to try https://medium.com/how-to-react/config-eslint-and-prettier-in-visual-studio-code-for-react-js-development-97bb2236b31a thanks , i have to try ,but i got a lot of error ,I don't know how to solve it
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: