Skip to content

Commit

Permalink
Fixed typo "psuedo" to "pseudo" (stylelint#3790)
Browse files Browse the repository at this point in the history
Fixed two typos from "p*sue*do" to "p*seu*do"
  • Loading branch information
Maxim-Mazurok authored and hudochenkov committed Nov 8, 2018
1 parent f20d9e4 commit cbd0246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/developer-guide/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ stylelint has a number of [utility functions](https://github.com/stylelint/style

The rule should be strict *by default*. The user can make the rule more permissive by using the `"ignore*:"` secondary options.

The rule should not include code for methodologies or language extensions. Instead, provide generic secondary options so that the user can ignore these at the *configuration level*. For example, when dealing with specificity, a rule should not account for the `:global` and `:local` psuedo-classes (introduced in the CSS Modules language extension), instead the rule should provide a `ignorePsuedoClasses: []` secondary option. Methodologies come and go quickly, and this approach ensures the code base does not become littered with code for obsolete things.
The rule should not include code for methodologies or language extensions. Instead, provide generic secondary options so that the user can ignore these at the *configuration level*. For example, when dealing with specificity, a rule should not account for the `:global` and `:local` pseudo-classes (introduced in the CSS Modules language extension), instead the rule should provide a `ignorePseudoClasses: []` secondary option. Methodologies come and go quickly, and this approach ensures the code base does not become littered with code for obsolete things.

Only add an option to a rule if it addresses a *requested* use case. Do not add an option to a rule, even for the sake of consistency, if there has been no request. This is to avoid polluting the tool with unused features.

Expand Down

0 comments on commit cbd0246

Please sign in to comment.