This repository was archived by the owner on Jan 11, 2026. It is now read-only.
forked from internxt/drive-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
48 lines (48 loc) · 1.76 KB
/
.eslintrc.js
File metadata and controls
48 lines (48 loc) · 1.76 KB
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
42
43
44
45
46
47
48
module.exports = {
extends: ['@internxt/eslint-config-internxt', 'plugin:prettier/recommended', 'plugin:@tanstack/eslint-plugin-query/recommended'],
plugins: ['import', 'unicorn', '@tanstack/query'],
overrides: [
{
files: ['*.ts', '*.tsx'],
parserOptions: {
tsconfigRootDir: __dirname,
project: ['tsconfig.json'],
},
},
],
rules: {
'@typescript-eslint/await-thenable': 'warn',
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/consistent-type-definitions': ['warn', 'type'],
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-floating-promises': 'warn',
'@typescript-eslint/no-unused-expressions': 'error',
'array-callback-return': 'warn',
'import/no-default-export': 'warn',
'max-len': ['error', { code: 140, ignoreStrings: true, ignoreTemplateLiterals: true }],
'no-async-promise-executor': 'warn',
'no-await-in-loop': 'off',
'no-empty': 'off',
'no-throw-literal': 'error',
'no-unused-expressions': 'off',
'no-use-before-define': ['warn', { functions: false }],
'object-shorthand': 'error',
'require-await': 'warn',
'unicorn/filename-case': ['warn', { case: 'kebabCase' }],
'padding-line-between-statements': [
'warn',
{ blankLine: 'always', prev: '*', next: 'block' },
{ blankLine: 'always', prev: '*', next: 'class' },
{ blankLine: 'always', prev: '*', next: 'function' },
{ blankLine: 'always', prev: 'multiline-expression', next: 'multiline-expression' },
],
},
parser: '@typescript-eslint/parser',
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
},
};