Skip to content

Commit

Permalink
chore: Remove @typescript-eslint/naming-convention eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
svsool committed Jan 8, 2022
1 parent deda277 commit 17e59fa
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
1 change: 0 additions & 1 deletion src/test/env/ExtendedVscodeEnvironment.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line @typescript-eslint/naming-convention
const VscodeEnvironment = require('jest-environment-vscode');

class ExtendedVscodeEnvironment extends VscodeEnvironment {
Expand Down
2 changes: 0 additions & 2 deletions src/utils/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 0 additions & 2 deletions src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,6 @@ export const resolveShortRefFolder = (ref: string): string | undefined => {

const date = new Date();

/* eslint-disable @typescript-eslint/naming-convention */
// https:/microsoft/vscode/blob/main/src/vs/editor/contrib/snippet/snippetVariables.ts
const varsReplacementMap: { [varName: string]: string } = {
$CURRENT_FILE_DIRECTORY:
Expand All @@ -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) => {
Expand Down

0 comments on commit 17e59fa

Please sign in to comment.