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

no-unused-vars #7

Closed lucasapereira closed 7 years ago

lucasapereira commented 7 years ago

EsLint is giving me no-unused-vars for things that I am using in the JSX

lucasapereira commented 7 years ago

Sorry, my mistake...

lucasapereira commented 7 years ago

Sorry, my mistake...

martinezguillaume commented 7 years ago

Hi, how do you solve the problem ? 😅

lucasapereira commented 7 years ago

Hello, I was using in the package.json { "eslintConfig": { // Choose from universe/native, universe/node, universe/web "extends": "universe" } }

instead of { "eslintConfig": { // Choose from universe/native, universe/node, universe/web "extends": "universe/web" } } or in the .eslintrc.js

module.exports = { extends: 'universe', }; instead of module.exports = { extends: 'universe/web', };

martinezguillaume commented 7 years ago

Nice ! I put

module.exports = {
  extends: 'universe/native',
};

instead of

module.exports = {
  extends: 'universe',
};

to .eslintrc.js and it works, thanks !