We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sometimes I want to set certain paths in batches to prohibit relying on the same path, or a certain path to prohibit relying on multiple paths.
Now I need to set one by one, and hope to support the incoming array for batch setting.
e.g. 'import/no-restricted-paths': [2, { "zones": [ { "target": "modules/a", "from": ["modules/b", "modules/c"], }, { "target": ["modules/b", "modules/c"], "from": "modules/d", } ] }]
'import/no-restricted-paths': [2, { "zones": [ { "target": "modules/a", "from": ["modules/b", "modules/c"], }, { "target": ["modules/b", "modules/c"], "from": "modules/d", } ] }]
The text was updated successfully, but these errors were encountered:
Seems reasonable.
Sorry, something went wrong.
Maybe it can support a RegExp or RegExp string, which can be more flexible.
Definitely not; that’s a floodgate to CVEs.
no-restricted-paths
@ljharb I submitted a PR to address this issue, I'd be happy to have your feedback on this work 🙏🏽
Successfully merging a pull request may close this issue.
Sometimes I want to set certain paths in batches to prohibit relying on the same path, or a certain path to prohibit relying on multiple paths.
Now I need to set one by one, and hope to support the incoming array for batch setting.
e.g.
'import/no-restricted-paths': [2, { "zones": [ { "target": "modules/a", "from": ["modules/b", "modules/c"], }, { "target": ["modules/b", "modules/c"], "from": "modules/d", } ] }]
The text was updated successfully, but these errors were encountered: