Skip to content

Commit

Permalink
chore: use shared eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud committed Sep 27, 2024
1 parent 2a37ff4 commit 4aecc8a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 36 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

21 changes: 0 additions & 21 deletions .eslintrc

This file was deleted.

3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import config from '@podium/eslint-config';

export default config;
2 changes: 1 addition & 1 deletion example/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const layout = new Layout({

const podlet = layout.client.register({
name: 'myPodlet',
uri: 'http://localhost:7100/manifest.json'
uri: 'http://localhost:7100/manifest.json',
});

app.register({
Expand Down
4 changes: 2 additions & 2 deletions lib/layout-plugin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { HttpIncoming } from '@podium/utils';
import { readFileSync } from 'node:fs';

const pkg = readFileSync(new URL('../package.json', import.meta.url))
const pkg = readFileSync(new URL('../package.json', import.meta.url));

const PodiumLayoutHapiPlugin = class PodiumLayoutHapiPlugin {
constructor() {
Expand Down Expand Up @@ -49,7 +49,7 @@ const PodiumLayoutHapiPlugin = class PodiumLayoutHapiPlugin {
});

// Decorate response with .podiumSend() method
// eslint-disable-next-line func-names

server.decorate('toolkit', 'podiumSend', function (fragment) {
return layout.render(this.request.app.podium, fragment);
});
Expand Down
16 changes: 6 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,16 @@
"@podium/utils": "5.3.1"
},
"devDependencies": {
"@podium/layout": "5.0.2",
"@podium/utils": "5.1.0",
"@hapi/hapi": "21.3.10",
"@podium/eslint-config": "1.0.0",
"@podium/layout": "5.0.2",
"@podium/test-utils": "2.5.2",
"@podium/utils": "5.1.0",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/git": "10.0.1",
"eslint": "8.57.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-prettier": "5.2.1",
"semantic-release": "22.0.12",
"eslint": "9.11.1",
"prettier": "3.3.3",
"tap": "18.8.0",
"@babel/eslint-parser": "7.25.1"
"semantic-release": "22.0.12",
"tap": "18.8.0"
}
}

0 comments on commit 4aecc8a

Please sign in to comment.