iketari / superchat

The Chat project
4 stars 1 forks source link

Не запускается eslint #36

Closed im-saxo closed 6 years ago

im-saxo commented 6 years ago
$ npm run lint -- --fix

> superchat@1.0.0 lint /Users/v.demidov/projects/iketari/superchat
> eslint './**/*.js' "--fix"

Cannot find module 'eslint-config-logux/browser'
Referenced from: /Users/v.demidov/projects/iketari/superchat/tests/node_modules/browserslist/package.json
Error: Cannot find module 'eslint-config-logux/browser'
Referenced from: /Users/v.demidov/projects/iketari/superchat/tests/node_modules/browserslist/package.json
    at ModuleResolver.resolve (/Users/v.demidov/projects/iketari/superchat/node_modules/eslint/lib/util/module-resolver.js:74:19)
    at resolve (/Users/v.demidov/projects/iketari/superchat/node_modules/eslint/lib/config/config-file.js:471:25)
    at load (/Users/v.demidov/projects/iketari/superchat/node_modules/eslint/lib/config/config-file.js:542:26)
    at configExtends.reduceRight (/Users/v.demidov/projects/iketari/superchat/node_modules/eslint/lib/config/config-file.js:421:36)
    at Array.reduceRight (<anonymous>)
    at applyExtends (/Users/v.demidov/projects/iketari/superchat/node_modules/eslint/lib/config/config-file.js:403:28)
    at loadFromDisk (/Users/v.demidov/projects/iketari/superchat/node_modules/eslint/lib/config/config-file.js:514:22)
    at Object.load (/Users/v.demidov/projects/iketari/superchat/node_modules/eslint/lib/config/config-file.js:550:20)
    at Config.getLocalConfigHierarchy (/Users/v.demidov/projects/iketari/superchat/node_modules/eslint/lib/config.js:228:44)
    at Config.getConfigHierarchy (/Users/v.demidov/projects/iketari/superchat/node_modules/eslint/lib/config.js:180:43)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! superchat@1.0.0 lint: `eslint './**/*.js' "--fix"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the superchat@1.0.0 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/v.demidov/.npm/_logs/2018-03-08T14_22_32_127Z-debug.log

Скорее всего проблема в том, что у меня eslint не установлен глобально