-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
41 lines (41 loc) · 1.13 KB
/
.eslintrc.cjs
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
38
39
40
41
/** @type import('eslint').Linter.BaseConfig */
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
parser: '@typescript-eslint/parser',
rules: {
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-var-requires': 'off',
"@typescript-eslint/no-unused-vars": "off",
},
overrides: [
{
files: ['**/*.test.tsx', '**/*.test.ts'],
plugins: ["vitest"],
rules: {
'vitest/require-top-level-describe': 'off',
'@typescript-eslint/await-thenable': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'import/no-extraneous-dependencies': 'off',
},
},
{
files: ['vite.config.ts'],
rules: {
'import/no-extraneous-dependencies': 'off',
},
},
],
ignorePatterns: ['*.js', '*.mjs', '**/dist'],
};