aboutsummaryrefslogtreecommitdiff
path: root/frontend/eslint.config.mjs
blob: 4667d921a75859986d13434c40d5f48c53c39246 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// @ts-check

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default [
    {
        ignores: ['**/*', '!src/**'],
    },
    eslint.configs.recommended,
    ...tseslint.configs.recommended,
    {
        files: ['src/**/*.{js,jsx,ts,tsx}'],
        rules: {
            'no-undef': 'off',
            'no-empty': 'warn',
            'indent': ['warn', 2],
            'quotes': ['warn', 'double'],
            '@typescript-eslint/no-explicit-any': 'warn',
            '@typescript-eslint/no-unused-vars': 'warn',
            '@typescript-eslint/no-unused-expressions': 'warn',
        },
    },
];