-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
77 lines (75 loc) · 2.61 KB
/
Copy patheslint.config.mjs
File metadata and controls
77 lines (75 loc) · 2.61 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
74
75
76
77
// @ts-check
import eslint from '@eslint/js';
import stylistic from '@stylistic/eslint-plugin';
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.all,
...tseslint.configs.strictTypeChecked,
stylistic.configs['all'],
{
plugins: {
'@stylistic/ts': stylistic,
},
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
'rules': {
'@stylistic/array-element-newline': 'off',
'@stylistic/comma-dangle': ['error', 'always-multiline'],
'@stylistic/dot-location': ['error', 'property'],
'@stylistic/function-call-argument-newline': ['error', 'consistent'],
'@stylistic/function-paren-newline': ['error', 'consistent'],
'@stylistic/indent': ['error', 2],
'@stylistic/lines-between-class-members': 'off',
'@stylistic/multiline-comment-style': 'off',
'@stylistic/multiline-ternary': 'off',
'@stylistic/newline-per-chained-call': ['error', {'ignoreChainWithDepth': 3}],
'@stylistic/no-extra-parens': 'off',
'@stylistic/no-extraneous-class': 'off',
'@stylistic/no-unnecessary-condition': 'off',
'@stylistic/object-property-newline': 'off',
'@stylistic/padded-blocks': 'off',
'@stylistic/quote-props': 'off',
'@stylistic/quotes': ['error', 'single'],
'@stylistic/space-before-function-paren': 'off',
'@typescript-eslint/explicit-function-return-type': 'error',
'@typescript-eslint/explicit-member-accessibility': 'error',
'@typescript-eslint/no-unused-vars': [
'error',
{
'args': 'all',
'argsIgnorePattern': '^_',
},
],
'@typescript-eslint/restrict-template-expressions': ['error', {allowNumber: true}],
'capitalized-comments': 'off',
'class-methods-use-this': 'off',
'dot-notation': 'off',
'func-style': 'off',
'id-length': 'off',
'init-declarations': 'off',
'max-classes-per-file': 'off',
'max-lines': 'off',
'max-lines-per-function': 'off',
'max-params': 'off',
'max-statements': 'off',
'no-bitwise': 'off',
'no-continue': 'off',
'no-empty-function': ['error', {'allow': ['constructors']}],
'no-inline-comments': 'off',
'no-magic-numbers': 'off',
'no-plusplus': 'off',
'no-ternary': 'off',
'no-undefined': 'off',
'no-use-before-define': 'off',
'no-useless-constructor': 'off',
'no-warning-comments': 'off',
'one-var': ['error', 'never'],
'prefer-destructuring': 'off',
'sort-keys': 'off',
},
},
);