-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.mjs
More file actions
38 lines (34 loc) · 921 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
38 lines (34 loc) · 921 Bytes
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
34
35
36
37
38
// @ts-check
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
export default tseslint.config(
// Base JS rules
eslint.configs.recommended,
// TypeScript rules
...tseslint.configs.recommended,
// Project-specific configuration
{
languageOptions: {
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
},
rules: {
// Preserve existing formatting rules
'no-tabs': 'off',
'block-spacing': ['error', 'always'],
'object-curly-spacing': ['error', 'always'],
'semi': ['error', 'never'],
'quotes': ['error', 'single'],
'indent': ['error', 'tab'], // Use standard indent rule for now
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-empty-object-type': 'off', // Allow empty interfaces extending other types
'complexity': 'error',
},
},
// Ignore patterns
{
ignores: ['lib/', 'node_modules/', 'coverage/'],
},
);