From 5df017f7ac7e3b1db4a1052d73163a174823ade6 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Thu, 26 Oct 2023 12:47:24 +0300 Subject: [PATCH] fix(eslint-plugin): [naming-convention] allow PascalCase for imports --- packages/eslint-plugin/docs/rules/naming-convention.md | 5 +++++ packages/eslint-plugin/src/rules/naming-convention.ts | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/packages/eslint-plugin/docs/rules/naming-convention.md b/packages/eslint-plugin/docs/rules/naming-convention.md index 25c3a5c12bf1..ac8cf6d0bcbe 100644 --- a/packages/eslint-plugin/docs/rules/naming-convention.md +++ b/packages/eslint-plugin/docs/rules/naming-convention.md @@ -80,6 +80,11 @@ const defaultOptions: Options = [ trailingUnderscore: 'allow', }, + { + selector: 'import', + format: ['camelCase', 'PascalCase'], + }, + { selector: 'variable', format: ['camelCase', 'UPPER_CASE'], diff --git a/packages/eslint-plugin/src/rules/naming-convention.ts b/packages/eslint-plugin/src/rules/naming-convention.ts index 15bb22b955cc..6da16b3cb2b9 100644 --- a/packages/eslint-plugin/src/rules/naming-convention.ts +++ b/packages/eslint-plugin/src/rules/naming-convention.ts @@ -39,6 +39,11 @@ const defaultCamelCaseAllTheThingsConfig: Options = [ trailingUnderscore: 'allow', }, + { + selector: 'import', + format: ['camelCase', 'PascalCase'], + }, + { selector: 'variable', format: ['camelCase', 'UPPER_CASE'], pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy