Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update eslint-plugin-eslint-plugin to latest #239

Merged
merged 1 commit into from Dec 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6,557 changes: 6,548 additions & 9 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -27,7 +27,7 @@
"doctoc": "^2.1.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-eslint-plugin": "^3.6.1",
"eslint-plugin-eslint-plugin": "^4.1.0",
"eslint-plugin-jest": "^25.3.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.4.1",
Expand Down
1 change: 1 addition & 0 deletions rules/always-return.js
Expand Up @@ -62,6 +62,7 @@ module.exports = {
docs: {
url: getDocsUrl('always-return'),
},
schema: [],
},
create(context) {
// funcInfoStack is a stack representing the stack of currently executing
Expand Down
1 change: 1 addition & 0 deletions rules/avoid-new.js
Expand Up @@ -13,6 +13,7 @@ module.exports = {
docs: {
url: getDocsUrl('avoid-new'),
},
schema: [],
},
create(context) {
return {
Expand Down
25 changes: 25 additions & 0 deletions rules/catch-or-return.js
Expand Up @@ -18,6 +18,31 @@ module.exports = {
messages: {
terminationMethod: 'Expected {{ terminationMethod }}() or return',
},
schema: [
{
type: 'object',
properties: {
allowFinally: {
type: 'boolean',
},
allowThen: {
type: 'boolean',
},
terminationMethod: {
oneOf: [
{ type: 'string' },
{
type: 'array',
items: {
type: 'string',
},
},
],
},
},
additionalProperties: false,
},
],
},
create(context) {
const options = context.options[0] || {}
Expand Down
14 changes: 14 additions & 0 deletions rules/no-callback-in-promise.js
Expand Up @@ -19,6 +19,20 @@ module.exports = {
messages: {
callback: 'Avoid calling back inside of a promise.',
},
schema: [
{
type: 'object',
properties: {
exceptions: {
type: 'array',
items: {
type: 'string',
},
},
},
additionalProperties: false,
},
],
},
create(context) {
return {
Expand Down
1 change: 1 addition & 0 deletions rules/no-native.js
Expand Up @@ -32,6 +32,7 @@ module.exports = {
messages: {
name: '"{{name}}" is not defined.',
},
schema: [],
},
create(context) {
/**
Expand Down
1 change: 1 addition & 0 deletions rules/no-nesting.js
Expand Up @@ -15,6 +15,7 @@ module.exports = {
docs: {
url: getDocsUrl('no-nesting'),
},
schema: [],
},
create(context) {
return {
Expand Down
1 change: 1 addition & 0 deletions rules/no-new-statics.js
Expand Up @@ -10,6 +10,7 @@ module.exports = {
url: getDocsUrl('no-new-statics'),
},
fixable: 'code',
schema: [],
},
create(context) {
return {
Expand Down
1 change: 1 addition & 0 deletions rules/no-promise-in-callback.js
Expand Up @@ -15,6 +15,7 @@ module.exports = {
docs: {
url: getDocsUrl('no-promise-in-callback'),
},
schema: [],
},
create(context) {
return {
Expand Down
1 change: 1 addition & 0 deletions rules/no-return-in-finally.js
Expand Up @@ -9,6 +9,7 @@ module.exports = {
docs: {
url: getDocsUrl('no-return-in-finally'),
},
schema: [],
},
create(context) {
return {
Expand Down
11 changes: 11 additions & 0 deletions rules/no-return-wrap.js
Expand Up @@ -45,6 +45,17 @@ module.exports = {
resolve: 'Avoid wrapping return values in Promise.resolve',
reject: 'Expected throw instead of Promise.reject',
},
schema: [
{
type: 'object',
properties: {
allowReject: {
type: 'boolean',
},
},
additionalProperties: false,
},
],
},
create(context) {
const options = context.options[0] || {}
Expand Down
1 change: 1 addition & 0 deletions rules/param-names.js
Expand Up @@ -8,6 +8,7 @@ module.exports = {
docs: {
url: getDocsUrl('param-names'),
},
schema: [],
},
create(context) {
return {
Expand Down
1 change: 1 addition & 0 deletions rules/prefer-await-to-callbacks.js
Expand Up @@ -11,6 +11,7 @@ module.exports = {
messages: {
error: 'Avoid callbacks. Prefer Async/Await.',
},
schema: [],
},
create(context) {
function checkLastParamsForCallback(node) {
Expand Down
1 change: 1 addition & 0 deletions rules/prefer-await-to-then.js
Expand Up @@ -13,6 +13,7 @@ module.exports = {
docs: {
url: getDocsUrl('prefer-await-to-then'),
},
schema: [],
},
create(context) {
/** Returns true if node is inside yield or await expression. */
Expand Down
1 change: 1 addition & 0 deletions rules/valid-params.js
Expand Up @@ -11,6 +11,7 @@ module.exports = {
'Ensures the proper number of arguments are passed to Promise functions',
url: getDocsUrl('valid-params'),
},
schema: [],
},
create(context) {
return {
Expand Down