Skip to content

Commit

Permalink
Merge branch 'main' into revert-153-revert-142-update-analytics-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomura committed Feb 28, 2025
2 parents aacae31 + 7723a98 commit abbe343
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,17 @@ module.exports = {
"args": "none",
"caughtErrors": "all",
"ignoreRestSiblings": false,
}],
}],
'brace-style': 'off',
'no-throw-literal': 'error',
'no-var': 'error',
'prefer-const': 'error',
'no-cond-assign': 'error',
'no-multi-assign': 'error',
'no-unused-expressions': ['error', {
"allowShortCircuit": true,
"allowTernary": true,
}],
curly: 'error',
eqeqeq: ['error', 'always'],
semi: 'off',
Expand Down
1 change: 1 addition & 0 deletions e2e/tests/auth.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-unused-expressions */
import { expect } from 'chai';
import { before, after, EditorView, Workbench, By, ActivityBar, SideBarView } from 'vscode-extension-tester';

Expand Down
1 change: 1 addition & 0 deletions e2e/tests/no-auth.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-unused-expressions */
import { expect } from 'chai';
import { before, ActivityBar, after, SideBarView, By, EditorView, Workbench } from 'vscode-extension-tester';

Expand Down
2 changes: 1 addition & 1 deletion src/bitbucket/bitbucket-server/pullRequests.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { AxiosResponse } from 'axios';

describe('ServerPullRequestApi', () => {
let api: ServerPullRequestApi;
let mockClient: HTTPClient = new HTTPClient('', '', '', async (errJson: AxiosResponse) => Error('some error'));
const mockClient: HTTPClient = new HTTPClient('', '', '', async (errJson: AxiosResponse) => Error('some error'));
let site: BitbucketSite;

beforeEach(() => {
Expand Down
5 changes: 5 additions & 0 deletions src/lib/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ module.exports = {
rules: {
'no-var': 'error',
'prefer-const': 'error',
'no-multi-assign': 'error',
'no-unused-expressions': ['error', {
"allowShortCircuit": true,
"allowTernary": true,
}],
'no-restricted-imports': [
'error',
{
Expand Down
5 changes: 5 additions & 0 deletions src/react/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ module.exports = {
rules: {
'no-var': 'error',
'prefer-const': 'error',
'no-multi-assign': 'error',
'no-unused-expressions': ['error', {
"allowShortCircuit": true,
"allowTernary": true,
}],
'no-restricted-imports': [
'error',
{
Expand Down
3 changes: 2 additions & 1 deletion src/webviews/components/issue/TextAreaEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export const TextAreaEditor: React.FC<Props> = ({ value, disabled, placeholder,

useEffect(() => {
if (inputTextAreaRef.current && cursorPosition > 0) {
inputTextAreaRef.current.selectionStart = inputTextAreaRef.current.selectionEnd = cursorPosition;
inputTextAreaRef.current.selectionEnd = cursorPosition;
inputTextAreaRef.current.selectionStart = cursorPosition;
inputTextAreaRef.current.focus();
}
}, [inputTextAreaRef, cursorPosition]);
Expand Down

0 comments on commit abbe343

Please sign in to comment.