@tmlmobilidade/eslint 20260327.0.15 → 20260330.1453.3

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.
@@ -63,7 +63,22 @@ export const namingConventionsConfig = [
63
63
  rules: {
64
64
  '@typescript-eslint/naming-convention': [
65
65
  'error',
66
+ // React hooks (useXxx): camelCase per Rules of Hooks naming
66
67
  {
68
+ filter: {
69
+ match: true,
70
+ regex: '^use[A-Z]',
71
+ },
72
+ format: ['camelCase'],
73
+ leadingUnderscore: 'allow',
74
+ selector: 'function',
75
+ },
76
+ // Components and other functions: PascalCase
77
+ {
78
+ filter: {
79
+ match: false,
80
+ regex: '^use[A-Z]',
81
+ },
67
82
  format: ['PascalCase'],
68
83
  leadingUnderscore: 'allow',
69
84
  selector: 'function',
@@ -17,7 +17,7 @@ export const promisesConfig = [
17
17
  rules: {
18
18
  '@typescript-eslint/await-thenable': 'error',
19
19
  '@typescript-eslint/no-floating-promises': [
20
- 'error',
20
+ 'off',
21
21
  { ignoreIIFE: true },
22
22
  ],
23
23
  '@typescript-eslint/no-misused-promises': [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/eslint",
3
- "version": "20260327.0.15",
3
+ "version": "20260330.1453.3",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"
@@ -46,7 +46,7 @@
46
46
  "eslint-plugin-react": "7.37.5",
47
47
  "eslint-plugin-react-hooks": "7.0.1",
48
48
  "globals": "17.4.0",
49
- "stylelint": "17.5.0",
49
+ "stylelint": "17.6.0",
50
50
  "stylelint-config-recess-order": "7.7.0",
51
51
  "stylelint-config-standard": "40.0.0",
52
52
  "typescript-eslint": "8.57.2"