-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.ts
More file actions
36 lines (35 loc) · 842 Bytes
/
eslint.config.ts
File metadata and controls
36 lines (35 loc) · 842 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
33
34
35
36
import tseslint from '@typescript-eslint/eslint-plugin';
import tsparser from '@typescript-eslint/parser';
import prettier from 'eslint-plugin-prettier';
import globals from 'globals';
export default [
{
files: ['**/*.ts', '**/*.tsx'],
ignores: ['dist/**', 'node_modules/**'],
languageOptions: {
parser: tsparser,
parserOptions: {
project: './tsconfig.json',
ecmaVersion: 'latest',
sourceType: 'module',
},
globals: {
...globals.node,
},
},
plugins: {
'@typescript-eslint': tseslint,
prettier: prettier,
},
rules: {
'no-unused-vars': 'off',
'no-debugger': 'warn',
'prettier/prettier': 'error',
'@typescript-eslint/no-unused-vars': 'warn',
},
settings: {
jest: true,
node: true,
},
},
];