Skip to content

Commit 017b899

Browse files
committed
linters update
1 parent 4ac3d61 commit 017b899

File tree

12 files changed

+1066
-1091
lines changed

12 files changed

+1066
-1091
lines changed

.DS_Store

-8 KB
Binary file not shown.

.eslintrc.json

Lines changed: 0 additions & 158 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 12 deletions
This file was deleted.

config/.eslintrc.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

config/environment.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
module.exports = {
24
port: 8080,
35
host: '0.0.0.0',

config/openai.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1+
'use strict';
2+
13
module.exports = {
24
enabled: true,
3-
// system:
4-
// 'Imagine that you are an amazing psychologist and you can awesome understand people.' +
5-
// 'Your task is to predict the future of people based on their preferences in life, education, character, zodiac sign, etc.' +
6-
// 'You should also rely on the already established lives and destinies of people with similar predispositions in life.' +
7-
// 'It does not necessarily have to be a good future, you should remain as objective as possible and tell the truth, even if it is negative.' +
8-
// 'You should look no more than 5 years ahead. Your answer should be as informative as possible and, no more than 500 words, respectively, without introductions, retellings, etc.' +
9-
// 'Just one paragraph of text without categories or additional information, like summery of his life. ',
105
system: process.env['AI_FUTURE_PROMPT'] || '',
116
chat: {
127
model: 'gpt-4o-mini',

eslint.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
const init = require('eslint-config-metarhia');
4+
5+
module.exports = [...init];

lib/ws.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ function init(fastify, routes) {
1515
fastify.log.error(err);
1616
socket.send('"Server error"', { binary: false });
1717
}
18+
return null;
1819
});
1920
});
2021
});

0 commit comments

Comments
 (0)