Skip to content

cannot read config file #12

@caleb15

Description

@caleb15

eslint ff/static/modules --ext .tsx works but eslint-parallel ff/static/modules --ext .tsx does not.

node version: 12.18.1
OS version: ubuntu 18.04.4 LTS

eslintrc:

// code code code
// bla bla bla
// more irrelevant code
module.exports = {
 // stuff
};

Log:

(fifteen5) > time yarn modules:lint                                                            ~/Documents/fifteen5(dev✗)@caleb-H110M-A
yarn run v1.22.4
$ eslint-parallel ff/static/modules --ext .tsx
Error: Cannot read config file: /home/caleb/Documents/fifteen5/ff/static/modules/.eslintrc.js
Error: Cannot find module './.eslintrc'
Require stack:
- /home/caleb/Documents/fifteen5/ff/static/js/.eslintrc-next.js
- /home/caleb/Documents/fifteen5/ff/static/modules/.eslintrc.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/config/config-file.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/config.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/cli-engine.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/api.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/lib/linter.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
    at Function.Module._load (internal/modules/cjs/loader.js:842:27)
    at Module.require (internal/modules/cjs/loader.js:1026:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/home/caleb/Documents/fifteen5/ff/static/js/.eslintrc-next.js:7:23)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Module.require (internal/modules/cjs/loader.js:1026:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/caleb/Documents/fifteen5/ff/static/js/.eslintrc-next.js',
    '/home/caleb/Documents/fifteen5/ff/static/modules/.eslintrc.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/config/config-file.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/config.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/cli-engine.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/api.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/lib/linter.js'
  ]
}
Rule | Time (ms) | Relative
:----|----------:|--------:
Error: Cannot read config file: /home/caleb/Documents/fifteen5/ff/static/modules/.eslintrc.js
Error: Cannot find module './.eslintrc'
Require stack:
- /home/caleb/Documents/fifteen5/ff/static/js/.eslintrc-next.js
- /home/caleb/Documents/fifteen5/ff/static/modules/.eslintrc.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/config/config-file.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/config.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/cli-engine.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/api.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/lib/linter.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
    at Function.Module._load (internal/modules/cjs/loader.js:842:27)
    at Module.require (internal/modules/cjs/loader.js:1026:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/home/caleb/Documents/fifteen5/ff/static/js/.eslintrc-next.js:7:23)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Module.require (internal/modules/cjs/loader.js:1026:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/caleb/Documents/fifteen5/ff/static/js/.eslintrc-next.js',
    '/home/caleb/Documents/fifteen5/ff/static/modules/.eslintrc.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/config/config-file.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/config.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/cli-engine.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/api.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/lib/linter.js'
  ]
}
Rule | Time (ms) | Relative
:----|----------:|--------:
(node:32527) UnhandledPromiseRejectionWarning: Linting failed
(node:32527) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:32527) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:32527) UnhandledPromiseRejectionWarning: Linting failed
(node:32527) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:32527) UnhandledPromiseRejectionWarning: Linting failed
(node:32527) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
Error: Cannot read config file: /home/caleb/Documents/fifteen5/ff/static/modules/.eslintrc.js
Error: Cannot find module './.eslintrc'
Require stack:
- /home/caleb/Documents/fifteen5/ff/static/js/.eslintrc-next.js
- /home/caleb/Documents/fifteen5/ff/static/modules/.eslintrc.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/config/config-file.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/config.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/cli-engine.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/api.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/lib/linter.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
    at Function.Module._load (internal/modules/cjs/loader.js:842:27)
    at Module.require (internal/modules/cjs/loader.js:1026:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/home/caleb/Documents/fifteen5/ff/static/js/.eslintrc-next.js:7:23)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Module.require (internal/modules/cjs/loader.js:1026:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/caleb/Documents/fifteen5/ff/static/js/.eslintrc-next.js',
    '/home/caleb/Documents/fifteen5/ff/static/modules/.eslintrc.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/config/config-file.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/config.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/cli-engine.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/api.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/lib/linter.js'
  ]
}
Error: Cannot read config file: /home/caleb/Documents/fifteen5/ff/static/modules/.eslintrc.js
Error: Cannot find module './.eslintrc'
Require stack:
- /home/caleb/Documents/fifteen5/ff/static/js/.eslintrc-next.js
- /home/caleb/Documents/fifteen5/ff/static/modules/.eslintrc.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/config/config-file.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/config.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/cli-engine.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/api.js
- /home/caleb/Documents/fifteen5/node_modules/eslint-parallel/lib/linter.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
    at Function.Module._load (internal/modules/cjs/loader.js:842:27)
    at Module.require (internal/modules/cjs/loader.js:1026:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/home/caleb/Documents/fifteen5/ff/static/js/.eslintrc-next.js:7:23)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Module.require (internal/modules/cjs/loader.js:1026:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/caleb/Documents/fifteen5/ff/static/js/.eslintrc-next.js',
    '/home/caleb/Documents/fifteen5/ff/static/modules/.eslintrc.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/config/config-file.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/config.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/cli-engine.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/node_modules/eslint/lib/api.js',
    '/home/caleb/Documents/fifteen5/node_modules/eslint-parallel/lib/linter.js'
  ]
}
Rule | Time (ms) | Relative
:----|----------:|--------:
Rule | Time (ms) | Relative
:----|----------:|--------:
(node:32527) UnhandledPromiseRejectionWarning: Linting failed
(node:32527) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)
(node:32527) UnhandledPromiseRejectionWarning: Linting failed
(node:32527) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5)
Rule | Time (ms) | Relative
:----|----------:|--------:
Done in 1.34s.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions