Package Exports
- eslint-formatter-git-log
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-formatter-git-log) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eslint-formatter-git-log
ESLint Formatter featuring Git Author, Date, and Hash.
🎨 Screenshot
☁️ Installation
npm install --save-dev eslint eslint-formatter-git-log
🕹 Usage
eslint --format 'git-log' file.js
⚖️ Configuration
This formatter is written to be as customisable as possible. To create a customised version of the formatter you can create a file somewhere in your project which follows the structure below.
For this example I am using the default values. You do not need to provide a value for every configuration item, only those you want to change.
const gitLogFormatter = require('eslint-formatter-git-log');
const chalk = require('chalk');
module.exports = gitLogFormatter.withConfig({
style: {
error: chalk.red,
filePath: chalk.underline,
warning: chalk.yellow,
location: chalk.dim,
rule: chalk.dim,
commit: chalk.magenta,
date: chalk.greenBright,
email: chalk.blueBright,
},
gutter: ' ',
label: {
error: 'error',
warning: 'warning',
},
locationColumnWidth: 8,
});
Then point at your custom formatter instead of the default like so:
eslint --format './path-to-your-custom-formatter.js' file.js
❓ Getting Help
- Get help with issues by creating a Bug Report.
- Discuss ideas by opening a Feature Request.