-
-
Notifications
You must be signed in to change notification settings - Fork 163
Move settings to options #216
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
Comments
Could you change the issue title to not be specific to |
It seems that only |
There are others; e.g., |
Also
The only setting that really is used across rules is |
…check-types should be checking borrows and namepath types; flesh out require-jsdoc including scopes and tags/aliases - Fix: Remove `parameter` as accepted synonym for `@param` (not listed at site) - Enhancement: Have `require-hyphen-before-param-description` check `tagNamePreference` setting - Refactoring: Avoid checking for preferred name for `example` (as there are no official synonyms) - Refactoring: Toward resolving gajus#216, group settings by which rules use them - Refactoring: Rename `isLink` inner function to `isInlineTag` for accuracy - Docs: Toward resolving gajus#216, document which rules employ each of the settings - Docs: Add require-jsdoc docs per gajus#208 - Docs: Fix/add to tags listed for rules
…check-types should be checking borrows and namepath types; flesh out require-jsdoc including scopes and tags/aliases - Fix: Remove `parameter` as accepted synonym for `@param` (not listed at site) - Enhancement: Have `require-hyphen-before-param-description` check `tagNamePreference` setting - Refactoring: Avoid checking for preferred name for `example` (as there are no official synonyms) - Refactoring: Toward resolving gajus#216, group settings by which rules use them - Refactoring: Rename `isLink` inner function to `isInlineTag` for accuracy - Docs: Toward resolving gajus#216, document which rules employ each of the settings - Docs: Add require-jsdoc docs per gajus#208 - Docs: Fix/add to tags listed for rules - Docs: Observation about `Object.create(null)` and `check-types`
…check-types should be checking borrows and namepath types; flesh out require-jsdoc including scopes and tags/aliases - Fix: Remove `parameter` as accepted synonym for `@param` (not listed at site) - Enhancement: Have `require-hyphen-before-param-description` check `tagNamePreference` setting - Refactoring: Avoid checking for preferred name for `example` (as there are no official synonyms) - Refactoring: Toward resolving gajus#216, group settings by which rules use them - Refactoring: Rename `isLink` inner function to `isInlineTag` for accuracy - Docs: Toward resolving gajus#216, document which rules employ each of the settings - Docs: Add require-jsdoc docs per gajus#208 - Docs: Fix/add to tags listed for rules - Docs: Observation about `Object.create(null)` and `check-types`
…check-types should be checking borrows and namepath types; flesh out require-jsdoc including scopes and tags/aliases - Fix: Remove `parameter` as accepted synonym for `@param` (not listed at site); affects `check-tag-names` and various param rules - Enhancement: Have `require-hyphen-before-param-description` check `tagNamePreference` setting - Refactoring: Avoid checking for preferred name for `example` (as there are no official synonyms) - Refactoring: Toward resolving gajus#216, group settings by which rules use them - Refactoring: Rename `isLink` inner function to `isInlineTag` for accuracy - Docs: Toward resolving gajus#216, document which rules employ each of the settings - Docs: Add require-jsdoc docs per gajus#208 - Docs: Fix/add to tags listed for rules - Docs: Observation about `Object.create(null)` and `check-types`
…check-types should be checking borrows and namepath types; flesh out require-jsdoc including scopes and tags/aliases - Fix: Remove `parameter` as accepted synonym for `@param` (not listed at site); affects `check-tag-names` and various param rules - Enhancement: Have `require-hyphen-before-param-description` check `tagNamePreference` setting - Refactoring: Avoid checking for preferred name for `example` (as there are no official synonyms) - Refactoring: Toward resolving gajus#216, group settings by which rules use them - Refactoring: Rename `isLink` inner function to `isInlineTag` for accuracy - Docs: Toward resolving gajus#216, document which rules employ each of the settings - Docs: Add require-jsdoc docs per gajus#208 - Docs: Fix/add to tags listed for rules - Docs: Observation about `Object.create(null)` and `check-types`
…check-types should be checking borrows and namepath types; flesh out require-jsdoc including scopes and tags/aliases - Fix: Remove `parameter` as accepted synonym for `@param` (not listed at site); affects `check-tag-names` and various param rules - Enhancement: Have `require-hyphen-before-param-description` check `tagNamePreference` setting - Refactoring: Avoid checking for preferred name for `example` (as there are no official synonyms) - Refactoring: Toward resolving gajus#216, group settings by which rules use them - Refactoring: Rename `isLink` inner function to `isInlineTag` for accuracy - Docs: Toward resolving gajus#216, document which rules employ each of the settings - Docs: Add require-jsdoc docs per gajus#208 - Docs: Fix/add to tags listed for rules - Docs: Observation about `Object.create(null)` and `check-types`
…check-types should be checking borrows and namepath types; flesh out require-jsdoc including scopes and tags/aliases - Fix: Remove `parameter` as accepted synonym for `@param` (not listed at site); affects `check-tag-names` and various param rules - Enhancement: Have `require-hyphen-before-param-description` check `tagNamePreference` setting - Refactoring: Avoid checking for preferred name for `example` (as there are no official synonyms) - Refactoring: Toward resolving gajus#216, group settings by which rules use them - Refactoring: Rename `isLink` inner function to `isInlineTag` for accuracy - Docs: Toward resolving gajus#216, document which rules employ each of the settings - Docs: Add require-jsdoc docs per gajus#208 - Docs: Fix/add to tags listed for rules - Docs: Observation about `Object.create(null)` and `check-types`
…check-types should be checking borrows and namepath types; flesh out require-jsdoc including scopes and tags/aliases - Enhancement: Have `require-hyphen-before-param-description` check `tagNamePreference` setting - Refactoring: Avoid checking for preferred name for `example` (as there are no official synonyms) - Refactoring: Toward resolving gajus#216, group settings by which rules use them - Refactoring: Rename `isLink` inner function to `isInlineTag` for accuracy - Docs: Toward resolving gajus#216, document which rules employ each of the settings - Docs: Add require-jsdoc docs per gajus#208 - Docs: Fix/add to tags listed for rules - Docs: Observation about `Object.create(null)` and `check-types`
…check-types should be checking borrows and namepath types; flesh out require-jsdoc including scopes and tags/aliases - Enhancement: Have `require-hyphen-before-param-description` check `tagNamePreference` setting - Refactoring: Avoid checking for preferred name for `example` (as there are no official synonyms) - Refactoring: Toward resolving gajus#216, group settings by which rules use them - Refactoring: Rename `isLink` inner function to `isInlineTag` for accuracy - Docs: Toward resolving gajus#216, document which rules employ each of the settings - Docs: Add require-jsdoc docs per gajus#208 - Docs: Fix/add to tags listed for rules - Docs: Observation about `Object.create(null)` and `check-types`
…check-types should be checking borrows and namepath types; flesh out require-jsdoc including scopes and tags/aliases - Enhancement: Have `require-hyphen-before-param-description` check `tagNamePreference` setting - Docs: Toward resolving gajus#216, document which rules employ each of the settings - Docs: Add require-jsdoc docs per gajus#208 - Docs: Fix/add to tags listed for rules - Docs: Observation about `Object.create(null)` and `check-types`
…cking borrows and namepath types; expand valid-types tags in docs; flesh out require-jsdoc docs including scopes and tags/aliases - Docs: Toward resolving gajus#216, document which rules employ each of the settings - Docs: Add require-jsdoc docs per gajus#208 - Docs: Fix/add to tags listed for rules - Docs: Observation about `Object.create(null)` and `check-types`
…cking borrows and namepath types; expand valid-types tags in docs; flesh out require-jsdoc docs including scopes and tags/aliases - Docs: Toward resolving gajus#216, document which rules employ each of the settings - Docs: Add require-jsdoc docs per gajus#208 - Docs: Fix/add to tags listed for rules - Docs: Observation about `Object.create(null)` and `check-types`
…cking borrows and namepath types; expand valid-types tags in docs; flesh out require-jsdoc docs including scopes and tags/aliases - Docs: Toward resolving gajus#216, document which rules employ each of the settings - Docs: Add require-jsdoc docs per gajus#208 - Docs: Fix/add to tags listed for rules - Docs: Observation about `Object.create(null)` and `check-types`
…cking borrows and namepath types; expand valid-types tags in docs; flesh out require-jsdoc docs including scopes and tags/aliases - Docs: Toward resolving gajus#216, document which rules employ each of the settings - Docs: Add require-jsdoc docs per gajus#208 - Docs: Fix/add to tags listed for rules - Docs: Observation about `Object.create(null)` and `check-types`
…iases - Docs: Toward resolving gajus#216, document which rules employ each of the settings - Docs: Add require-jsdoc docs per gajus#208 - Docs: Fix/add to tags/aliases listed for rules - Docs: Observation about `Object.create(null)` and `check-types` - Docs: Add "Settings" column in rule tables to indicate applicable settings
…iases - Docs: Toward resolving gajus#216, document which rules employ each of the settings - Docs: Add require-jsdoc docs per gajus#208 - Docs: Fix/add to tags/aliases listed for rules - Docs: Observation about `Object.create(null)` and `check-types` - Docs: Add "Settings" column in rule tables to indicate applicable settings
…of the settings - Docs: Add require-jsdoc docs per gajus#208 - Docs: Fix/add to tags/aliases listed for rules - Docs: Add "Settings" column in rule tables to indicate applicable settings - Docs: Observation about `Object.create(null)` and `check-types` - Refactoring: Avoid nested `if`
require-param
from plugin settings to rule option
What is the process for moving settings to options? I suggest we do it one-step in a major release: add options, stop reading settings, and |
Sounds like a fine approach to me... I have my hands pretty full now, but a PR would be welcome... Bear in mind though re: breaking changes... As much as one doesn't wish to make breaking changes in any project, in a linting project, it can be as little total pain for a project to keep up with more frequent breaking changes and make a few incremental changes as it is to "rip off the bandage" and do it all at once, and with linting, breaking changes are far more likely (especially if one were to interpret every minor loosening or tightening as a breaking change). With linting, particularly ESLint, one has good feedback about what is failing and why, so it doesn't generally take a lot of debugging and deep refactoring work that might be better done all at once as can be the case for non-linting API changes. But doing it all at once does make sense here, especially as the changes are related, and it is better to increase consistency with the API. |
It will be great if someone can take up remaining part of this issue, that is, move settings of check-examples to options. |
I've started a branch to do so; just need to fix up the docs. We might then see about removing the already-deprecated |
BREAKING CHANGE: The following settings have been removed and became options under `check-examples` * `settings.jsdoc.exampleCodeRegex` * `settings.jsdoc.rejectExampleCodeRegex` * `settings.jsdoc.matchingFileName` * `settings.jsdoc.baseConfig` * `settings.jsdoc.configFile` * `settings.jsdoc.eslintrcForExamples` * `settings.jsdoc.allowInlineConfig` * `settings.jsdoc.reportUnusedDisableDirectives` * `settings.jsdoc.captionRequired` * `settings.jsdoc.noDefaultExampleRules`
BREAKING CHANGE: The following settings have been removed and became options under `check-examples` * `settings.jsdoc.exampleCodeRegex` * `settings.jsdoc.rejectExampleCodeRegex` * `settings.jsdoc.matchingFileName` * `settings.jsdoc.baseConfig` * `settings.jsdoc.configFile` * `settings.jsdoc.eslintrcForExamples` * `settings.jsdoc.allowInlineConfig` * `settings.jsdoc.reportUnusedDisableDirectives` * `settings.jsdoc.captionRequired` * `settings.jsdoc.noDefaultExampleRules`
🎉 This issue has been resolved in version 13.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* master: feat(`require-param`): remove deprecated settings `allowOverrideWithoutParam`, `allowImplementsWithoutParam`, `allowAugmentsExtendsWithoutParam` feat(`check-examples`): move settings to options (fixes gajus#216)
🎉 This issue has been resolved in version 15.9.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
It is hard to find out which setting adheres to which rule. It is better to move settings specific to one rule to the option of that rule.
The text was updated successfully, but these errors were encountered: