forked from react-hookz/web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
58 lines (55 loc) · 1.5 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
module.exports = {
root: true,
ignorePatterns: [
'node_modules',
'coverage',
'storybook-build',
'dist',
'.github/workflows',
'.husky',
'CHANGELOG.md',
],
parserOptions: {
project: './tsconfig.eslint.json',
tsconfigRootDir: __dirname,
extraFileExtensions: ['.md'],
},
overrides: [
{
files: ['*.js', '*.ts', '*.jsx', '*.tsx'],
extends: ['@react-hookz/eslint-config/react'],
rules: {
'react/button-has-type': 'off',
'unicorn/prefer-node-protocol': 'off',
'unicorn/prefer-top-level-await': 'off',
},
},
{
files: [
'**/__tests__/**/*.js',
'**/__tests__/**/*.ts',
'**/__tests__/**/*.jsx',
'**/__tests__/**/*.tsx',
],
extends: ['@react-hookz/eslint-config/react', '@react-hookz/eslint-config/jest'],
},
{
files: ['**/__docs__/**', '**/__tests__/**'],
rules: {
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'unicorn/consistent-function-scoping': 'off',
'unicorn/no-this-assignment': 'off',
},
},
{
files: ['*.md'],
extends: ['@react-hookz/eslint-config/mdx'],
},
],
};