expo / eslint-config-universe

Moved to https://github.com/expo/expo/tree/master/packages/eslint-config-universe
MIT License
110 stars 7 forks source link

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

Open adokce opened 5 years ago

adokce commented 5 years ago

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