eslint-config-universe icon indicating copy to clipboard operation
eslint-config-universe copied to clipboard

Eslint assumed latest React version but I use universe/node config

Open adokce opened this issue 6 years ago • 0 comments

I have initialized a node project. I saw eslint-config-universe and thought of using it for my node lint config.

I have installed the required dependencies:

"devDependencies": {
    "eslint-config-universe": "^2.0.0",
    "@typescript-eslint/eslint-plugin": "^2.3.1",
    "@typescript-eslint/parser": "^2.3.1",
    "eslint": "^6.4.0",
    "prettier": "^1.18.2",
    "typescript": "^3.6.3"
  }

and I made the following .eslintrc.js file:

module.exports = {
  extends: "universe/node"
};

The following from ESLint message got me confused. Why is it trying to detect react version when I specified universe/node?

image

Possibly remove './shared/react.js' from https://github.com/expo/eslint-config-universe/blob/6cdd359c19ab200a65c27c2de249b9e884fa06c2/node.js#L2

adokce avatar Sep 27 '19 23:09 adokce