eslint-plugin-mocha
Advanced tools
Comparing version 6.3.0 to 7.0.0
@@ -0,1 +1,15 @@ | ||
## 7.0.0 (May 13, 2020) | ||
### Breaking Changes | ||
* Drop support for ESLint < v7 and Node.js < v10 ([#247](https://github.com/lo1tuma/eslint-plugin-mocha/pull/247)) | ||
### Enhancements | ||
* Add `meta.type` and missing `fixable: 'code'` ([#245](https://github.com/lo1tuma/eslint-plugin-mocha/pull/245)) | ||
### Dependency Upgrades | ||
* Updates of devDependencies ([#246](https://github.com/lo1tuma/eslint-plugin-mocha/pull/246)) | ||
## 6.3.0 (February 19, 2020) | ||
@@ -2,0 +16,0 @@ |
@@ -7,2 +7,5 @@ 'use strict'; | ||
module.exports = { | ||
meta: { | ||
type: 'problem' | ||
}, | ||
create(context) { | ||
@@ -9,0 +12,0 @@ function isAsyncFunction(functionExpression) { |
@@ -16,2 +16,3 @@ 'use strict'; | ||
meta: { | ||
type: 'suggestion', | ||
schema: [ | ||
@@ -18,0 +19,0 @@ { |
@@ -14,2 +14,3 @@ 'use strict'; | ||
meta: { | ||
type: 'problem', | ||
fixable: 'code' | ||
@@ -16,0 +17,0 @@ }, |
@@ -7,2 +7,5 @@ 'use strict'; | ||
module.exports = { | ||
meta: { | ||
type: 'problem' | ||
}, | ||
create(context) { | ||
@@ -9,0 +12,0 @@ let mochaTestFunctions = [ |
@@ -6,2 +6,5 @@ 'use strict'; | ||
module.exports = { | ||
meta: { | ||
type: 'suggestion' | ||
}, | ||
create(context) { | ||
@@ -8,0 +11,0 @@ function isGlobalScope(scope) { |
@@ -16,2 +16,3 @@ 'use strict'; | ||
meta: { | ||
type: 'suggestion', | ||
schema: [ | ||
@@ -18,0 +19,0 @@ { |
@@ -7,2 +7,3 @@ 'use strict'; | ||
meta: { | ||
type: 'suggestion', | ||
schema: [ | ||
@@ -9,0 +10,0 @@ { |
@@ -45,2 +45,5 @@ 'use strict'; | ||
module.exports = { | ||
meta: { | ||
type: 'suggestion' | ||
}, | ||
create(context) { | ||
@@ -47,0 +50,0 @@ const titleLayers = [ newLayer() ]; |
@@ -13,2 +13,3 @@ 'use strict'; | ||
meta: { | ||
type: 'suggestion', | ||
fixable: 'code' | ||
@@ -33,3 +34,3 @@ }, | ||
if (fn.params.length > 0) { | ||
paramsFullText = `(${ sourceCode.text.slice(fn.params[0].start, last(fn.params).end) })`; | ||
paramsFullText = `(${ sourceCode.text.slice(fn.params[0].range[0], last(fn.params).range[1]) })`; | ||
} | ||
@@ -45,3 +46,3 @@ | ||
return fixer.replaceTextRange( | ||
[ fn.start, fn.body.start ], | ||
[ fn.range[0], fn.body.range[0] ], | ||
formatFunctionHead(fn) | ||
@@ -53,3 +54,3 @@ ); | ||
return fixer.replaceTextRange( | ||
[ fn.start, fn.end ], | ||
[ fn.range[0], fn.range[1] ], | ||
`${formatFunctionHead(fn)}{ return ${ bodyText }; }` | ||
@@ -56,0 +57,0 @@ ); |
@@ -9,2 +9,5 @@ 'use strict'; | ||
module.exports = { | ||
meta: { | ||
type: 'problem' | ||
}, | ||
create(context) { | ||
@@ -11,0 +14,0 @@ const settings = context.settings; |
@@ -6,2 +6,5 @@ 'use strict'; | ||
module.exports = { | ||
meta: { | ||
type: 'suggestion' | ||
}, | ||
create(context) { | ||
@@ -8,0 +11,0 @@ function isPendingMochaTest(node) { |
@@ -43,2 +43,5 @@ 'use strict'; | ||
module.exports = { | ||
meta: { | ||
type: 'problem' | ||
}, | ||
create(context) { | ||
@@ -45,0 +48,0 @@ function check(node) { |
@@ -37,2 +37,5 @@ 'use strict'; | ||
module.exports = { | ||
meta: { | ||
type: 'suggestion' | ||
}, | ||
create(context) { | ||
@@ -39,0 +42,0 @@ function check(node) { |
@@ -12,2 +12,5 @@ 'use strict'; | ||
module.exports = { | ||
meta: { | ||
type: 'suggestion' | ||
}, | ||
create(context) { | ||
@@ -14,0 +17,0 @@ const nesting = []; |
@@ -17,2 +17,5 @@ 'use strict'; | ||
module.exports = { | ||
meta: { | ||
type: 'suggestion' | ||
}, | ||
create(context) { | ||
@@ -19,0 +22,0 @@ const isUsed = []; |
@@ -50,2 +50,6 @@ 'use strict'; | ||
module.exports = { | ||
meta: { | ||
fixable: 'code', | ||
type: 'problem' | ||
}, | ||
create(context) { | ||
@@ -52,0 +56,0 @@ const settings = context.settings; |
@@ -40,2 +40,3 @@ 'use strict'; | ||
meta: { | ||
type: 'suggestion', | ||
schema: [ | ||
@@ -42,0 +43,0 @@ { |
@@ -7,2 +7,5 @@ 'use strict'; | ||
module.exports = { | ||
meta: { | ||
type: 'problem' | ||
}, | ||
create(context) { | ||
@@ -9,0 +12,0 @@ const settings = context.settings; |
@@ -156,2 +156,4 @@ 'use strict'; | ||
meta: { | ||
type: 'suggestion', | ||
docs: { | ||
@@ -158,0 +160,0 @@ description: 'require using arrow functions for callbacks', |
@@ -51,2 +51,3 @@ 'use strict'; | ||
meta: { | ||
type: 'suggestion', | ||
schema: [ | ||
@@ -53,0 +54,0 @@ { |
@@ -50,2 +50,3 @@ 'use strict'; | ||
meta: { | ||
type: 'suggestion', | ||
schema: [ | ||
@@ -52,0 +53,0 @@ { |
{ | ||
"name": "eslint-plugin-mocha", | ||
"version": "6.3.0", | ||
"version": "7.0.0", | ||
"description": "Eslint rules for mocha.", | ||
"engines": { | ||
"node": ">=8.0.0" | ||
"node": ">=10.0.0" | ||
}, | ||
@@ -30,12 +30,12 @@ "main": "index.js", | ||
"chai": "^4.2.0", | ||
"coveralls": "^3.0.9", | ||
"eslint": "^6.8.0", | ||
"coveralls": "^3.1.0", | ||
"eslint": "^7.0.0", | ||
"eslint-config-holidaycheck": "^0.13.1", | ||
"eslint-plugin-node": "^11.0.0", | ||
"mocha": "^7.0.1", | ||
"nyc": "^15.0.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"mocha": "^7.1.2", | ||
"nyc": "^15.0.1", | ||
"pr-log": "^4.0.0" | ||
}, | ||
"peerDependencies": { | ||
"eslint": ">= 4.0.0" | ||
"eslint": ">=7.0.0" | ||
}, | ||
@@ -69,2 +69,3 @@ "repository": { | ||
"exclude": [ | ||
".ncurc.js", | ||
"build", | ||
@@ -71,0 +72,0 @@ "test", |
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
76884
1621