platinumazure on master
Fix: false positive for tests i… (compare)
no-arrow-tests
and require-expect
new rules. Please open an issue if you run into any bugs.
eslint-plugin-qunit@0.9.0
, which fixes two no-negated-ok
issues and adds the last of the new rules for QUnit 2.0 migration. Next release will probably be a major release and will come with an ESLint peer dependency bump and a shareable config to enable all the QUnit 2.0 migration rules.
npm test
seems to run the changelog script.
npm unit-test
test seemed to hit the script as well.
~ projects platinumazure eslint-plugin-qunit require-expect-one-error-per-test $ npm i
~ projects platinumazure eslint-plugin-qunit require-expect-one-error-per-test $ npm test
> eslint-plugin-qunit@0.9.0 test /Users/llomitch/projects/platinumazure/eslint-plugin-qunit
> npm run lint && npm run unit-test --coverage && npm run check-coverage
> eslint-plugin-qunit@0.9.0 lint /Users/llomitch/projects/platinumazure/eslint-plugin-qunit
> eslint ./
> eslint-plugin-qunit@0.9.0 unit-test /Users/llomitch/projects/platinumazure/eslint-plugin-qunit
> istanbul cover --include-all-sources --dir build/coverage -x build/** --report lcovonly node_modules/mocha/bin/_mocha tests/**/*.js -- --recursive
=============================================================================
Writing coverage object [/Users/llomitch/projects/platinumazure/eslint-plugin-qunit/build/coverage/coverage.json]
Writing coverage reports at [/Users/llomitch/projects/platinumazure/eslint-plugin-qunit/build/coverage]
=============================================================================
=============================== Coverage summary ===============================
Statements : 5.76% ( 33/573 ), 25 ignored
Branches : 15.4% ( 71/461 ), 71 ignored
Functions : 1.28% ( 2/156 )
Lines : 5.76% ( 33/573 )
================================================================================
/Users/llomitch/projects/platinumazure/eslint-plugin-qunit/build/generate-release-changelog.js:9
__cov_nCxX4vthq_HmwHZhe_dWnA.s['1']++;var shelljs=require('shelljs'),semver=require('semver'),VERSION=require('../package.json').version;function execSilent(command){__cov_nCxX4vthq_HmwHZhe_dWnA.f['1']++;__cov_nCxX4vthq_HmwHZhe_dWnA.s['3']++;return shelljs.exec(command,{silent:true}).stdout;}__cov_nCxX4vthq_HmwHZhe_dWnA.s['4']++;var lastTag=execSilent('git tag').trim().split('\n').filter(semver.valid).sort(semver.compare).pop();__cov_nCxX4vthq_HmwHZhe_dWnA.s['5']++;var releaseCommitMessage=/^\* \d+\.\d+\.\d+/;__cov_nCxX4vthq_HmwHZhe_dWnA.s['6']++;var logs=execSilent('git log --no-merges --pretty=format:"* %s (%an)" '+lastTag+'..HEAD').split(/\n/g).filter(function(line){__cov_nCxX4vthq_HmwHZhe_dWnA.f['2']++;__cov_nCxX4vthq_HmwHZhe_dWnA.s['7']++;return!releaseCommitMessage.test(line);});__cov_nCxX4vthq_HmwHZhe_dWnA.s['8']++;('### '+VERSION+'\n').to('CHANGELOG.tmp');__cov_nCxX4vthq_HmwHZhe_dWnA.s['9']++;logs.join('
TypeError: (("### " + VERSION) + "
").to is not a function
at Object.<anonymous> (/Users/llomitch/projects/platinumazure/eslint-plugin-qunit/build/generate-release-changelog.js:9:857)
at Module._compile (module.js:409:26)
at Object.Module._extensions.(anonymous function) [as .js] (/Users/llomitch/projects/platinumazure/eslint-plugin-qunit/node_modules/istanbul/lib/hook.js:107:24)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at runFn (/Users/llomitch/projects/platinumazure/eslint-plugin-qunit/node_modules/istanbul/lib/command/common/run-with-cover.js:122:16)
at /Users/llomitch/projects/platinumazure/eslint-plugin-qunit/node_modules/istanbul/lib/command/common/run-with-cover.js:251:17
at /Users/llomitch/projects/platinumazure/eslint-plugin-qunit/node_modules/istanbul/lib/util/file-matcher.js:68:16
at /Users/llomitch/projects/platinumazure/eslint-plugin-qunit/node_modules/istanbul/node_modules/async/lib/async.js:52:16
npm test
with that version of the code and let me know if things break for you again?
npm test
in Windows cmd.exe.
eslint-plugin-qunit@1.0.0-rc0
, which is a release candidate for 1.0.0. It contains two plugin-exported configs: "two" to turn on the QUnit 2.0 enforcement rules, and "recommended" for my personal list of recommended rules. Your configurations can inherit from one or both. Try it out with npm install eslint-plugin-qunit@next
.
eslint-plugin-qunit@1.0.0
. This is a major release which introduces shareable configs but bumps the ESLint peerDependency requirement to ^2.8.0. In addition, we added a new QUnit 2.0 rule "no-test-expect-argument" and we made "require-expect" less noisy. Please open issues if you see problems with the new release.
eslint-plugin-qunit@3.0.0
, which has some new recommended rules and drops support for Node versions below 4.0. In addition, the ESLint peerDependency requirement is >=3.18.0 since we are using AST selectors in a few rules.
eslint-plugin-qunit@3.2.0
, which is just a minor release but which expands ESLint peerDependency support to include eslint@4.x
. (There were no breaking changes in the ESLint major release that should have affected end users of this plugin, but please do open issues if you do run into problems.)