فهرست منبع

fix eslint settings

Yuki Takei 4 سال پیش
والد
کامیت
74e74d0910
3فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 0 1
      packages/slack/.eslintrc.js
  2. 0 1
      packages/slackbot-proxy/.eslintrc.js
  3. 1 1
      packages/slackbot-proxy/src/controllers/slack.ts

+ 0 - 1
packages/slack/.eslintrc.js

@@ -6,7 +6,6 @@ module.exports = {
     'plugin:jest/recommended',
     'plugin:jest/recommended',
   ],
   ],
   env: {
   env: {
-    jquery: true,
     'jest/globals': true,
     'jest/globals': true,
   },
   },
   globals: {
   globals: {

+ 0 - 1
packages/slackbot-proxy/.eslintrc.js

@@ -6,7 +6,6 @@ module.exports = {
     'plugin:jest/recommended',
     'plugin:jest/recommended',
   ],
   ],
   env: {
   env: {
-    jquery: true,
     'jest/globals': true,
     'jest/globals': true,
   },
   },
   globals: {
   globals: {

+ 1 - 1
packages/slackbot-proxy/src/controllers/slack.ts

@@ -256,7 +256,7 @@ export class SlackCtrl {
   }
   }
 
 
   @Post('/events')
   @Post('/events')
-  async handleEvent(@BodyParams() body:{[key:string]:string}, @Res() res: Res): Promise<void|string> {
+  async handleEvent(@BodyParams() body:{[key:string]:string} /* , @Res() res: Res */): Promise<void|string> {
     // eslint-disable-next-line max-len
     // eslint-disable-next-line max-len
     // see: https://api.slack.com/apis/connections/events-api#the-events-api__subscribing-to-event-types__events-api-request-urls__request-url-configuration--verification
     // see: https://api.slack.com/apis/connections/events-api#the-events-api__subscribing-to-event-types__events-api-request-urls__request-url-configuration--verification
     if (body.type === 'url_verification') {
     if (body.type === 'url_verification') {