Skip to content

Commit 804ead7

Browse files
Arcanemagusnot-an-aardvark
authored andcommitted
Update: Add URL to rule documentation to the metadata (#75)
ESLint v4.15.0 added an official location for rules to store a URL to their documentation in the rule metadata in eslint/eslint#9788. This adds the URL to all the existing rules so anything consuming them can know where their documentation is without having to resort to external packages to guess.
1 parent a728868 commit 804ead7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

eslint-plugin-prettier.js

+3
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ module.exports = {
301301
rules: {
302302
prettier: {
303303
meta: {
304+
docs: {
305+
url: 'https://github.com/prettier/eslint-plugin-prettier#options'
306+
},
304307
fixable: 'code',
305308
schema: [
306309
// Prettier options:

0 commit comments

Comments
 (0)