eslint-formatter-pretty
Advanced tools
Comparing version 1.1.0 to 1.2.0
10
index.js
@@ -60,3 +60,3 @@ 'use strict'; | ||
// stylize inline code blocks | ||
// Stylize inline code blocks | ||
message = message.replace(/\B`(.*?)`\B|\B'(.*?)'\B/g, (m, p1, p2) => chalk.bold(p1 || p2)); | ||
@@ -92,3 +92,3 @@ | ||
if (process.stdout.isTTY && !process.env.CI) { | ||
// make relative paths Cmd+click'able in iTerm | ||
// Make relative paths Cmd+click'able in iTerm | ||
output += ansiEscapes.iTerm.setCwd(); | ||
@@ -99,7 +99,7 @@ } | ||
if (x.type === 'header') { | ||
// add the line number so it's Cmd+click'able in some terminals | ||
// use dim & gray for terminals like iTerm that doesn't support `hidden` | ||
// Add the line number so it's Cmd+click'able in some terminals | ||
// Use dim & gray for terminals like iTerm that doesn't support `hidden` | ||
const position = showLineNumbers ? chalk.hidden.dim.gray(`:${x.firstLineCol}`) : ''; | ||
return ' ' + chalk.underline(x.relativeFilePath + position); | ||
return ' ' + chalk.underline(x.relativeFilePath) + position; | ||
} | ||
@@ -106,0 +106,0 @@ |
{ | ||
"name": "eslint-formatter-pretty", | ||
"version": "1.1.0", | ||
"description": "Pretty ESLint formatter", | ||
"license": "MIT", | ||
"repository": "sindresorhus/eslint-formatter-pretty", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"eslint", | ||
"eslint-formatter", | ||
"formatter", | ||
"reporter", | ||
"lint", | ||
"validate" | ||
], | ||
"dependencies": { | ||
"ansi-escapes": "^1.4.0", | ||
"chalk": "^1.1.3", | ||
"log-symbols": "^1.0.2", | ||
"plur": "^2.1.2", | ||
"string-width": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"strip-ansi": "^3.0.1", | ||
"xo": "*" | ||
}, | ||
"xo": { | ||
"esnext": true | ||
} | ||
"name": "eslint-formatter-pretty", | ||
"version": "1.2.0", | ||
"description": "Pretty ESLint formatter", | ||
"license": "MIT", | ||
"repository": "sindresorhus/eslint-formatter-pretty", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"eslint", | ||
"eslint-formatter", | ||
"formatter", | ||
"reporter", | ||
"lint", | ||
"validate" | ||
], | ||
"dependencies": { | ||
"ansi-escapes": "^1.4.0", | ||
"chalk": "^1.1.3", | ||
"log-symbols": "^1.0.2", | ||
"plur": "^2.1.2", | ||
"string-width": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"strip-ansi": "^3.0.1", | ||
"xo": "*" | ||
} | ||
} |
# eslint-formatter-pretty [![Build Status](https://travis-ci.org/sindresorhus/eslint-formatter-pretty.svg?branch=master)](https://travis-ci.org/sindresorhus/eslint-formatter-pretty) | ||
> Pretty formatter for [ESLint](http://eslint.org) | ||
> Pretty formatter for [ESLint](https://eslint.org) | ||
@@ -64,6 +64,7 @@ ![](screenshot.png) | ||
module: { | ||
loaders: [ | ||
preLoaders: [ | ||
{ | ||
test: /\.js$/, | ||
loader: 'eslint-loader' | ||
loader: 'eslint-loader', | ||
exclude: /node_modules/ | ||
} | ||
@@ -70,0 +71,0 @@ ] |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116
7247