-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
68 lines (68 loc) · 1.66 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
module.exports = {
env: {
node: true,
browser: true,
},
plugins: ['prettier'],
extends: [
'airbnb-typescript',
'plugin:@typescript-eslint/recommended',
'plugin:eslint-comments/recommended',
'plugin:promise/recommended',
'plugin:unicorn/recommended',
'prettier',
'prettier/react',
'prettier/@typescript-eslint',
],
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
},
rules: {
'arrow-body-style': 'off',
'consistent-return': 'off',
curly: 'error',
'import/prefer-default-export': 'warn',
'import/order': [
'error',
{
'newlines-between': 'always',
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
],
pathGroups: [
{
pattern: '@/**',
group: 'internal',
position: 'after',
},
],
pathGroupsExcludedImportTypes: ['builtin'],
},
],
'jsx-a11y/label-has-associated-control': 'warn',
'no-console': 'off',
'nonblock-statement-body-position': ['error', 'below'],
'react/prop-types': 'off',
'react/jsx-props-no-spreading': 'off',
'unicorn/better-regex': 'warn',
'unicorn/no-array-reduce': 'off',
'unicorn/no-null': 'off',
'unicorn/prevent-abbreviations': 'off',
'unicorn/prefer-dom-node-remove': 'off',
'unicorn/prefer-spread': 'warn',
'@typescript-eslint/no-implied-eval': 'warn',
'@typescript-eslint/no-unused-expressions': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'class-methods-use-this': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
},
globals: {},
};