Skip to content

Commit

Permalink
Merge pull request #31 from gartnera/master
Browse files Browse the repository at this point in the history
Change iterm escape code
  • Loading branch information
royriojas authored Mar 23, 2018
2 parents 32a1e55 + 23ad2ec commit f1946c8
Show file tree
Hide file tree
Showing 40 changed files with 77 additions and 77 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ module.exports = function(results) {
}

if (process.env.FORCE_ITERM_HINT === 'true' || (process.stdout.isTTY && !process.env.CI)) {
output = '\u001B]50;CurrentDir=' + process.cwd() + '\u0007' + output;
output = '\u001B]1337;CurrentDir=' + process.cwd() + '\u0007' + output;
}

return total > 0 ? output : '';
Expand Down
2 changes: 1 addition & 1 deletion test/absolute-paths-no-gray/basic/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ http://eslint.org/docs/rules/no-unused-vars path is defined but never used
/home/usr/roy/index.js:8:2
path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/absolute-paths-no-gray/fatal/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
✘ http://eslint.org/docs/rules/ Unexpected token {
/home/usr/roy/index.js:3:13

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ http://eslint.org/docs/rules/ path is defined but never used
/home/usr/roy/index.js:0:0
path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/absolute-paths-no-gray/missing-messages/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
✘ http://eslint.org/docs/rules/curly Expected { after 'if' condition
/home/usr/roy/test/runner.js:41:2
if ( err ) console.log( 'failed tests: ' + err );
Expand Down
2 changes: 1 addition & 1 deletion test/absolute-paths-no-gray/missing-rule-id/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ http://eslint.org/docs/rules/ path is defined but never used
/home/usr/roy/index.js:8:2
path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/absolute-paths-no-gray/single-error/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ http://eslint.org/docs/rules/no-unused-vars path is defined but never used
/home/usr/roy/index.js:8:2
path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/absolute-paths/basic/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ http://eslint.org/docs/rules/no-unused-vars path is defined but never used
/home/usr/roy/index.js:8:2
 path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/absolute-paths/fatal/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
✘ http://eslint.org/docs/rules/ Unexpected token {
/home/usr/roy/index.js:3:13

Expand Down
2 changes: 1 addition & 1 deletion test/absolute-paths/missing-line-column/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ http://eslint.org/docs/rules/ path is defined but never used
/home/usr/roy/index.js:0:0
 path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/absolute-paths/missing-messages/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
✘ http://eslint.org/docs/rules/curly Expected { after 'if' condition
/home/usr/roy/test/runner.js:41:2
 if ( err ) console.log( 'failed tests: ' + err );
Expand Down
2 changes: 1 addition & 1 deletion test/absolute-paths/missing-rule-id/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ http://eslint.org/docs/rules/ path is defined but never used
/home/usr/roy/index.js:8:2
 path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/absolute-paths/single-error/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ http://eslint.org/docs/rules/no-unused-vars path is defined but never used
/home/usr/roy/index.js:8:2
 path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/filter/single-error/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ http://eslint.org/docs/rules/no-unused-vars path is defined but never used
index.js:8:2
 path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/basic/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/path/to/working/directory
]1337;CurrentDir=/path/to/working/directory
⚠ http://eslint.org/docs/rules/no-unused-vars path is defined but never used
index.js:8:2
 path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/fatal/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/path/to/working/directory
]1337;CurrentDir=/path/to/working/directory
✘ http://eslint.org/docs/rules/ Unexpected token {
index.js:3:13

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/missing-line-column/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/path/to/working/directory
]1337;CurrentDir=/path/to/working/directory
⚠ http://eslint.org/docs/rules/ path is defined but never used
index.js:0:0
 path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/missing-messages/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/path/to/working/directory
]1337;CurrentDir=/path/to/working/directory
✘ http://eslint.org/docs/rules/curly Expected { after 'if' condition
test/runner.js:41:2
 if ( err ) console.log( 'failed tests: ' + err );
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/missing-rule-id/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/path/to/working/directory
]1337;CurrentDir=/path/to/working/directory
⚠ http://eslint.org/docs/rules/ path is defined but never used
index.js:8:2
 path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/single-error/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/path/to/working/directory
]1337;CurrentDir=/path/to/working/directory
⚠ http://eslint.org/docs/rules/no-unused-vars path is defined but never used
index.js:8:2
 path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/no-gray-fixtures/basic/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ http://eslint.org/docs/rules/no-unused-vars path is defined but never used
index.js:8:2
path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/no-gray-fixtures/fatal/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
✘ http://eslint.org/docs/rules/ Unexpected token {
index.js:3:13

Expand Down
2 changes: 1 addition & 1 deletion test/no-gray-fixtures/missing-line-column/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ http://eslint.org/docs/rules/ path is defined but never used
index.js:0:0
path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/no-gray-fixtures/missing-messages/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
✘ http://eslint.org/docs/rules/curly Expected { after 'if' condition
test/runner.js:41:2
if ( err ) console.log( 'failed tests: ' + err );
Expand Down
2 changes: 1 addition & 1 deletion test/no-gray-fixtures/missing-rule-id/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ http://eslint.org/docs/rules/ path is defined but never used
index.js:8:2
path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/no-gray-fixtures/single-error/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ http://eslint.org/docs/rules/no-unused-vars path is defined but never used
index.js:8:2
path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/no-links/basic/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ no-unused-vars path is defined but never used
index.js:8:2
 path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/no-links/fatal/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
✘ Unexpected token {
index.js:3:13

Expand Down
2 changes: 1 addition & 1 deletion test/no-links/missing-line-column/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ path is defined but never used
index.js:0:0
 path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/no-links/missing-messages/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
✘ curly Expected { after 'if' condition
test/runner.js:41:2
 if ( err ) console.log( 'failed tests: ' + err );
Expand Down
2 changes: 1 addition & 1 deletion test/no-links/missing-rule-id/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ path is defined but never used
index.js:8:2
 path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/no-links/single-error/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ no-unused-vars path is defined but never used
index.js:8:2
 path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/plugin-rules/single-error/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ http://eslint.org/docs/rules/no-unused-vars path is defined but never used
index.js:8:2
 path = require( 'path' ),
Expand Down
2 changes: 1 addition & 1 deletion test/scheme/basic/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ http://eslint.org/docs/rules/no-unused-vars path is defined but never used
/home/usr/roy/index.js:8:2
editor://open?file=%2Fhome%2Fusr%2Froy%2Findex.js&line=8&column=2
Expand Down
2 changes: 1 addition & 1 deletion test/scheme/fatal/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
✘ http://eslint.org/docs/rules/ Unexpected token {
/home/usr/roy/index.js:3:13
editor://open?file=%2Fhome%2Fusr%2Froy%2Findex.js&line=3&column=13
Expand Down
2 changes: 1 addition & 1 deletion test/scheme/missing-line-column/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ http://eslint.org/docs/rules/ path is defined but never used
/home/usr/roy/index.js:0:0
editor://open?file=%2Fhome%2Fusr%2Froy%2Findex.js&line=0&column=0
Expand Down
2 changes: 1 addition & 1 deletion test/scheme/missing-messages/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
✘ http://eslint.org/docs/rules/curly Expected { after 'if' condition
/home/usr/roy/test/runner.js:41:2
editor://open?file=%2Fhome%2Fusr%2Froy%2Ftest%2Frunner.js&line=41&column=2
Expand Down
2 changes: 1 addition & 1 deletion test/scheme/missing-rule-id/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ http://eslint.org/docs/rules/ path is defined but never used
/home/usr/roy/index.js:8:2
editor://open?file=%2Fhome%2Fusr%2Froy%2Findex.js&line=8&column=2
Expand Down
2 changes: 1 addition & 1 deletion test/scheme/single-error/results.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
]50;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
]1337;CurrentDir=/Users/roy/royws/eslint-friendly-formatter
⚠ http://eslint.org/docs/rules/no-unused-vars path is defined but never used
/home/usr/roy/index.js:8:2
editor://open?file=%2Fhome%2Fusr%2Froy%2Findex.js&line=8&column=2
Expand Down
Loading

0 comments on commit f1946c8

Please sign in to comment.