forked from ben-rogerson/twin.macro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
91 lines (91 loc) · 2.38 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
module.exports = {
settings: {
version: 'detect',
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:unicorn/recommended',
'xo/browser',
'xo/esnext',
'xo-typescript/space',
'xo-react/space',
'plugin:chai-friendly/recommended',
'plugin:jest/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'prettier/@typescript-eslint',
'prettier',
'prettier/babel',
'prettier/react',
'prettier/unicorn',
],
plugins: ['chai-friendly', 'jest', 'import'],
rules: {
'no-unused-expressions': 0,
'no-negated-condition': 0,
'no-warning-comments': 0,
'operator-assignment': 0,
'import/no-unresolved': 0,
'chai-friendly/no-unused-expressions': 0,
'@typescript-eslint/no-unused-expressions': 0,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/no-base-to-string': 0,
'@typescript-eslint/prefer-nullish-coalescing': 0,
'@typescript-eslint/no-unsafe-return': 0,
'@typescript-eslint/semi': 0,
'@typescript-eslint/restrict-template-expressions': 0,
'@typescript-eslint/default-param-last': 0,
'@typescript-eslint/prefer-optional-chain': 0,
'react/prop-types': 0,
'jest/prefer-expect-assertions': 0,
'capitalized-comments': 0,
'comma-dangle': 0,
'import/extensions': [
'error',
{
svg: 'allow',
},
],
'import/no-unassigned-import': [
'error',
{
allow: ['**/*.css'],
},
],
'unicorn/filename-case': [
'error',
{
case: 'camelCase',
},
],
'unicorn/prefer-type-error': 0,
},
overrides: [
{
files: ['**/*.ts', '**/*.js'],
rules: {
'jest/no-try-expect': 0,
},
},
{
files: ['**/*.js', '**/*.jsx'],
rules: {
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/space-before-function-paren': 0,
'@typescript-eslint/no-unsafe-call': 0,
'@typescript-eslint/no-unsafe-member-access': 0,
'@typescript-eslint/prefer-readonly-parameter-types': 0,
},
},
{
files: ['types/tests/**/*.ts', 'types/tests/**/*.tsx'],
rules: {
'@typescript-eslint/no-unused-vars': 0,
'import/no-unassigned-import': 0,
'@typescript-eslint/no-unsafe-call': 0,
},
},
],
}