Skip to content

Commit

Permalink
Fixed PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Jun 21, 2022
1 parent df05905 commit d4c3a4a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ module.exports = {
'no-extra-semi': 'off',
'@typescript-eslint/no-extra-semi': ['error'],
'no-dupe-class-members': 'off',
'no-redeclare': 'warn',
'@typescript-eslint/no-dupe-class-members': ['error'],
'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': ['error'],
'no-useless-constructor': 'warn',
'no-void': 'warn'
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
- name: Build
shell: bash
run: |
npm i
npm ci
npm run build
npm run lint
4 changes: 2 additions & 2 deletions packages/client/src/monaco-language-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export class MonacoLanguageClient extends BaseLanguageClient {
registrations: params.registrations.filter(registration => this.getFeature(<any>registration.method) != null)
});
};
const originalHandleUnregistrationRequest: (params: UnregistrationParams) => Promise<void> = this['handleRegistrationRequest'].bind(this);
this['handleRegistrationRequest'] = (params: UnregistrationParams) => {
const originalHandleUnregistrationRequest: (params: UnregistrationParams) => Promise<void> = this['handleUnregistrationRequest'].bind(this);
this['handleUnregistrationRequest'] = (params: UnregistrationParams) => {
originalHandleUnregistrationRequest({
...params,
unregisterations: params.unregisterations.filter(unregistration => this.getFeature(<any>unregistration.method) != null)
Expand Down
1 change: 1 addition & 0 deletions packages/examples/browser-lsp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"scripts": {
"clean": "npx shx rm -fr dist tsconfig.tsbuildinfo",
"lint": "echo 'No linting yet'",
"compile": "tsc",
"watch": "tsc -w",
"copy:monacoworkers": "shx mkdir -p dist && shx cp -r ../../../node_modules/monaco-editor-workers/dist/workers/editorWorker* ./dist",
Expand Down
1 change: 1 addition & 0 deletions packages/vscode-ws-jsonrpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
},
"scripts": {
"clean": "npx shx rm -fr lib tsconfig.tsbuildinfo",
"lint": "eslint src --ext .ts",
"compile": "tsc",
"watch": "tsc -w",
"build": "npm run clean && npm run compile"
Expand Down

0 comments on commit d4c3a4a

Please sign in to comment.