@precisa-saude/eslint-config 1.1.1 → 1.2.0

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.
Files changed (2) hide show
  1. package/base.js +16 -1
  2. package/package.json +1 -1
package/base.js CHANGED
@@ -102,11 +102,26 @@ const base = [
102
102
  },
103
103
 
104
104
  {
105
- files: ['**/*.test.ts', '**/*.test.tsx', '**/*.spec.ts', '**/*.spec.tsx', '**/__tests__/**'],
105
+ files: [
106
+ '**/*.test.ts',
107
+ '**/*.test.tsx',
108
+ '**/*.spec.ts',
109
+ '**/*.spec.tsx',
110
+ '**/*.bench.ts',
111
+ '**/__tests__/**',
112
+ '**/__benchmarks__/**',
113
+ '**/test/**',
114
+ '**/tests/**',
115
+ ],
106
116
  rules: {
107
117
  '@typescript-eslint/no-explicit-any': 'off',
108
118
  'no-console': 'off',
109
119
  'perfectionist/sort-objects': 'off',
120
+ // Testes e benchmarks data-driven (tabelas de casos, fixtures inline)
121
+ // legitimamente passam do limite de linhas; fragmentar esconderia o
122
+ // tamanho real dos cenários testados em vez de melhorar manutenibilidade.
123
+ 'max-lines': 'off',
124
+ 'max-lines-per-function': 'off',
110
125
  },
111
126
  },
112
127
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@precisa-saude/eslint-config",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "Shared flat ESLint config (9+/10) for Precisa Saúde repositories.",
5
5
  "keywords": [
6
6
  "eslint",