From 17e59fa5f0d0a43e07c191cbd24fbdbca0ca401b Mon Sep 17 00:00:00 2001 From: Svyat Sobol Date: Fri, 7 Jan 2022 21:37:21 +0200 Subject: [PATCH] chore: Remove @typescript-eslint/naming-convention eslint rule --- .eslintrc.json | 1 - src/test/env/ExtendedVscodeEnvironment.js | 1 - src/utils/utils.spec.ts | 2 -- src/utils/utils.ts | 2 -- 4 files changed, 6 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 20de2033..849f68c5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -69,7 +69,6 @@ "@typescript-eslint/indent": 0, "@typescript-eslint/consistent-type-definitions": ["error", "type"], "@typescript-eslint/explicit-module-boundary-types": 0, - "@typescript-eslint/naming-convention": "warn", "@typescript-eslint/semi": "warn" } } diff --git a/src/test/env/ExtendedVscodeEnvironment.js b/src/test/env/ExtendedVscodeEnvironment.js index 6158483c..3e599d2e 100644 --- a/src/test/env/ExtendedVscodeEnvironment.js +++ b/src/test/env/ExtendedVscodeEnvironment.js @@ -1,4 +1,3 @@ -// eslint-disable-next-line @typescript-eslint/naming-convention const VscodeEnvironment = require('jest-environment-vscode'); class ExtendedVscodeEnvironment extends VscodeEnvironment { diff --git a/src/utils/utils.spec.ts b/src/utils/utils.spec.ts index 2a9f2f20..4862cd49 100644 --- a/src/utils/utils.spec.ts +++ b/src/utils/utils.spec.ts @@ -1696,7 +1696,6 @@ describe('findNonIgnoredFiles()', () => { it('should find non-ignored files', async () => { const prevConfig = getConfigProperty('search.exclude', {}); - // eslint-disable-next-line @typescript-eslint/naming-convention await updateConfigProperty('search.exclude', { '**/search-ignored': true }); const allowedName = rndName(); @@ -1731,7 +1730,6 @@ describe('findNonIgnoredFiles()', () => { describe('when exclude param passed explicitly and search.exclude set', () => { it('should find non-ignored files', async () => { const prevConfig = getConfigProperty('search.exclude', {}); - // eslint-disable-next-line @typescript-eslint/naming-convention await updateConfigProperty('search.exclude', { '**/search-ignored': true }); const allowedName = rndName(); diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 68487347..d862c202 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -605,7 +605,6 @@ export const resolveShortRefFolder = (ref: string): string | undefined => { const date = new Date(); - /* eslint-disable @typescript-eslint/naming-convention */ // https://github.com/microsoft/vscode/blob/main/src/vs/editor/contrib/snippet/snippetVariables.ts const varsReplacementMap: { [varName: string]: string } = { $CURRENT_FILE_DIRECTORY: @@ -619,7 +618,6 @@ export const resolveShortRefFolder = (ref: string): string | undefined => { $CURRENT_SECOND: String(date.getSeconds().valueOf()).padStart(2, '0'), $CURRENT_SECONDS_UNIX: String(Math.floor(date.getTime() / 1000)), }; - /* eslint-enable @typescript-eslint/naming-convention */ if (linkRegExpMatchArr) { linkRegExpMatchArr.forEach((match, index) => {