-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patheslint.config.mjs
More file actions
32 lines (31 loc) · 976 Bytes
/
eslint.config.mjs
File metadata and controls
32 lines (31 loc) · 976 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
29
30
31
32
import js from '@eslint/js'
import globals from 'globals'
import tseslint from 'typescript-eslint'
import { defineConfig, globalIgnores } from 'eslint/config'
export default defineConfig([
globalIgnores(['**/dist/**', '**/node_modules/**']),
{
files: ['packages/core/**/*.{ts,js}', 'packages/vite/**/*.{ts,js}', 'packages/astro/**/*.{ts,js}', 'packages/next/**/*.{ts,js}'],
extends: [js.configs.recommended, tseslint.configs.recommended],
languageOptions: {
ecmaVersion: 2022,
globals: globals.node,
},
},
{
files: ['examples/vite-react/src/**/*.{ts,tsx}'],
extends: [js.configs.recommended, tseslint.configs.recommended],
languageOptions: {
ecmaVersion: 2022,
globals: globals.browser,
},
},
{
files: ['examples/vite-react/vite.config.ts'],
extends: [js.configs.recommended, tseslint.configs.recommended],
languageOptions: {
ecmaVersion: 2022,
globals: globals.node,
},
},
])