diff --git a/packages/collector/__tests__/setup.ts b/packages/collector/__tests__/setup.ts index 028fc8219..1c5302cef 100644 --- a/packages/collector/__tests__/setup.ts +++ b/packages/collector/__tests__/setup.ts @@ -6,7 +6,6 @@ import nodeFetch from "node-fetch"; nock.disableNetConnect(); jest.mock("../src/octokit", () => { - // eslint-disable-next-line @typescript-eslint/naming-convention -- Classes should be PascalCase const OctokitWithRest = Octokit.plugin(restEndpointMethods); return { octokit: new OctokitWithRest({ diff --git a/packages/collector/eslint.config.js b/packages/collector/eslint.config.js index f4df0ba49..3afd281e2 100644 --- a/packages/collector/eslint.config.js +++ b/packages/collector/eslint.config.js @@ -7,8 +7,6 @@ import preferArrowFunctions from "eslint-plugin-prefer-arrow-functions"; import prettierRecommended from "eslint-plugin-prettier/recommended"; import tseslint from "typescript-eslint"; -/* eslint-disable @typescript-eslint/naming-convention -- Not applicable to this file */ - export default tseslint.config( js.configs.recommended, prettierRecommended, @@ -41,33 +39,6 @@ export default tseslint.config( "@typescript-eslint/explicit-module-boundary-types": "error", "@typescript-eslint/init-declarations": "error", "@typescript-eslint/method-signature-style": ["error", "method"], - "@typescript-eslint/naming-convention": [ - "error", - { - filter: { - match: false, - regex: "^(help-issue-label|html_url|per_page|short-description)$", - }, - format: ["camelCase"], - leadingUnderscore: "allow", - selector: "default", - trailingUnderscore: "allow", - }, - { - format: ["camelCase", "PascalCase"], - selector: "import", - }, - { - format: ["camelCase", "UPPER_CASE"], - leadingUnderscore: "allow", - selector: "variable", - trailingUnderscore: "allow", - }, - { - format: ["PascalCase"], - selector: "typeLike", - }, - ], "@typescript-eslint/no-import-type-side-effects": "error", "@typescript-eslint/no-shadow": "error", "@typescript-eslint/no-unnecessary-parameter-property-assignment": @@ -218,5 +189,3 @@ export default tseslint.config( }, }, ); - -/* eslint-enable @typescript-eslint/naming-convention */ diff --git a/packages/collector/jest.config.js b/packages/collector/jest.config.js index 34c806100..02870f387 100644 --- a/packages/collector/jest.config.js +++ b/packages/collector/jest.config.js @@ -14,7 +14,6 @@ export default { setupFiles: ["/__tests__/setup.ts"], testMatch: ["/__tests__/**/*.test.ts"], transform: { - // eslint-disable-next-line @typescript-eslint/naming-convention -- Regexp key "^.+\\.[jt]s$": [ "ts-jest", { diff --git a/packages/collector/src/octokit.ts b/packages/collector/src/octokit.ts index d1601a788..0e824c9b7 100644 --- a/packages/collector/src/octokit.ts +++ b/packages/collector/src/octokit.ts @@ -1,6 +1,5 @@ import { Octokit } from "@octokit/core"; import { restEndpointMethods } from "@octokit/plugin-rest-endpoint-methods"; -// eslint-disable-next-line @typescript-eslint/naming-convention -- Classes should be PascalCase const OctokitWithRest = Octokit.plugin(restEndpointMethods); export const octokit = new OctokitWithRest({ auth: process.env["PAT"] }); diff --git a/packages/frontend/eslint.config.js b/packages/frontend/eslint.config.js index 022bd354b..42e1f19fd 100644 --- a/packages/frontend/eslint.config.js +++ b/packages/frontend/eslint.config.js @@ -10,8 +10,6 @@ import react from "eslint-plugin-react"; import globals from "globals"; import tseslint from "typescript-eslint"; -/* eslint-disable @typescript-eslint/naming-convention -- Not applicable to this file */ - export default tseslint.config( js.configs.recommended, prettierRecommended, @@ -47,33 +45,6 @@ export default tseslint.config( "@typescript-eslint/explicit-module-boundary-types": "error", "@typescript-eslint/init-declarations": "error", "@typescript-eslint/method-signature-style": ["error", "method"], - "@typescript-eslint/naming-convention": [ - "error", - { - filter: { - match: false, - regex: "^(help-issue-label|short-description)$", - }, - format: ["camelCase"], - leadingUnderscore: "allow", - selector: "default", - trailingUnderscore: "allow", - }, - { - format: ["camelCase", "PascalCase"], - selector: "import", - }, - { - format: ["camelCase", "PascalCase", "UPPER_CASE"], - leadingUnderscore: "allow", - selector: "variable", - trailingUnderscore: "allow", - }, - { - format: ["PascalCase"], - selector: "typeLike", - }, - ], "@typescript-eslint/no-import-type-side-effects": "error", "@typescript-eslint/no-shadow": "error", "@typescript-eslint/no-unnecessary-parameter-property-assignment": @@ -296,5 +267,3 @@ export default tseslint.config( }, }, ); - -/* eslint-enable @typescript-eslint/naming-convention */ diff --git a/packages/frontend/jest.config.js b/packages/frontend/jest.config.js index 609135573..7f84e983e 100644 --- a/packages/frontend/jest.config.js +++ b/packages/frontend/jest.config.js @@ -8,7 +8,6 @@ export default { "!src/globalStyles.ts", ], moduleNameMapper: { - // eslint-disable-next-line @typescript-eslint/naming-convention -- The key is a glob matching files "\\.svg$": "/__mocks__/fileMock.ts", }, resetMocks: true, @@ -16,7 +15,6 @@ export default { testEnvironment: "jsdom", testMatch: ["/__tests__/**/*.test.{js,jsx,ts,tsx}"], transform: { - // eslint-disable-next-line @typescript-eslint/naming-convention -- The key is a glob matching files "^.+\\.(j|t)sx?$": ["ts-jest", { tsconfig: "test.tsconfig.json" }], }, transformIgnorePatterns: [