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
> eslint . --ignore-pattern "!.*"
/home/weiran/repo/eslint-plugin-eslint-plugin/docs/rules/consistent-output.md
16:1 warning '/*eslint*/' has no effect because you have 'noInlineConfig' setting in your config (.eslintrc.js#overrides[3])
37:1 warning '/*eslint*/' has no effect because you have 'noInlineConfig' setting in your config (.eslintrc.js#overrides[3])
it was introduced in 15ffada. it would be great if we can find a way to avoid the warnings. :)
The text was updated successfully, but these errors were encountered:
We can only refer to our own rules using self/, not eslint-plugin/, so we'll get an error Definition for rule was not found.
Even if we change the inline configs to use self/, then we will start receiving a lot of unwanted violations from the violations we intend to show in the documentation samples.
I'm not sure how to eliminate the warnings / noInlineConfig usage, other than to remove the inline configs (which I personally see as redundant, and note that we're not using them in every rule doc anyway).
uh, I have tried reportUnusedDisableDirectives: false, but it did not help.
there are some choices:
remove the inline config in docs.
eslint provide an option ignoreInlineConfig(similar to noInlineConfig).
I slightly prefer the 2nd(to keep the same format as eslint docs as possible, see for-direction). can you file the issue in eslint repo, so we can figure out the right solution?
… the docs
as inline configs was widely used in the source code, I just separate
the `eslint --no-inline-config docs` to npm script `lint:docs`.
fixes#140
it was introduced in 15ffada. it would be great if we can find a way to avoid the warnings. :)
The text was updated successfully, but these errors were encountered: