Skip to content

Commit 32e9c7e

Browse files
committed
chore: update eslint-plugin-eslint-plugin to latest
1 parent 7ac06ac commit 32e9c7e

16 files changed

+126
-12
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
"doctoc": "^2.0.0",
2828
"eslint": "^7.23.0",
2929
"eslint-config-prettier": "^8.1.0",
30-
"eslint-plugin-eslint-plugin": "^3.0.0",
30+
"eslint-plugin-eslint-plugin": "^4.0.2",
3131
"eslint-plugin-jest": "^24.3.4",
3232
"eslint-plugin-node": "^11.1.0",
3333
"eslint-plugin-prettier": "^3.3.1",
3434
"husky": "^6.0.0",
3535
"jest": "^26.6.3",
3636
"jest-runner-eslint": "^0.10.0",
3737
"lint-staged": "^10.5.4",
38-
"prettier": "^2.2.1"
38+
"prettier": "2.2.1"
3939
},
4040
"peerDependencies": {
4141
"eslint": "^7.0.0"

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)