Skip to content

Commit

Permalink
Merge pull request #1347 from skaut/disable-naming-convention-rule
Browse files Browse the repository at this point in the history
Disabled naming-convention eslint rule
  • Loading branch information
marekdedic authored Jan 1, 2025
2 parents a4e0224 + 518b602 commit 985d80e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
31 changes: 0 additions & 31 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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: "^(GITHUB_REPOSITORY|issue_number)$",
},
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":
Expand Down Expand Up @@ -218,5 +189,3 @@ export default tseslint.config(
},
},
);

/* eslint-enable @typescript-eslint/naming-convention */
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default {
setupFiles: ["<rootDir>/__tests__/setup.ts"],
testMatch: ["<rootDir>/__tests__/**/*.test.ts"],
transform: {
// eslint-disable-next-line @typescript-eslint/naming-convention -- The key is a glob.
"^.+\\.[jt]s$": [
"ts-jest",
{
Expand Down

0 comments on commit 985d80e

Please sign in to comment.