-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.ts
executable file
·65 lines (65 loc) · 1.64 KB
/
.eslintrc.ts
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
export default {
env: {
browser: true,
es2021: true,
},
extends: [
'next/core-web-vitals',
'turbo',
'prettier',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'react-app',
'standard-with-typescript',
'plugin:import/typescript',
'plugin:prettier/recommended',
],
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs,ts,cts,tsx}'],
parserOptions: {
sourceType: 'script',
},
parser: '@typescript-eslint/parser',
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json',
},
plugins: ['@typescript-eslint', 'react', 'prettier', 'spellcheck'],
rules: {
'@next/next/no-html-link-for-pages': 'off',
'tailwindcss/no-custom-classname': 'off',
'tailwindcss/classnames-order': 'error',
'@typescript-eslint/no-empty-object-type': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
'no-var': 'error',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'react-refresh/only-export-components': 'warn',
'react/jsx-uses-react': 'off',
'react/jsx-filename-extension': ['warn'],
'spellcheck/spell-checker': ['warn'],
'react/react-in-jsx-scope': 'off',
},
settings: {
react: {
version: 'detect',
},
tailwindcss: {
callees: ['cn', 'cva'],
config: 'tailwind.config.cjs',
},
next: {
rootDir: ['apps/*/'],
},
},
}