-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Optionally allow eslint inline configurations #172
Comments
Thanks for the improvement idea and sorry for breaking your tests @voxpelli. I think the best way to fix this is to allow users specify eslint-remote-tester/lib/engine/worker-task.ts Lines 179 to 186 in 1e5e5ea
Default values of the const linterOptions: ESLint.Options = {
useEslintrc: false,
overrideConfig: config.eslintrc,
// Only rules set in configuration are expected.
// Ignore all inline configurations found from target repositories.
allowInlineConfig: false,
...config.linterOptions,
}; This way you could enable module.exports = {
...
linterOptions: {
allowInlineConfig: true,
},
... |
I agree @AriPerkkio, I'll make a PR 👍 No worries! I do know that I'm using this module from a different perspective than it was intended for, testing rule collections rather than individual rules 🙂 |
The change made in #39, while intended to stop inline activation of rules, actually broke my runs (voxpelli/eslint-config#39), since I do inline deactivation of rules that doesn't apply to a specific file or line.
I wonder if there's a way to allow disabling rules without also allowing the enabling of rules 🤔
Simpler is probably to allow the original behavior, but make it an opt in (or opt-out)
Getting late here, so can't do a PR right now, but still wanted to make a note of it here right away, I can maybe find time for a PR another day.
The text was updated successfully, but these errors were encountered: