-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
103 lines (103 loc) · 2.55 KB
/
.eslintrc.json
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"$schema": "https://json.schemastore.org/eslintrc",
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"next/core-web-vitals",
"plugin:react/recommended",
"prettier",
"airbnb",
"next",
"plugin:prettier/recommended",
"plugin:tailwindcss/recommended"
],
"settings": {
"react": {
"version": "detect"
}
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"@typescript-eslint",
"import",
"jsx-a11y",
"prettier",
"promise",
"react",
"tailwindcss",
"jsdoc"
],
"rules": {
"quotes": [2, "double"],
"semi": [2, "always"],
"@typescript-eslint/quotes": [2, "double"],
"@typescript-eslint/semi": [2, "always"],
"@typescript-eslint/strict-boolean-expressions": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"react/jsx-no-bind": 0,
"react/react-in-jsx-scope": 0,
"import/no-extraneous-dependencies": 0,
"import/prefer-default-export": 0,
"import/extensions": 0,
"import/no-anonymous-default-export": 0,
"@next/next/no-html-link-for-pages": [2, "src/app"],
"react/jsx-filename-extension": [
1,
{ "extensions": [".js", ".jsx", ".ts", ".tsx"] }
],
"react/require-default-props": 0,
"react/jsx-props-no-spreading": 0,
"tailwindcss/no-custom-classname": 0,
"tailwindcss/classnames-order": [
2,
{
"callees": ["className", "clsx", "ctl", "cva", "tv", "cn"],
"removeDuplicates": true,
"skipClassAttribute": true
}
],
"prettier/prettier": [
2,
{
"semi": true,
"tabWidth": 2,
"printWidth": 80,
"singleQuote": false,
"jsxSingleQuote": false,
"singleAttributePerLine": true,
"endOfLine": "auto",
"trailingComma": "all"
}
],
"react/function-component-definition": [
2,
{
"namedComponents": [
"function-declaration",
"function-expression",
"arrow-function"
],
"unnamedComponents": ["function-expression", "arrow-function"]
}
],
"jsx-a11y/label-has-associated-control": [
2,
{
"labelComponents": ["CustomInputLabel"],
"labelAttributes": ["label"],
"controlComponents": ["CustomInput"],
"depth": 3
}
]
}
}