-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
110 lines (107 loc) · 3.43 KB
/
eslint.config.js
File metadata and controls
110 lines (107 loc) · 3.43 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
// @ts-check
import globals from 'globals';
import { tanstackConfig } from '@tanstack/eslint-config';
export default [
...tanstackConfig,
{
files: ['**/*.{ts,tsx}'],
rules: {
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
'accessor-pairs': 'off',
'array-bracket-spacing': ['warn', 'never'],
'array-callback-return': 'off',
'brace-style': [
'warn',
'stroustrup',
{
allowSingleLine: false,
},
],
'comma-dangle': ['error', 'never'],
'computed-property-spacing': ['warn', 'never'],
'dot-notation': 'off',
eqeqeq: 'off',
'import/consistent-type-specifier-style': 'off',
indent: [
'error',
4,
{
SwitchCase: 1,
ignoredNodes: ['TemplateLiteral'],
},
],
'key-spacing': [
'warn',
{
multiLine: {
afterColon: true,
align: 'colon',
beforeColon: true,
},
singleLine: {
afterColon: true,
beforeColon: true,
},
},
],
'linebreak-style': ['error', 'unix'],
'multiline-ternary': 'off',
'new-cap': [
'warn',
{
capIsNew: false,
newIsCap: false,
properties: false,
},
],
'no-duplicate-imports': 'off',
'no-extra-boolean-cast': 'off',
'no-inner-declarations': 'off',
'no-mixed-operators': 'off',
'no-multi-spaces': 'off',
'no-new-func': 'off',
'no-new-wrappers': 'off',
'no-prototype-builtins': 'off',
'no-restricted-globals': ['error', 'event', 'describe'],
'no-return-assign': 'off',
'no-trailing-spaces': 'warn',
'no-unmodified-loop-condition': 'off',
'no-unused-expressions': 'off',
'no-use-before-define': 'off',
'node/no-callback-literal': 'off',
'object-curly-spacing': ['warn', 'always'],
'one-var': 'off',
'padded-blocks': 'off',
'prefer-const': 'warn',
'prefer-promise-reject-errors': 'off',
'prefer-regex-literals': 'off',
quotes: [
'warn',
'single',
{
allowTemplateLiterals: true,
avoidEscape: true,
},
],
semi: ['error', 'always'],
'space-before-function-paren': ['warn', 'never'],
'spaced-comment': 'off',
'standard/no-callback-literal': 'off',
'template-curly-spacing': 'off',
yoda: [
'error',
'never',
{
onlyEquality: true,
},
],
'n/no-callback-literal': 'off',
'react/prop-types': 0,
},
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
},
];