eslint-config-matsuri 3.2.1 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +12 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -27,8 +27,12 @@ const config = [
|
|
|
27
27
|
"**/node_modules",
|
|
28
28
|
"**/public",
|
|
29
29
|
// Webpack
|
|
30
|
+
"webpack.config.cjs",
|
|
31
|
+
"webpack.config.js",
|
|
30
32
|
"**/build",
|
|
31
33
|
// Vite
|
|
34
|
+
"vite.config.ts",
|
|
35
|
+
"vitest.config.ts",
|
|
32
36
|
"**/dist",
|
|
33
37
|
// Next.js
|
|
34
38
|
"**/.next",
|
|
@@ -142,6 +146,14 @@ const config = [
|
|
|
142
146
|
message: "Use React.FC instead.",
|
|
143
147
|
fixWith: "React.FC",
|
|
144
148
|
},
|
|
149
|
+
"React.FC": {
|
|
150
|
+
message:
|
|
151
|
+
"It is recommended to specify the type in props and specify JSX.Element in the return value.",
|
|
152
|
+
},
|
|
153
|
+
FC: {
|
|
154
|
+
message:
|
|
155
|
+
"It is recommended to specify the type in props and specify JSX.Element in the return value.",
|
|
156
|
+
},
|
|
145
157
|
},
|
|
146
158
|
},
|
|
147
159
|
],
|