react-crm icon indicating copy to clipboard operation
react-crm copied to clipboard

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

Open mbtenergy opened this issue 3 years ago • 1 comments

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

mbtenergy avatar Sep 22 '22 09:09 mbtenergy

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

mbtenergy avatar Sep 22 '22 09:09 mbtenergy