-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathreact-javascript.js
46 lines (44 loc) · 1.31 KB
/
react-javascript.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
42
43
44
45
46
module.exports = {
plugins: ['simple-import-sort'],
extends: ['./configs/eslint', './configs/unicorn', './configs/react'],
rules: {
'no-underscore-dangle': 'off',
'no-implicit-coercion': [
'error',
{
boolean: false,
},
],
// disabled because of https://github.com/sindresorhus/eslint-plugin-unicorn/issues/687
'unicorn/prefer-spread': 'off',
'unicorn/template-indent': [
'error',
{
indent: 4,
},
],
'simple-import-sort/exports': 'error',
'simple-import-sort/imports': [
'error',
{
groups: [
['^\\u0000'],
[
'^react',
'^react-native',
'^next',
'^axios',
'^graphql',
'^urql',
'^styled-components',
'^pages',
'^views',
'^@?\\w',
],
['^\\.\\.(?!/?$)', '^\\.\\./?$'],
['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
],
},
],
},
};