-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
56 lines (56 loc) · 1.29 KB
/
index.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
47
48
49
50
51
52
53
54
55
56
module.exports = {
extends: ['./unicorn.js', 'plugin:import/recommended'],
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['import', 'sort-keys-fix'],
rules: {
semi: ['error', 'never'],
'comma-dangle': 0,
'operator-linebreak': 0,
'arrow-body-style': ['error', 'as-needed'],
'object-curly-newline': 0,
'class-methods-use-this': 0,
'max-len': 0,
'implicit-arrow-linebreak': 0,
'function-paren-newline': 0,
'newline-per-chained-call': 0,
'import/no-cycle': 'error',
'import/no-useless-path-segments': 'error',
'import/order': [
'error',
{
alphabetize: {
order: 'asc',
},
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
'object',
'type',
],
'newlines-between': 'never',
},
],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: ['**/*.test.ts', '**/*.test.tsx'],
},
],
'no-console': 'error',
'no-mixed-operators': [
'error',
{
allowSamePrecedence: true,
},
],
'no-unused-vars': 'off',
'sort-keys-fix/sort-keys-fix': ['error', 'asc', { natural: true }],
},
}