Skip to content

Commit

Permalink
Update: Add URL to rule documentation to the metadata (#75)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Arcanemagus authored and not-an-aardvark committed Jan 9, 2018
1 parent a728868 commit 804ead7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eslint-plugin-prettier.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ module.exports = {
rules: {
prettier: {
meta: {
docs: {
url: 'https://github.com/prettier/eslint-plugin-prettier#options'
},
fixable: 'code',
schema: [
// Prettier options:
Expand Down

0 comments on commit 804ead7

Please sign in to comment.