-
-
Notifications
You must be signed in to change notification settings - Fork 604
Expand file tree
/
Copy patheslint.config.mjs
More file actions
26 lines (25 loc) · 684 Bytes
/
eslint.config.mjs
File metadata and controls
26 lines (25 loc) · 684 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
import { defineConfig } from 'eslint/config';
import globals from 'globals';
import tsParser from '@typescript-eslint/parser';
import tsPlugin from '@typescript-eslint/eslint-plugin';
import importPlugin from 'eslint-plugin-import';
import js from '@eslint/js';
export default defineConfig([
{
files: ['**/*.ts', '**/*.js', '**/*.mjs'],
languageOptions: {
globals: globals.browser,
ecmaVersion: 2020,
sourceType: 'module',
parser: tsParser,
},
plugins: {
'@typescript-eslint': tsPlugin,
import: importPlugin,
},
rules: {
...js.configs.recommended.rules,
...tsPlugin.configs.recommended.rules,
},
},
]);