-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy patheslint.config.js
More file actions
33 lines (31 loc) · 877 Bytes
/
Copy patheslint.config.js
File metadata and controls
33 lines (31 loc) · 877 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
'use strict';
const tseslint = require('typescript-eslint');
const importPlugin = require('eslint-plugin-import');
const prettier = require('eslint-config-prettier');
module.exports = tseslint.config(
{ ignores: ['dist/**'] },
{
rules: {
'no-new': 'off',
},
},
{
files: ['**/*.ts'],
extends: [
...tseslint.configs.recommended,
importPlugin.flatConfigs.recommended,
importPlugin.flatConfigs.typescript,
],
languageOptions: {
parserOptions: {
project: 'tsconfig.test.json',
},
},
rules: {
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-misused-promises': 'error',
'@typescript-eslint/no-explicit-any': 'warn',
},
},
prettier,
);