File tree Expand file tree Collapse file tree 5 files changed +17
-30
lines changed Expand file tree Collapse file tree 5 files changed +17
-30
lines changed Original file line number Diff line number Diff line change 1
- import prettierConfig from 'eslint-config-prettier' ;
2
- import prettierPlugin from 'eslint-plugin-prettier' ;
3
- import globals from 'globals' ;
4
- import js from '@eslint/js' ;
1
+ import config from '@podium/eslint-config' ;
5
2
6
- export default [
7
- js . configs . recommended ,
8
- prettierConfig ,
9
- {
10
- plugins : {
11
- prettier : prettierPlugin ,
12
- } ,
13
- languageOptions : {
14
- globals : {
15
- ...globals . browser ,
16
- global : true ,
17
- } ,
18
- } ,
19
- } ,
20
- ] ;
3
+ export default config ;
Original file line number Diff line number Diff line change 35
35
"build" : " rollup -c" ,
36
36
"lint" : " eslint . --ignore-pattern '/dist/'" ,
37
37
"lint:fix" : " eslint --fix . --ignore-pattern '/dist/'" ,
38
- "test" : " tap --disable-coverage --allow-empty-coverage test/*.js && tsc --project tsconfig.test.json " ,
39
- "types" : " tsc --declaration --emitDeclarationOnly"
38
+ "test" : " tap --disable-coverage --allow-empty-coverage test/*.js" ,
39
+ "types" : " tsc --declaration --emitDeclarationOnly && tsc --project tsconfig.test.json "
40
40
},
41
41
"dependencies" : {
42
42
"@podium/bridge" : " ^1.2.2" ,
45
45
"devDependencies" : {
46
46
"@babel/core" : " 7.25.2" ,
47
47
"@babel/preset-env" : " 7.25.3" ,
48
+ "@podium/eslint-config" : " 1.0.0" ,
48
49
"@rollup/plugin-babel" : " 6.0.4" ,
49
50
"@rollup/plugin-commonjs" : " 25.0.8" ,
50
51
"@rollup/plugin-node-resolve" : " 15.2.3" ,
55
56
"@semantic-release/npm" : " 12.0.1" ,
56
57
"@semantic-release/release-notes-generator" : " 13.0.0" ,
57
58
"eslint" : " 9.4.0" ,
58
- "eslint-config-prettier" : " 9.1.0" ,
59
- "eslint-plugin-prettier" : " 5.1.3" ,
60
- "globals" : " 15.9.0" ,
61
59
"jsdom" : " 24.1.1" ,
62
60
"prettier" : " 3.2.5" ,
63
61
"rollup" : " 4.22.4" ,
Original file line number Diff line number Diff line change @@ -4,15 +4,19 @@ import resolve from '@rollup/plugin-node-resolve';
4
4
5
5
export default {
6
6
input : 'src/index.js' ,
7
- plugins : [ resolve ( ) , commonjs ( ) , getBabelOutputPlugin ( {
8
- presets : [ '@babel/preset-env' ]
9
- } ) ] ,
7
+ plugins : [
8
+ resolve ( ) ,
9
+ commonjs ( ) ,
10
+ getBabelOutputPlugin ( {
11
+ presets : [ '@babel/preset-env' ] ,
12
+ } ) ,
13
+ ] ,
10
14
output : [
11
15
{
12
16
exports : 'auto' ,
13
17
format : 'cjs' ,
14
18
dir : 'dist/' ,
15
19
preserveModules : true ,
16
- }
20
+ } ,
17
21
] ,
18
22
} ;
Original file line number Diff line number Diff line change @@ -137,8 +137,8 @@ export default class MessageBus {
137
137
const bridgeListener = ( message ) => {
138
138
const request =
139
139
/** @type {import("@podium/bridge").RpcRequest<T> } */ (
140
- message
141
- ) ;
140
+ message
141
+ ) ;
142
142
143
143
const event = new Event ( channel , topic , request . params ) ;
144
144
this . sink . push ( event ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ tap.beforeEach(() => {
25
25
bridge . destroy ( ) ;
26
26
}
27
27
28
+ // @ts -ignore
28
29
globalThis . window [ '@podium' ] = { } ;
30
+ // @ts -ignore
29
31
globalThis . window [ '@podium' ] . bridge = new PodiumBridge ( ) ;
30
32
bus = new MessageBus ( ) ;
31
33
} ) ;
You can’t perform that action at this time.
0 commit comments