You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The @liferay/eslint-plugin package uses babel-eslint as a parser, but doesn't list it as a dependency nor as a peer dependency.
I don't mind installing it in my package, but I would like for it be documented at least as a peer dependency so NPM can give me warnings when its missing.
Desired behavior:
I'm able to use @liferay/eslint-plugin's general configuration and run ESLint with it.
Current behavior:
Oops! Something went wrong! :(
ESLint: 7.32.0
Error: Failed to load parser 'babel-eslint' declared in '.eslintrc.json Β» plugin:@liferay/general': Cannot find module 'babel-eslint'
Require stack:
- /home/leandro/projects/sample-liferay-eslint-plugin-babel-eslint-error/node_modules/@liferay/eslint-plugin/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Function.resolve (node:internal/modules/cjs/helpers:116:19)
at Object.resolve (/home/leandro/projects/sample-liferay-eslint-plugin-babel-eslint-error/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js:28:50)
at ConfigArrayFactory._loadParser (/home/leandro/projects/sample-liferay-eslint-plugin-babel-eslint-error/node_modules/@eslint/eslintrc/lib/config-array-factory.js:929:45)
at ConfigArrayFactory._normalizeObjectConfigDataBody (/home/leandro/projects/sample-liferay-eslint-plugin-babel-eslint-error/node_modules/@eslint/eslintrc/lib/config-array-factory.js:724:43)
at _normalizeObjectConfigDataBody.next (<anonymous>)
at ConfigArrayFactory._normalizeObjectConfigData (/home/leandro/projects/sample-liferay-eslint-plugin-babel-eslint-error/node_modules/@eslint/eslintrc/lib/config-array-factory.js:665:20)
at _normalizeObjectConfigData.next (<anonymous>)
at ConfigArrayFactory._normalizeObjectConfigDataBody (/home/leandro/projects/sample-liferay-eslint-plugin-babel-eslint-error/node_modules/@eslint/eslintrc/lib/config-array-factory.js:720:25)
at _normalizeObjectConfigDataBody.next (<anonymous>)
Issue type (mark with
x
)Description
The
@liferay/eslint-plugin
package usesbabel-eslint
as a parser, but doesn't list it as a dependency nor as a peer dependency.I don't mind installing it in my package, but I would like for it be documented at least as a peer dependency so NPM can give me warnings when its missing.
Desired behavior:
I'm able to use
@liferay/eslint-plugin
'sgeneral
configuration and run ESLint with it.Current behavior:
Repro instructions (if applicable):
npm ci
npm run lint
Other information (environment, versions etc):
eslint
7.35.0@liferay/eslint-plugin
1.4.0The text was updated successfully, but these errors were encountered: