eslint-plugin-unicorn
Version:
Various awesome ESLint rules
11 lines (8 loc) • 326 B
JavaScript
const path = require('path');
const packageJson = require('../../package');
const repoUrl = 'https://github.com/sindresorhus/eslint-plugin-unicorn';
module.exports = filename => {
const ruleName = path.basename(filename, '.js');
return `${repoUrl}/blob/v${packageJson.version}/docs/rules/${ruleName}.md`;
};
;