generated from freeCodeCamp/template
-
-
Notifications
You must be signed in to change notification settings - Fork 338
Expand file tree
/
Copy patheslint.config.js
More file actions
28 lines (28 loc) · 767 Bytes
/
eslint.config.js
File metadata and controls
28 lines (28 loc) · 767 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
import eslintPluginAstro from 'eslint-plugin-astro';
import { defineConfig } from 'eslint/config';
import tseslint from 'typescript-eslint';
export default defineConfig([
...eslintPluginAstro.configs.recommended,
{
ignores: ['**/*.astro'],
extends: [tseslint.configs.recommendedTypeChecked]
}, // TypeScript ESLint does not support .astro files
{ languageOptions: { parserOptions: { projectService: true } } },
{
ignores: [
'**/node_modules',
'**/dist',
'**/.astro',
'**/__coverage__',
'**/.changeset',
'**/pnpm-*.yaml',
'**/pre-commit',
'**/.prettierignore',
'test-results/',
'playwright-report/',
'blob-report/',
'playwright/.cache/',
'**/.wrangler/'
]
}
]);