New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Package Naming Requirement #14034
Comments
Given that there's no issue with finding a name inside a scope, what's wrong with naming it |
Hi @Nytelife26, thanks for the issue!
That is a convention if the config is specified by its name in module.exports = {
extends: [require.resolve("@myscope/any-package-name")]
};
We are already working on the new config format per eslint/rfcs#9, where shared configs should be You can follow the progress here: #13481. |
As already noted, this restrictions is already being removed with eslint/rfcs#9, so closing. |
This is actually not the case. ESLint does not register nor recognize packages, even scoped ones, unless they are prefixed with |
Did you try with require.resolve? It should work with any package name. |
The version of ESLint you are using.
7.18.0
The problem you want to solve.
As of present, scoped packages MUST be prefixed with
eslint-config-
. This is understandable for general NPM packages (somewhat, still should not be a requirement if people so desire to name it differently), but as for scoped packages where organizations can ensure there will be no naming conflicts, this is unreasonable.Your take on the correct solution to the problem.
It should be a recommendation, not a requirement. ESLint should still allow you to use any other package name, as it is not the position of the utility to impose organizational structure.
Are you willing to submit a pull request to implement this change?
Yes.
The text was updated successfully, but these errors were encountered: