18 lines
422 B
JavaScript
18 lines
422 B
JavaScript
import js from '@eslint/js';
|
|
import globals from 'globals';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
export default tseslint.config(
|
|
{ ignores: ['dist', 'data', 'backups'] },
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
files: ['src/**/*.ts'],
|
|
languageOptions: { globals: globals.node },
|
|
},
|
|
{
|
|
files: ['web/**/*.{ts,tsx}'],
|
|
languageOptions: { globals: globals.browser },
|
|
},
|
|
);
|