-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy patheslint.config.ts
More file actions
32 lines (31 loc) · 793 Bytes
/
Copy patheslint.config.ts
File metadata and controls
32 lines (31 loc) · 793 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 tseslint from "typescript-eslint";
import tseslintParser from '@typescript-eslint/parser';
import eslintConfigPrettier from 'eslint-config-prettier';
export default tseslint.config([
{
ignores: ['dist'],
},
{
files: ['src/**/*.ts'],
extends: [
js.configs.recommended,
...tseslint.configs.recommended,
],
languageOptions: {
parser: tseslintParser,
parserOptions: {
ecmaVersion: 2024,
sourceType: 'module',
project: true,
},
},
rules: {
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
'no-prototype-builtins': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
},
},
eslintConfigPrettier,
]);