-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (40 loc) · 1.01 KB
/
.eslintrc.js
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
module.exports = {
extends: [
'standard',
'standard-react',
'plugin:@typescript-eslint/recommended',
'next/core-web-vitals',
],
rules: {
'multiline-ternary': 'off',
camelcase: 0,
'no-empty': ['off', { allowEmptyCatch: true }],
indent: [
'error',
2,
{
// ignoredNodes: ['JSXAttribute', 'JSXSpreadAttribute']
}
],
'react/jsx-indent': [0, 2],
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
semi: 0,
'react/no-unused-prop-types': 0,
'react/display-name': ['off', { ignoreTranspilerName: false }],
'react/prop-types': 0,
'generator-star-spacing': [
'error',
{
before: false,
after: true
}
],
'comma-dangle': ['error', 'only-multiline'],
'import/no-named-default': 0,
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-module-boundary-types': 'off'
},
}