-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
35 lines (35 loc) · 1.01 KB
/
Copy path.eslintrc.js
File metadata and controls
35 lines (35 loc) · 1.01 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
module.exports = {
// parser: '@typescript-eslint/parser',
extends: [
'next/core-web-vitals',
'plugin:react/all',
'plugin:react/jsx-runtime',
'plugin:import/recommended',
'plugin:import/typescript',
// 'plugin:@typescript-eslint',
'prettier',
],
rules: {
'react/jsx-sort-props': 'error',
'react/jsx-filename-extension': ['error', { extensions: ['.js', '.jsx', '.ts', '.tsx'] }],
'react/jsx-max-depth': 'off',
'react/jsx-no-literals': 'off',
'react/jsx-no-bind': 'off',
'react/forbid-component-props': 'off',
'react/no-multi-comp': ['error', { ignoreStateless: true }],
'react/function-component-definition': [
'error',
{
namedComponents: 'arrow-function',
},
],
'react/jsx-props-no-spreading': 'off',
'import/order': [
'error',
{
groups: ['index', 'sibling', 'parent', 'internal', 'external', 'builtin', 'object', 'type'],
alphabetize: { order: 'asc', caseInsensitive: true },
},
],
},
}