8.0.0 • Published 2 years ago
eslint-plugin-wpcalypso v8.0.0
Eslint plugin wpcalypso
Custom ESLint rules for the WordPress.com Calypso project.
Installation
Install ESLint amd eslint-plugin-wpcalypso
$ yarn add --dev eslint eslint-plugin-wpcalypsoUsage
Add wpcalypso to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"wpcalypso"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"wpcalypso/rule-name": 2
}
}Supported Rules
i18n-ellipsis: Disallow using three dots in translate stringsi18n-mismatched-placeholders: Ensure placeholder counts match between singular and plural stringsi18n-named-placeholders: Disallow multiple unnamed placeholdersi18n-no-collapsible-whitespace: Disallow collapsible whitespace in translatable stringsi18n-no-placeholders-only: Disallow strings which include only placeholdersi18n-no-this-translate: Disallow this.translate()i18n-no-variables: Disallow variables as translate stringsjsx-classname-namespace: Ensure JSX className adheres to CSS namespace guidelinesjsx-gridicon-size: Enforce recommended Gridicon size attributesimport-docblock: Enforce external, internal, WordPress dependencies docblockspost-message-no-wildcard-targets: Disallow using the wildcard '*' inpostMessageredux-no-bound-selectors: Disallow creation of selectors bound to Redux state
License
8.0.0
2 years ago
7.0.0
3 years ago
6.1.0
4 years ago
6.0.0
4 years ago
5.0.0
6 years ago
4.1.0
7 years ago
4.0.2
8 years ago
4.0.1
8 years ago
4.0.0
9 years ago
3.4.1
9 years ago
3.4.0
9 years ago
3.3.0
9 years ago
3.2.0
9 years ago
3.1.1
9 years ago
3.0.2
9 years ago
3.0.1
9 years ago
3.0.0
9 years ago
2.0.0
10 years ago
1.4.1
10 years ago
1.3.3
10 years ago
1.3.2
10 years ago
1.3.1
10 years ago
1.3.0
10 years ago
1.2.0
10 years ago
1.1.4
10 years ago
1.1.3
10 years ago
1.1.2
10 years ago
1.1.1
10 years ago
1.1.0
10 years ago
1.0.0
10 years ago