@viclafouch/eslint-config-viclafouch 4.22.1-beta.7 → 4.22.1-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viclafouch/eslint-config-viclafouch",
3
- "version": "4.22.1-beta.7",
3
+ "version": "4.22.1-beta.8",
4
4
  "description": "ESLint and Prettier Config from Victor de la Fouchardiere",
5
5
  "type": "module",
6
6
  "main": "./index.mjs",
@@ -997,9 +997,16 @@ export default defineConfig(
997
997
  ],
998
998
 
999
999
  // Naming convention for type parameters
1000
+ // Enforce naming conventions for variables, functions, types, and type parameters
1000
1001
  // https://typescript-eslint.io/rules/naming-convention
1001
1002
  '@typescript-eslint/naming-convention': [
1002
1003
  'error',
1004
+ {
1005
+ selector: 'variable',
1006
+ format: ['camelCase', 'PascalCase', 'UPPER_CASE']
1007
+ },
1008
+ { selector: 'function', format: ['camelCase', 'PascalCase'] },
1009
+ { selector: 'typeLike', format: ['PascalCase'] },
1003
1010
  {
1004
1011
  selector: 'typeParameter',
1005
1012
  format: ['PascalCase'],