Skip to content

Commit

Permalink
Merge pull request #1197 from marekdedic/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 5c62b64 + a4bb9b5 commit a04f78a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 37 deletions.
35 changes: 0 additions & 35 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import prettierRecommended from "eslint-plugin-prettier/recommended";
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 @@ -43,37 +41,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",
{
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",
},
{
format: ["camelCase", "PascalCase"],
selector: "function",
},
{
format: ["PascalCase"],
selector: "enumMember",
},
],
"@typescript-eslint/no-import-type-side-effects": "error",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-unnecessary-parameter-property-assignment":
Expand Down Expand Up @@ -213,5 +180,3 @@ export default tseslint.config(
},
},
);

/* eslint-enable @typescript-eslint/naming-convention */
2 changes: 0 additions & 2 deletions stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export default {
extends: ["stylelint-config-standard", "stylelint-prettier/recommended"],
plugins: ["stylelint-no-unsupported-browser-features"],
rules: {
/* eslint-disable @typescript-eslint/naming-convention -- The keys are rule names */
"color-function-notation": "legacy",
"media-feature-range-notation": "prefix",
"plugin/no-unsupported-browser-features": [
Expand All @@ -14,6 +13,5 @@ export default {
],
"selector-class-pattern": "ilb-.*",
"selector-id-pattern": "ilb-.*",
/* eslint-enable */
},
};

0 comments on commit a04f78a

Please sign in to comment.