-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
33 lines (32 loc) · 1.03 KB
/
eslint.config.js
File metadata and controls
33 lines (32 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import base from '@precisa-saude/eslint-config/base';
export default [
...base,
{
// Test files are excluded from package tsconfigs (to keep tsc --noEmit
// tight), so disable type-aware parsing for them or ESLint errors
// trying to locate a project.
files: ['**/*.test.ts', '**/*.test.tsx', '**/*.spec.ts', '**/*.spec.tsx', '**/__tests__/**'],
languageOptions: {
parserOptions: { project: false },
},
rules: {
'@typescript-eslint/consistent-type-imports': 'off',
'max-lines': 'off',
'max-lines-per-function': 'off',
},
},
{
// Scripts internos de manutenção (build-sigtap-mapping, extract-ans-xlsx,
// fix-fhir-brasil-tuss) rodam uma vez por maintainer, não entram no
// bundle publicado. Console é o canal esperado.
files: ['packages/core/scripts/**/*.ts'],
languageOptions: {
parserOptions: { project: false },
},
rules: {
'@typescript-eslint/consistent-type-imports': 'off',
'max-lines': 'off',
'no-console': 'off',
},
},
];