Error message when using ESLINT settings on two different Ides

Asked

Viewed 64 times

1

Hello people for some time I am facing the following problem:

I have a certain ESLINT configuration, however, I work with a team and only I like to use intellij, and with the ESLINT settings they use for VSCODE ends up triggering an error in my project when I use my IDE, follow ESLINT settings and error!

{
    "env": {
        "commonjs": true,
        "es2020": true,
        "node": true,
        "jest": true
    },
    "extends": [
        "standard",
        "prettier",
        "plugin:prettier/recommended",
        "plugin:sonarjs/recommended"
    ],
    "parserOptions": {
        "ecmaVersion": 11
    },
    "rules": {
    }
}




Initialization error (ESLint). Unexpected token {
/home/rbalman/Documentos/projects/ccd/oem-ccd-customer-update/node_modules/eslint/lib/cli-engine/cli-engine.js:421
    } catch { 

  • What is your version of Node.js and Eslint?

  • Ode: v13.12.0 Eslint: 7.4.0

1 answer

0


The solution is simpler, it is necessary to exchange the interpreter version within the intellij IDE as follows

In the Settings/ Preferences dialog box Ctrl + Alt + S, go to Languages and Frameworks | Node.js and NPM.

Then select the latest version of Node

Browser other questions tagged

You are not signed in. Login or sign up in order to post.