-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.ts
37 lines (35 loc) · 1.11 KB
/
eslint.config.ts
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
33
34
35
36
37
import typescript from 'typescript-eslint'
import eslintjs from '@eslint/js'
import typescriptParser from '@typescript-eslint/parser'
import typescriptPlugin from '@stylistic/eslint-plugin-ts'
export default typescript.config(
{
extends: [
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
eslintjs.configs.recommended,
...typescript.configs.strictTypeChecked,
...typescript.configs.strict,
...typescript.configs.stylistic
],
files: ['*.ts'],
languageOptions: {
ecmaVersion: 'latest',
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
parser: typescriptParser,
parserOptions: {
impliedStrict: true,
project: './tsconfig.json'
},
sourceType: 'module'
},
plugins: {
'@stylistic': typescriptPlugin
},
rules: {
'@typescript-eslint/array-type': ['error', {default: 'generic'}]
}
},
{
ignores: ['*.mjs', '*.js']
}
)