eslint-config-matsuri 3.2.0 → 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.
Files changed (2) hide show
  1. package/index.js +13 -0
  2. package/package.json +3 -2
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",
@@ -81,6 +85,7 @@ const config = [
81
85
  ...globals.browser,
82
86
  ...globals.es2021,
83
87
  React: true,
88
+ JSX: true,
84
89
  },
85
90
  parser: tsParser,
86
91
  parserOptions: {
@@ -141,6 +146,14 @@ const config = [
141
146
  message: "Use React.FC instead.",
142
147
  fixWith: "React.FC",
143
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
+ },
144
157
  },
145
158
  },
146
159
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-matsuri",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "index.js",
@@ -39,6 +39,7 @@
39
39
  "eslint-plugin-react-refresh": "0.4.4",
40
40
  "eslint-plugin-sort-imports-es6-autofix": "0.6.0",
41
41
  "eslint-plugin-storybook": "0.6.15",
42
- "eslint-plugin-unused-imports": "2.0.0"
42
+ "eslint-plugin-unused-imports": "2.0.0",
43
+ "globals": "13.24.0"
43
44
  }
44
45
  }