Skip to content

Commit

Permalink
fix: fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
jairo-bc committed Sep 12, 2024
1 parent 6c53ecc commit 1c75e89
Show file tree
Hide file tree
Showing 4 changed files with 4,479 additions and 17,434 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
// "impliedStrict": true
"impliedStrict": true
},
"ecmaVersion": "2021"
},
Expand Down
1 change: 1 addition & 0 deletions lib/release/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import os from 'os';
import uuid from 'uuid4';
import fsModule from 'fs';
import path from 'path';
// eslint-disable-next-line import/no-unresolved, node/no-missing-import
import { Octokit as octokitModule } from '@octokit/rest';
import simpleGit from 'simple-git';
import ThemeConfig from '../theme-config.js';
Expand Down
13 changes: 7 additions & 6 deletions lib/release/release.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,13 @@ All notable changes to this project will be documented in this file.
error: jest.fn(),
warning: jest.fn(),
});
const getOctokitStub = () => jest.fn().mockImplementation(() => ({
repos: {
uploadReleaseAsset: jest.fn().mockResolvedValue(uploadReleaseAssetData),
createRelease: jest.fn().mockResolvedValue(releaseData),
},
}));
const getOctokitStub = () =>
jest.fn().mockImplementation(() => ({
repos: {
uploadReleaseAsset: jest.fn().mockResolvedValue(uploadReleaseAssetData),
createRelease: jest.fn().mockResolvedValue(releaseData),
},
}));
const createStencilReleaseInstance = (passedArgs) => {
const defaultMocks = {
git: getGitStub(),
Expand Down
Loading

0 comments on commit 1c75e89

Please sign in to comment.