Skip to content

Commit

Permalink
Use commit hash for imports-first documentation link
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcanemagus committed Jan 8, 2018
1 parent 60335bb commit fe03d72
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/rules/imports-first.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import first from './first'

const ruleDocsUrl = 'https://github.com/benmosher/eslint-plugin-import/blob'
import docsUrl from '../docsUrl'

const newMeta = Object.assign({}, first.meta, {
deprecated: true,
docs: {
url: `${ruleDocsUrl}/7b25c1cb95ee18acc1531002fd343e1e6031f9ed/docs/rules/imports-first.md`,
url: docsUrl('imports-first', '7b25c1cb95ee18acc1531002fd343e1e6031f9ed'),
},
})

Expand Down

0 comments on commit fe03d72

Please sign in to comment.