-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
49 lines (47 loc) · 1.32 KB
/
.eslintrc.cjs
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
/** @type {import("eslint").Linter.Config} */
module.exports = {
plugins: [
'simple-import-sort',
// https://react.dev/learn/react-compiler#installing-eslint-plugin-react-compiler
// 'eslint-plugin-react-compiler',
],
extends: [
// 'next/core-web-vitals',
'next',
'plugin:unicorn/recommended',
'next/typescript', // or use 'plugin:@typescript-eslint/recommended-type-checked'
'plugin:tailwindcss/recommended',
'plugin:prettier/recommended',
],
rules: {
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'tailwindcss/no-custom-classname': 'off',
'tailwindcss/classnames-order': 'off',
// 'react-compiler/react-compiler': 'error',
'unicorn/no-array-reduce': 'off',
'unicorn/no-null': 'off',
},
settings: {
tailwindcss: {
callees: ['cn', 'cva'],
config: 'tailwind.config.js',
},
},
overrides: [
{
files: ['**/*.test.ts', '**/*.test.tsx'],
excludedFiles: ['e2e/**'],
extends: [
'plugin:@vitest/legacy-recommended',
'plugin:jest-dom/recommended',
'plugin:testing-library/react',
],
},
{
files: ['e2e/**/*.spec.ts'],
extends: ['plugin:playwright/recommended'],
},
],
ignorePatterns: ['node_modules/', '.next/', 'public/', 'components/ui'],
}