Closed andrewn closed 8 years ago
Steps to reproduce:
npm install eslint-config-airbnb-flow --save-dev
{ "extends" : ["airbnb", "airbnb-flow"] }
.eslintrc
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.
eslintrc.json
@andrewn You're absolutely right. Thank you for noticing. This is now fixed! Please update your package to 1.0.2
1.0.2
Works great, thanks
Steps to reproduce:
npm install eslint-config-airbnb-flow --save-dev
{ "extends" : ["airbnb", "airbnb-flow"] }
to.eslintrc
eslint somejavascript.js
Stack trace:
I can confirm that
eslintrc.json
is not in the installed NPM package in node_modules.