34 lines
809 B
JavaScript
34 lines
809 B
JavaScript
import js from '@eslint/js';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
export default tseslint.config(
|
|
{ ignores: ['dist/**', 'artifacts/**', 'node_modules/**'] },
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
files: ['scripts/**/*.mjs'],
|
|
languageOptions: {
|
|
globals: { URL: 'readonly' }
|
|
}
|
|
},
|
|
{
|
|
files: ['src/**/*.{ts,tsx}', 'tests/**/*.ts'],
|
|
languageOptions: {
|
|
globals: {
|
|
Blob: 'readonly',
|
|
browser: 'readonly',
|
|
crypto: 'readonly',
|
|
document: 'readonly',
|
|
fetch: 'readonly',
|
|
globalThis: 'readonly',
|
|
HTMLElement: 'readonly',
|
|
HTMLImageElement: 'readonly',
|
|
MutationObserver: 'readonly',
|
|
Node: 'readonly',
|
|
URL: 'readonly',
|
|
window: 'readonly'
|
|
}
|
|
}
|
|
}
|
|
);
|