Skip to content

Commit

Permalink
[frontend] Disabled naming-convention eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Jan 1, 2025
1 parent 46ba4ff commit 51611c7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
31 changes: 0 additions & 31 deletions packages/frontend/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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":
Expand Down Expand Up @@ -296,5 +267,3 @@ export default tseslint.config(
},
},
);

/* eslint-enable @typescript-eslint/naming-convention */
2 changes: 0 additions & 2 deletions packages/frontend/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ export default {
"!src/globalStyles.ts",
],
moduleNameMapper: {
// eslint-disable-next-line @typescript-eslint/naming-convention -- The key is a glob matching files
"\\.svg$": "<rootDir>/__mocks__/fileMock.ts",
},
resetMocks: true,
setupFilesAfterEnv: ["<rootDir>/__tests__/setupTests.ts"],
testEnvironment: "jsdom",
testMatch: ["<rootDir>/__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: [
Expand Down

0 comments on commit 51611c7

Please sign in to comment.