Skip to content

Commit 3f5520f

Browse files
authoredDec 18, 2021
Merge pull request #239 from MichaelDeBoey/patch-4
chore: update `eslint-plugin-eslint-plugin` to latest
2 parents ea6536b + 8dd426a commit 3f5520f

16 files changed

+6610
-10
lines changed
 

‎package-lock.json

+6,548-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"doctoc": "^2.1.0",
2828
"eslint": "^7.32.0",
2929
"eslint-config-prettier": "^8.3.0",
30-
"eslint-plugin-eslint-plugin": "^3.6.1",
30+
"eslint-plugin-eslint-plugin": "^4.1.0",
3131
"eslint-plugin-jest": "^25.3.0",
3232
"eslint-plugin-node": "^11.1.0",
3333
"eslint-plugin-prettier": "^3.4.1",

‎rules/always-return.js

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ module.exports = {
6262
docs: {
6363
url: getDocsUrl('always-return'),
6464
},
65+
schema: [],
6566
},
6667
create(context) {
6768
// funcInfoStack is a stack representing the stack of currently executing

‎rules/avoid-new.js

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = {
1313
docs: {
1414
url: getDocsUrl('avoid-new'),
1515
},
16+
schema: [],
1617
},
1718
create(context) {
1819
return {

‎rules/catch-or-return.js

+25
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,31 @@ module.exports = {
1818
messages: {
1919
terminationMethod: 'Expected {{ terminationMethod }}() or return',
2020
},
21+
schema: [
22+
{
23+
type: 'object',
24+
properties: {
25+
allowFinally: {
26+
type: 'boolean',
27+
},
28+
allowThen: {
29+
type: 'boolean',
30+
},
31+
terminationMethod: {
32+
oneOf: [
33+
{ type: 'string' },
34+
{
35+
type: 'array',
36+
items: {
37+
type: 'string',
38+
},
39+
},
40+
],
41+
},
42+
},
43+
additionalProperties: false,
44+
},
45+
],
2146
},
2247
create(context) {
2348
const options = context.options[0] || {}

‎rules/no-callback-in-promise.js

+14
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ module.exports = {
1919
messages: {
2020
callback: 'Avoid calling back inside of a promise.',
2121
},
22+
schema: [
23+
{
24+
type: 'object',
25+
properties: {
26+
exceptions: {
27+
type: 'array',
28+
items: {
29+
type: 'string',
30+
},
31+
},
32+
},
33+
additionalProperties: false,
34+
},
35+
],
2236
},
2337
create(context) {
2438
return {

‎rules/no-native.js

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ module.exports = {
3232
messages: {
3333
name: '"{{name}}" is not defined.',
3434
},
35+
schema: [],
3536
},
3637
create(context) {
3738
/**

‎rules/no-nesting.js

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module.exports = {
1515
docs: {
1616
url: getDocsUrl('no-nesting'),
1717
},
18+
schema: [],
1819
},
1920
create(context) {
2021
return {

‎rules/no-new-statics.js

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = {
1010
url: getDocsUrl('no-new-statics'),
1111
},
1212
fixable: 'code',
13+
schema: [],
1314
},
1415
create(context) {
1516
return {

‎rules/no-promise-in-callback.js

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module.exports = {
1515
docs: {
1616
url: getDocsUrl('no-promise-in-callback'),
1717
},
18+
schema: [],
1819
},
1920
create(context) {
2021
return {

‎rules/no-return-in-finally.js

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module.exports = {
99
docs: {
1010
url: getDocsUrl('no-return-in-finally'),
1111
},
12+
schema: [],
1213
},
1314
create(context) {
1415
return {

‎rules/no-return-wrap.js

+11
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ module.exports = {
4545
resolve: 'Avoid wrapping return values in Promise.resolve',
4646
reject: 'Expected throw instead of Promise.reject',
4747
},
48+
schema: [
49+
{
50+
type: 'object',
51+
properties: {
52+
allowReject: {
53+
type: 'boolean',
54+
},
55+
},
56+
additionalProperties: false,
57+
},
58+
],
4859
},
4960
create(context) {
5061
const options = context.options[0] || {}

‎rules/param-names.js

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
docs: {
99
url: getDocsUrl('param-names'),
1010
},
11+
schema: [],
1112
},
1213
create(context) {
1314
return {

‎rules/prefer-await-to-callbacks.js

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = {
1111
messages: {
1212
error: 'Avoid callbacks. Prefer Async/Await.',
1313
},
14+
schema: [],
1415
},
1516
create(context) {
1617
function checkLastParamsForCallback(node) {

‎rules/prefer-await-to-then.js

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = {
1313
docs: {
1414
url: getDocsUrl('prefer-await-to-then'),
1515
},
16+
schema: [],
1617
},
1718
create(context) {
1819
/** Returns true if node is inside yield or await expression. */

‎rules/valid-params.js

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = {
1111
'Ensures the proper number of arguments are passed to Promise functions',
1212
url: getDocsUrl('valid-params'),
1313
},
14+
schema: [],
1415
},
1516
create(context) {
1617
return {

0 commit comments

Comments
 (0)
Please sign in to comment.