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