From a4bb9b5163a650bfbb32ddabb72d42f0b53b88ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20D=C4=9Bdi=C4=8D?= Date: Wed, 1 Jan 2025 16:09:12 +0100 Subject: [PATCH] Disabled naming-convention eslint rule --- eslint.config.js | 35 ----------------------------------- stylelint.config.js | 2 -- 2 files changed, 37 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index c89ebca8..5bf181f5 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -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, @@ -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": @@ -213,5 +180,3 @@ export default tseslint.config( }, }, ); - -/* eslint-enable @typescript-eslint/naming-convention */ diff --git a/stylelint.config.js b/stylelint.config.js index f39086f5..10da13b7 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -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": [ @@ -14,6 +13,5 @@ export default { ], "selector-class-pattern": "ilb-.*", "selector-id-pattern": "ilb-.*", - /* eslint-enable */ }, };