-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
28 lines (27 loc) · 943 Bytes
/
eslint.config.mjs
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 typescriptPlugin from '@typescript-eslint/eslint-plugin';
import typescriptParser from '@typescript-eslint/parser';
import prettierConfig from 'eslint-config-prettier';
import importPlugin from 'eslint-plugin-import';
export default [
{
plugins: {
'@typescript-eslint': typescriptPlugin,
import: importPlugin,
},
languageOptions: {
parser: typescriptParser,
parserOptions: { project: true },
},
files: ['src/**/*.ts'],
rules: {
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'@typescript-eslint/consistent-type-imports': [
'warn',
{ prefer: 'type-imports', fixStyle: 'separate-type-imports' },
],
'@typescript-eslint/no-misused-promises': ['error', { checksVoidReturn: false }],
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
},
},
prettierConfig,
];