-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
47 lines (47 loc) · 1.09 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
44
45
46
47
module.exports = {
extends: [
'next/core-web-vitals',
'eslint:recommended',
'plugin:react/recommended',
'plugin:@stylistic/recommended-extends',
'plugin:tailwindcss/recommended',
],
plugins: ['react', '@stylistic'],
parserOptions: {
ecmaFeatures: { jsx: true },
},
rules: {
'react/react-in-jsx-scope': 'off',
'@stylistic/array-element-newline': ['warn', 'consistent'],
'@stylistic/array-bracket-newline': [
'warn', {
multiline: true,
},
],
'@stylistic/brace-style': [
'warn', '1tbs', {
allowSingleLine: false,
},
],
'@stylistic/jsx-newline': [
'error', {
prevent: true,
allowMultilines: true,
},
],
'tailwindcss/no-custom-classname': [
'warn', {
// whitelist: ['material-icons'],
whitelist: ['animate__.*'],
callees: ['clsx', 'cn'],
},
],
'tailwindcss/classnames-order': [
'warn', {
callees: ['clsx', 'cn'],
},
],
'react/button-has-type': ['error'],
'@stylistic/jsx-self-closing-comp': ['error'],
},
}