-
Notifications
You must be signed in to change notification settings - Fork 20
/
.eslintrc.js
66 lines (66 loc) · 2.22 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
module.exports = {
extends: ['modular-app'],
plugins: ['@shopify'],
overrides: [
{
files: [
'**/next.config.js',
'**/webpack.config.js',
'**/.eslintrc.js',
'**/tailwind.config.js',
'**/postcss.config.js',
],
parserOptions: {
requireConfigFile: false,
},
},
],
rules: {
'import/no-cycle': ['error', { ignoreExternal: true }],
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/ban-types': 'off',
'no-console': ['warn', { allow: ['info', 'warn', 'error'] }],
'@shopify/prefer-early-return': 'warn',
'no-restricted-imports': [
'error',
{
paths: [
{
name: '@radix-ui/react-icons',
message: 'Please use "noya-utils" instead.',
},
],
patterns: ['*src*'],
},
],
'jsx-a11y/anchor-is-valid': 'off',
// TODO: We want to reconsider these
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/prefer-regexp-exec': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'prefer-const': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'jest/prefer-to-be-undefined': 'off',
'jest/expect-expect': 'off',
'jest/no-alias-methods': 'off',
'jest/no-conditional-expect': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'testing-library/prefer-screen-queries': 'off',
'testing-library/no-node-access': 'off',
'testing-library/no-container': 'off',
'@typescript-eslint/no-namespace': 'off',
'jest/prefer-to-have-length': 'off',
'@typescript-eslint/require-await': 'off',
},
};