Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

[BREAKING] [no-type-alias] simplify config #259

Merged
merged 2 commits into from
Dec 21, 2018

Conversation

bradzacher
Copy link
Owner

In standardising our config, we should either use booleans, or strings.

Offering the ability to configure the rule via true/false as well as "always"/"never" makes the docs harder to understand.

  • [breaking] remove true/false options
  • cleanup tests/docs
  • switch to messageId

bradzacher added a commit that referenced this pull request Dec 21, 2018
@bradzacher bradzacher merged commit 1085a6b into master Dec 21, 2018
@bradzacher bradzacher deleted the breaking-cleanup-no-type-alias branch December 21, 2018 17:09
bradzacher added a commit that referenced this pull request Dec 22, 2018
Fixes #144
Requires ~~#259~~, ~~#260~~.

- added a util to make it standardised and easier to add default config for a rule
- configured recommended based on #144
  - purposely switched `recommended` prop to be `"error" | "warning" | false`
    - inside the eslint repo, it should be `true`. otherwise it's just a property that isn't used officially by eslint. It's truthy so `eslint-docs` still work.
  - changed recommended generator to accept `"error"`/`"warning"` for more configurability.
- adjusted default config of certain rules that didn't match our recommendations.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant