1.0.3 • Published 10 years ago

eslint-tool-summarize v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
10 years ago

eslint-tool-summarize

npm license Build Status dependencies

Description

Generate a summary of the ESLint Rules used in a .eslintrc configuration file.

Install

$ npm install eslint-tool-summarize -g

Usage

Command Line

Make sure the module is installed globally.

$ eslint-tool-summarize -c ./.eslintrc -o ./output.html
$ eslint-summarize -c ./.eslintrc -o ./output.html

Module

var summarize = require('eslint-tool-summarize');

summarize.load('./.eslintrc', function (err, templateContext) {
	summarize.generate('./some-template.html', templateContext, function (err, output) {
		console.log(output);
	});
});

Custom Templates - TemplateContext

{
	config: "",
	categories: [
		{
			name: "",
			description: "",
			rules: [
				{
					used: rule.value[0] || rule.value,
					value: [2, 1],
					name: "",
					link: eslintRulesPage + rule.name + ".html",
					description: ""
				},
				...
			]
		},
		...
	]
}
1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago