Skip to content

Commit 3f5520f

Browse files
authored
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

Lines changed: 6548 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 25 additions & 0 deletions
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

Lines changed: 14 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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 {

0 commit comments

Comments
 (0)