forked from e2b-dev/E2B
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
36 lines (36 loc) · 947 Bytes
/
.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
module.exports = {
extends: ['next'],
ignorePatterns: ['db/supabase.ts'],
rules: {
'@next/next/no-html-link-for-pages': 'off',
'react/jsx-key': 'off',
},
plugins: ['unused-imports', 'tailwindcss'],
rules: {
'tailwindcss/enforces-negative-arbitrary-values': 'warn',
'tailwindcss/enforces-shorthand': 'warn',
'tailwindcss/migration-from-tailwind-2': 'warn',
'tailwindcss/no-arbitrary-value': 'off',
'tailwindcss/no-custom-classname': 'error',
'tailwindcss/no-contradicting-classname': 'error',
'unused-imports/no-unused-imports': 'error',
'react/jsx-sort-props': [
2,
{
shorthandFirst: false,
shorthandLast: true,
ignoreCase: true,
noSortAlphabetically: true,
},
],
'react-hooks/exhaustive-deps': ['warn'],
semi: ['error', 'never'],
quotes: [
'error',
'single',
{
avoidEscape: true,
},
],
},
}