-
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) · 895 Bytes
/
eslint.config.mjs
File metadata and controls
32 lines (31 loc) · 895 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 tsParser from '@typescript-eslint/parser';
import tseslint from '@typescript-eslint/eslint-plugin';
import globals from 'globals';
import prettierPlugin from 'eslint-plugin-prettier';
export default [
{
files: ['src/**/*.ts'],
ignores: ['**/dist/**', '**/node_modules/**'],
languageOptions: {
ecmaVersion: 2020,
sourceType: 'module',
globals: {
...globals.node,
...globals.browser,
},
parser: tsParser,
},
plugins: {
'@typescript-eslint': tseslint,
prettier: prettierPlugin,
},
rules: {
...js.configs.recommended.rules,
...tseslint.configs.recommended.rules,
'prettier/prettier': 'error',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
},
];