-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.mjs
51 lines (49 loc) · 1.42 KB
/
.eslintrc.mjs
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
export default {
root: true,
env: {
browser: true,
es2021: true,
node: true
},
extends: [
'eslint:recommended',
'plugin:tailwindcss/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'next',
'next/core-web-vitals'
],
overrides: [
{
files: ['*.ts', '*.tsx', '*.js'],
parser: '@typescript-eslint/parser'
}
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
tailwindcss: true
},
project: './tsconfig.json'
},
plugins: ['react', 'react-hooks', '@typescript-eslint', 'tailwindcss'],
rules: {
indent: ['off', 4],
'linebreak-style': ['off', 'unix'],
quotes: ['off', 'single'],
semi: ['off', 'always'],
'react/prop-types': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'tailwindcss/classnames-order': 'off',
'tailwindcss/no-custom-classname': 'off',
'tailwindcss/no-contradicting-classname': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'react-hooks/exhaustive-deps': 'off',
'@next/next/no-img-element': 'off'
}
};