Skip to content

Commit da454ae

Browse files
committed
fix: lint, build
1 parent aeea24c commit da454ae

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

packages/decap-cms-backend-gitea/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"semaphore": "^1.1.0"
2424
},
2525
"peerDependencies": {
26-
"@emotion/core": "^10.0.35",
27-
"@emotion/styled": "^10.0.27",
26+
"@emotion/react": "^11.11.1",
27+
"@emotion/styled": "^11.11.0",
2828
"immutable": "^3.7.6",
2929
"lodash": "^4.17.11",
3030
"decap-cms-lib-auth": "^3.0.0",

packages/decap-cms-backend-gitea/src/API.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ import {
1212
unsentRequest,
1313
} from 'decap-cms-lib-util';
1414

15-
import type { DataFile, PersistOptions, AssetProxy, ApiRequest, FetchError } from 'decap-cms-lib-util';
15+
import type {
16+
DataFile,
17+
PersistOptions,
18+
AssetProxy,
19+
ApiRequest,
20+
FetchError,
21+
} from 'decap-cms-lib-util';
1622
import type { Semaphore } from 'semaphore';
1723
import type {
1824
FilesResponse,

packages/decap-cms-backend-gitea/src/__tests__/implementation.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ describe('gitea backend implementation', () => {
2121

2222
beforeAll(() => {
2323
// eslint-disable-next-line @typescript-eslint/no-empty-function
24-
2524
});
2625

2726
beforeEach(() => {

packages/decap-cms-backend-gitea/src/implementation.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default class Gitea implements Implementation {
7777
}
7878

7979
if (this.options.useWorkflow) {
80-
throw new Error('The Gitea backend does not support editorial workflow.')
80+
throw new Error('The Gitea backend does not support editorial workflow.');
8181
}
8282

8383
this.api = this.options.API || null;
@@ -430,21 +430,21 @@ export default class Gitea implements Implementation {
430430
async unpublishedEntryMediaFile() {
431431
// eslint-disable-next-line @typescript-eslint/no-explicit-any
432432
return {} as any;
433-
};
433+
}
434434

435435
async updateUnpublishedEntryStatus() {
436436
return;
437-
};
437+
}
438438

439439
async publishUnpublishedEntry() {
440440
return;
441-
};
441+
}
442442
async deleteUnpublishedEntry() {
443443
return;
444-
};
444+
}
445445

446446
async getDeployPreview() {
447447
// eslint-disable-next-line @typescript-eslint/no-explicit-any
448448
return {} as any;
449-
};
449+
}
450450
}

packages/decap-cms-lib-auth/src/pkce-oauth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export default class PkceAuthenticator {
120120
},
121121
});
122122
const data = await response.json();
123-
123+
124124
//no need for verifier code so remove
125125
clearCodeVerifier();
126126

0 commit comments

Comments
 (0)