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

Package maintenance #504

Merged
merged 5 commits into from
Aug 27, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .eslintrc.json

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Testing CI

on: pull_request

jobs:
build:
runs-on: ${{ matrix.os }}
Expand All @@ -11,6 +9,7 @@ jobs:
- 18
- 20
- 21
- 22
os:
- ubuntu-latest
- windows-latest
Expand Down
10 changes: 0 additions & 10 deletions .prettierrc

This file was deleted.

13 changes: 13 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'use strict';

const init = require('eslint-config-metarhia');

module.exports = [
...init,
{
files: ['dist/**/*.js'],
languageOptions: {
sourceType: 'module',
},
},
];
7 changes: 4 additions & 3 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ const DEFAULT_LISTEN_RETRY = 3;
const createProxy = (data, save) =>
new Proxy(data, {
get: (data, key) => {
return Reflect.get(data, key);
const value = Reflect.get(data, key);
return value;
},
set: (data, key, value) => {
const res = Reflect.set(data, key, value);
const success = Reflect.set(data, key, value);
if (save) save(data);
return res;
return success;
},
});

Expand Down
Loading
Loading