JSPM

eslint-formatter-git-log

0.2.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 262
  • Score
    100M100P100Q90650F
  • License MIT

ESLint Formatter featuring Git Author, Date, and Hash

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.

NPM version NPM downloads Build Status Maintainability Gitter Chat Donate via PayPal Backers Sponsors Analytics Follow JamieMason on GitHub Follow fold_left on Twitter

🎨 Screenshot

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