25 lines
617 B
JavaScript
25 lines
617 B
JavaScript
|
|
// @ts-check
|
||
|
|
import js from '@eslint/js'
|
||
|
|
import astro from 'eslint-plugin-astro'
|
||
|
|
import globals from 'globals'
|
||
|
|
import tseslint from 'typescript-eslint'
|
||
|
|
|
||
|
|
export default tseslint.config(
|
||
|
|
{ ignores: ['dist/', '.astro/', 'node_modules/', 'playwright-report/', 'test-results/'] },
|
||
|
|
js.configs.recommended,
|
||
|
|
...tseslint.configs.recommended,
|
||
|
|
...astro.configs.recommended,
|
||
|
|
{
|
||
|
|
files: ['scripts/**/*.mjs', 'migration/**/*.mjs'],
|
||
|
|
languageOptions: {
|
||
|
|
globals: { ...globals.node },
|
||
|
|
},
|
||
|
|
},
|
||
|
|
{
|
||
|
|
files: ['src/**/*.{ts,astro}'],
|
||
|
|
languageOptions: {
|
||
|
|
globals: { ...globals.browser },
|
||
|
|
},
|
||
|
|
},
|
||
|
|
)
|