-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
30 lines (29 loc) · 792 Bytes
/
eslint.config.js
File metadata and controls
30 lines (29 loc) · 792 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
import eslintPluginTs from '@typescript-eslint/eslint-plugin';
import parserTs from '@typescript-eslint/parser';
import prettierPlugin from 'eslint-plugin-prettier';
export default [
{
ignores: ['dist/**', 'node_modules/**'],
},
{
files: ['**/*.ts'],
languageOptions: {
parser: parserTs,
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
project: './tsconfig.json',
},
},
plugins: {
'@typescript-eslint': eslintPluginTs,
prettier: prettierPlugin,
},
rules: {
...eslintPluginTs.configs.recommended.rules,
...eslintPluginTs.configs['recommended-requiring-type-checking'].rules,
'@typescript-eslint/no-floating-promises': 'error',
'prettier/prettier': 'warn',
},
},
];