johnie / eslint-config-airbnb-flow

DEPRECATED: No longer maintained
MIT License
12 stars 7 forks source link

Error: Cannot find module './eslintrc.json' #4

Closed andrewn closed 8 years ago

andrewn commented 8 years ago

Steps to reproduce:

  1. npm install eslint-config-airbnb-flow --save-dev
  2. Add { "extends" : ["airbnb", "airbnb-flow"] } to .eslintrc
  3. Run eslint somejavascript.js

Stack trace:

$ eslint somejavascript.js 
Cannot read config file: /Users/andrew/Projects/embedded-react-native/node_modules/eslint-config-airbnb-flow/index.js
Error: Cannot find module './eslintrc.json'
Referenced from: /Users/andrew/Projects/embedded-react-native/.eslintrc
Error: Cannot read config file: /Users/andrew/Projects/embedded-react-native/node_modules/eslint-config-airbnb-flow/index.js
Error: Cannot find module './eslintrc.json'
Referenced from: /Users/andrew/Projects/embedded-react-native/.eslintrc
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/andrew/Projects/embedded-react-native/node_modules/eslint-config-airbnb-flow/index.js:1:98)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)

I can confirm that eslintrc.json is not in the installed NPM package in node_modules.

johnie commented 8 years ago

@andrewn You're absolutely right. Thank you for noticing. This is now fixed! Please update your package to 1.0.2

andrewn commented 8 years ago

Works great, thanks