@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.
- package/base.js +16 -1
- package/package.json +1 -1
package/base.js
CHANGED
|
@@ -102,11 +102,26 @@ const base = [
|
|
|
102
102
|
},
|
|
103
103
|
|
|
104
104
|
{
|
|
105
|
-
files: [
|
|
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
|
|