forked from CyberAgentHack/web-speed-hackathon-2024
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
39 lines (39 loc) · 943 Bytes
/
.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
module.exports = {
extends: [require.resolve('@3846masa/configs/eslint'), 'plugin:react/recommended', 'plugin:react-hooks/recommended'],
rules: {
'import/order': [
'error',
{
alphabetize: {
order: 'asc',
},
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
'newlines-between': 'always',
pathGroups: [
{
group: 'internal',
pattern: '@wsh-2024/**',
position: 'after',
},
],
pathGroupsExcludedImportTypes: ['builtin', 'object'],
},
],
'no-undefined': 'off',
'react/jsx-sort-props': [
'error',
{
reservedFirst: true,
shorthandFirst: true,
},
],
'react/jsx-uses-react': 'off',
'react/prop-types': ['off'],
'react/react-in-jsx-scope': 'off',
},
settings: {
react: {
version: '18.2.0',
},
},
};