eslint-teamcity
Advanced tools
Comparing version 2.2.0 to 2.3.0
{ | ||
"name": "eslint-teamcity", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "An ESLint formatter plugin for TeamCity", | ||
@@ -8,3 +8,3 @@ "main": "index.js", | ||
"lint": "eslint .", | ||
"prettier": "prettier --write ./**/*.js", | ||
"prettify": "prettier --write ./**/*.js", | ||
"test": "mocha \"./test/**/*.spec.js\"", | ||
@@ -29,23 +29,22 @@ "test:travis": "nyc npm test && nyc report --reporter=text-lcov | coveralls" | ||
"dependencies": { | ||
"fs-extra": "^8.1.x" | ||
"fs-extra": "^9.0.x" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.2.x", | ||
"coveralls": "^3.0.5", | ||
"coveralls": "^3.0.11", | ||
"eslint": "^6.0.x", | ||
"eslint-config-airbnb-base": "^13.2.x", | ||
"eslint-config-airbnb-base": "^14.1.0", | ||
"eslint-plugin-import": "^2.18.x", | ||
"husky": "^3.0.x", | ||
"lint-staged": "^9.2.x", | ||
"mocha": "^6.1.x", | ||
"nyc": "^14.1.x", | ||
"prettier": "^1.18.x", | ||
"husky": "^4.2.x", | ||
"lint-staged": "^10.0.x", | ||
"mocha": "^7.1.1", | ||
"nyc": "^15.0.x", | ||
"prettier": "^2.0.x", | ||
"shelljs": "^0.8.3", | ||
"sinon": "^7.3.x" | ||
"sinon": "^9.0.1" | ||
}, | ||
"lint-staged": { | ||
"*.js": [ | ||
"npm run prettier", | ||
"npm run lint", | ||
"git add" | ||
"npm run prettify", | ||
"npm run lint" | ||
] | ||
@@ -52,0 +51,0 @@ }, |
@@ -14,3 +14,3 @@ # eslint-teamcity | ||
**As of v2.0, Node v6+ is required. If you use an older version of Node, please stick with v1.x** | ||
**As of v2.0, Node v10+ is required. If you use an older version of Node, please stick with v1.x** | ||
@@ -17,0 +17,0 @@ Prerequisite: You must have either [npm](https://docs.npmjs.com/getting-started/installing-node#install-npm--manage-npm-versions) or [Yarn](https://yarnpkg.com/en/docs/install) installed. |
@@ -44,3 +44,3 @@ const utils = require('./utils'); | ||
errorStatisticsName: utils.escapeTeamCityString(errorStatisticsName), | ||
warningStatisticsName: utils.escapeTeamCityString(warningStatisticsName) | ||
warningStatisticsName: utils.escapeTeamCityString(warningStatisticsName), | ||
}; | ||
@@ -47,0 +47,0 @@ } |
@@ -9,16 +9,16 @@ /* global it, context, describe, beforeEach, afterEach */ | ||
describe('formatter', function() { | ||
describe('config', function() { | ||
describe('formatter', function () { | ||
describe('config', function () { | ||
let eslintInput = []; | ||
beforeEach(function() { | ||
beforeEach(function () { | ||
eslintInput.push(createDummyError()); | ||
}); | ||
afterEach(function() { | ||
afterEach(function () { | ||
eslintInput = []; | ||
}); | ||
context('prop names', function() { | ||
it('sets the reporter', function() { | ||
context('prop names', function () { | ||
it('sets the reporter', function () { | ||
const output = format(eslintInput, { reporter: 'inspections' }); | ||
@@ -33,3 +33,3 @@ expect(output).to.include( | ||
it('sets the report name', function() { | ||
it('sets the report name', function () { | ||
const output = format(eslintInput, { reportName: 'prop report name' }); | ||
@@ -40,3 +40,3 @@ expect(output).to.include("##teamcity[testSuiteStarted name='prop report name']"); | ||
it('sets the error count name', function() { | ||
it('sets the error count name', function () { | ||
const output = format(eslintInput, { errorStatisticsName: 'prop errors' }); | ||
@@ -46,3 +46,3 @@ expect(output).to.include("##teamcity[buildStatisticValue key='prop errors' value='2']"); | ||
it('sets the warning count name', function() { | ||
it('sets the warning count name', function () { | ||
const output = format(eslintInput, { warningStatisticsName: 'prop warnings' }); | ||
@@ -53,4 +53,4 @@ expect(output).to.include("##teamcity[buildStatisticValue key='prop warnings' value='0']"); | ||
context('package.json', function() { | ||
beforeEach(function() { | ||
context('package.json', function () { | ||
beforeEach(function () { | ||
const jsonConfig = JSON.stringify({ | ||
@@ -61,4 +61,4 @@ 'eslint-teamcity': { | ||
'error-statistics-name': 'package.json errors', | ||
'warning-statistics-name': 'package.json warnings' | ||
} | ||
'warning-statistics-name': 'package.json warnings', | ||
}, | ||
}); | ||
@@ -68,7 +68,7 @@ sinon.stub(utils, 'loadPackageJson').callsFake(() => jsonConfig); | ||
afterEach(function() { | ||
afterEach(function () { | ||
utils.loadPackageJson.restore(); | ||
}); | ||
it('sets the report type', function() { | ||
it('sets the report type', function () { | ||
const output = format(eslintInput); | ||
@@ -80,3 +80,3 @@ expect(output).to.include( | ||
it('sets the report name', function() { | ||
it('sets the report name', function () { | ||
const output = format(eslintInput); | ||
@@ -88,3 +88,3 @@ expect(output).to.include( | ||
it('sets the error count name', function() { | ||
it('sets the error count name', function () { | ||
const output = format(eslintInput); | ||
@@ -96,3 +96,3 @@ expect(output).to.include( | ||
it('sets the warning count name', function() { | ||
it('sets the warning count name', function () { | ||
const output = format(eslintInput); | ||
@@ -105,3 +105,3 @@ expect(output).to.include( | ||
context('process.env', function() { | ||
context('process.env', function () { | ||
function cleanup() { | ||
@@ -117,3 +117,3 @@ delete process.env.ESLINT_TEAMCITY_REPORTER; | ||
it('sets the report type', function() { | ||
it('sets the report type', function () { | ||
process.env.ESLINT_TEAMCITY_REPORTER = 'inspections'; | ||
@@ -126,3 +126,3 @@ const output = format(eslintInput); | ||
it('sets the report name', function() { | ||
it('sets the report name', function () { | ||
process.env.ESLINT_TEAMCITY_REPORT_NAME = 'process.env report'; | ||
@@ -134,3 +134,3 @@ const output = format(eslintInput); | ||
it('sets the error count name', function() { | ||
it('sets the error count name', function () { | ||
process.env.ESLINT_TEAMCITY_ERROR_STATISTICS_NAME = 'process.env errors'; | ||
@@ -143,3 +143,3 @@ const output = format(eslintInput); | ||
it('sets the warning count name', function() { | ||
it('sets the warning count name', function () { | ||
process.env.ESLINT_TEAMCITY_WARNING_STATISTICS_NAME = 'process.env warnings'; | ||
@@ -153,4 +153,4 @@ const output = format(eslintInput); | ||
context('defaults', function() { | ||
it('uses the error reporter', function() { | ||
context('defaults', function () { | ||
it('uses the error reporter', function () { | ||
const output = format(eslintInput); | ||
@@ -160,3 +160,3 @@ expect(output).to.include("##teamcity[testSuiteStarted name='ESLint Violations']"); | ||
it('sets the report name', function() { | ||
it('sets the report name', function () { | ||
const output = format(eslintInput); | ||
@@ -174,3 +174,3 @@ expect(output).to.include("##teamcity[testSuiteStarted name='ESLint Violations']"); | ||
it('sets the warning count name', function() { | ||
it('sets the warning count name', function () { | ||
const output = format(eslintInput); | ||
@@ -177,0 +177,0 @@ expect(output).to.include( |
@@ -13,16 +13,16 @@ /* global it, describe, beforeEach, afterEach */ | ||
describe('smoke tests', function() { | ||
describe('support interface', function() { | ||
describe('smoke tests', function () { | ||
describe('support interface', function () { | ||
let esLintOutput = []; | ||
beforeEach(function() { | ||
beforeEach(function () { | ||
esLintOutput.push(createDummyError()); | ||
}); | ||
afterEach(function() { | ||
afterEach(function () { | ||
esLintOutput = []; | ||
}); | ||
describe('cmd', function() { | ||
it('as eslint formatter plugin', function() { | ||
describe('cmd', function () { | ||
it('as eslint formatter plugin', function () { | ||
this.timeout(8000); | ||
@@ -33,3 +33,3 @@ const result = sh.exec(`eslint --format '${pathToIndex}' ${pathToIndex}`); | ||
it('as standalone', function() { | ||
it('as standalone', function () { | ||
fs.writeJSONSync(pathToTestJson, esLintOutput); | ||
@@ -44,4 +44,4 @@ const result = sh.exec(`cd ${basePath}; node index.js ${pathToTestJson}`); | ||
describe('requirejs', function() { | ||
it('basic', function() { | ||
describe('requirejs', function () { | ||
it('basic', function () { | ||
const result = require(pathToIndex)(esLintOutput); | ||
@@ -51,6 +51,6 @@ expect(result).to.contain('##teamcity'); | ||
it('with parameters', function() { | ||
it('with parameters', function () { | ||
const teamcityPropNames = { | ||
errorStatisticsName: 'EslintInspectionStatsE', | ||
warningStatisticsName: 'EslintInspectionStatsW' | ||
warningStatisticsName: 'EslintInspectionStatsW', | ||
}; | ||
@@ -57,0 +57,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
38148
+ Addedat-least-node@1.0.0(transitive)
+ Addedfs-extra@9.1.0(transitive)
+ Addedjsonfile@6.1.0(transitive)
+ Addeduniversalify@2.0.1(transitive)
- Removedfs-extra@8.1.0(transitive)
- Removedjsonfile@4.0.0(transitive)
- Removeduniversalify@0.1.2(transitive)
Updatedfs-extra@^9.0.x