-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
43 lines (42 loc) · 1.1 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
/** @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',
'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',
},
settings: {
tailwindcss: {
callees: ['cn', 'cva'],
config: 'tailwind.config.js',
},
},
overrides: [
{
files: ['**/*.test.ts', '**/*.test.tsx'],
excludedFiles: ['e2e/**'],
extends: [
'plugin:vitest/recommended',
'plugin:jest-dom/recommended',
'plugin:testing-library/react',
],
},
{
files: ['e2e/**/*.spec.ts'],
extends: ['plugin:playwright/recommended'],
},
],
ignorePatterns: ['node_modules/', '.next/', 'public/', 'components/ui'],
}