-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.ts
34 lines (33 loc) · 903 Bytes
/
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
import tseslint from '@typescript-eslint/eslint-plugin'
import tsParser from '@typescript-eslint/parser'
import prettier from 'eslint-plugin-prettier'
import eslintConfigPrettier from 'eslint-config-prettier'
export default [
{
ignores: ['dist/*', 'node_modules/*', 'build/*', 'coverage/*'],
},
{
files: ['*.ts', '*.tsx'],
languageOptions: {
parser: tsParser,
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
window: 'readonly',
document: 'readonly',
console: 'readonly',
module: 'readonly',
process: 'readonly',
},
},
plugins: {
'@typescript-eslint': tseslint,
prettier: prettier,
},
rules: {
...tseslint.configs.recommended.rules, // TypeScript rules
...eslintConfigPrettier.rules, // Prettier rules
'@typescript-eslint/no-unused-vars': 'warn',
},
},
]