1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-24 17:23:23 +03:00

chore: re-enable linter on commit

This commit is contained in:
louistiti 2023-04-03 22:29:21 +08:00
parent 2115054de6
commit 9fa0c2e1ba
No known key found for this signature in database
GPG Key ID: 92CD6A2E497E1669
5 changed files with 21 additions and 42 deletions

1
.gitignore vendored
View File

@ -26,7 +26,6 @@ tcp_server/src/Pipfile.lock
!tcp_server/**/.gitkeep
!bridges/python/**/.gitkeep
!**/*.sample*
server/src/core/http-server/old-server.js
packages/**/config/config.json
skills/**/src/config.json
packages/**/data/db/*.json

View File

@ -1,5 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
# TODO: add lint-staged back in when JavaScript to TypeScript is complete
# npx lint-staged
npx lint-staged

View File

@ -3,10 +3,7 @@
{
"method": "POST",
"route": "/api/action/news/github_trends/run",
"params": [
"number",
"daterange"
],
"params": ["number", "daterange"],
"entitiesType": "builtIn"
},
{
@ -17,9 +14,7 @@
{
"method": "POST",
"route": "/api/action/productivity/todo_list/create_list",
"params": [
"list"
],
"params": ["list"],
"entitiesType": "trim"
},
{
@ -30,53 +25,37 @@
{
"method": "POST",
"route": "/api/action/productivity/todo_list/view_list",
"params": [
"list"
],
"params": ["list"],
"entitiesType": "trim"
},
{
"method": "POST",
"route": "/api/action/productivity/todo_list/rename_list",
"params": [
"old_list",
"new_list"
],
"params": ["old_list", "new_list"],
"entitiesType": "trim"
},
{
"method": "POST",
"route": "/api/action/productivity/todo_list/delete_list",
"params": [
"list"
],
"params": ["list"],
"entitiesType": "trim"
},
{
"method": "POST",
"route": "/api/action/productivity/todo_list/add_todos",
"params": [
"todos",
"list"
],
"params": ["todos", "list"],
"entitiesType": "trim"
},
{
"method": "POST",
"route": "/api/action/productivity/todo_list/complete_todos",
"params": [
"todos",
"list"
],
"params": ["todos", "list"],
"entitiesType": "trim"
},
{
"method": "POST",
"route": "/api/action/productivity/todo_list/uncheck_todos",
"params": [
"todos",
"list"
],
"params": ["todos", "list"],
"entitiesType": "trim"
},
{
@ -97,9 +76,7 @@
{
"method": "POST",
"route": "/api/action/utilities/is_it_down/run",
"params": [
"url"
],
"params": ["url"],
"entitiesType": "builtIn"
},
{
@ -115,9 +92,7 @@
{
"method": "POST",
"route": "/api/action/games/akinator/choose_thematic",
"params": [
"thematic"
],
"params": ["thematic"],
"entitiesType": "trim"
},
{
@ -158,9 +133,7 @@
{
"method": "POST",
"route": "/api/action/games/rochambeau/play",
"params": [
"handsign"
],
"params": ["handsign"],
"entitiesType": "trim"
},
{
@ -234,4 +207,4 @@
"params": []
}
]
}
}

View File

@ -1,3 +1,7 @@
/* eslint-disable */
// TODO: delete this file once multi clients are reimplemented
import { join } from 'node:path'
import Fastify from 'fastify'

View File

@ -1,3 +1,7 @@
/* eslint-disable */
// TODO: remove the synchronization capability
import fs from 'node:fs'
import path from 'node:path'