-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
73 lines (67 loc) · 1.73 KB
/
eslint.config.js
File metadata and controls
73 lines (67 loc) · 1.73 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import { vinicuncaESLint } from '@vinicunca/eslint-config';
export default vinicuncaESLint(
{
formatters: false,
react: false,
typescript: {
parserOptions: {
project: ['./tsconfig.eslint.json'],
},
},
unocss: false,
vue: false,
pnpm: true,
},
{
rules: {
'function-paren-newline': ['error', 'consistent'],
'perfectionist/sort-intersection-types': 'off',
'perfectionist/sort-object-types': 'off',
'perfectionist/sort-objects': 'off',
'perfectionist/sort-interfaces': 'off',
'perfectionist/sort-modules': 'off',
'sonar/use-type-alias': 'off',
'sonar/no-nested-functions': 'off',
'sonar/cognitive-complexity': 'off',
'sonar/no-redundant-optional': 'off',
'sonar/no-nested-conditional': 'off',
'sonar/assertions-in-tests': 'off',
'sonar/different-types-comparison': 'off',
'vinicunca/cognitive-complexity': 'off',
'vinicunca/consistent-list-newline': 'off',
'ts/no-explicit-any': 'error',
'ts/explicit-function-return-type': [
'error',
{ allowExpressions: true },
],
'ts/explicit-module-boundary-types': [
'warn',
{ allowTypedFunctionExpressions: false },
],
'pnpm/json-enforce-catalog': 'off',
},
},
{
files: ['**/*.spec.ts', '**/*.spec-d.ts'],
rules: {
'perfectionist/sort-union-types': 'off',
'sonar/no-duplicate-string': 'off',
},
},
{
files: ['**/tsconfig.**'],
rules: {
'jsonc/sort-keys': 'off',
},
},
{
files: ['**/*.ts'],
rules: {
'style/operator-linebreak': [
'error',
'before',
{ overrides: { '?': 'ignore', ':': 'ignore' } },
],
},
},
);