eslint-config-matsuri 1.6.2 → 1.7.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 +16 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -71,6 +71,21 @@ const config = {
71
71
  allowAny: true,
72
72
  },
73
73
  ],
74
+ "@typescript-eslint/ban-types": [
75
+ "error",
76
+ {
77
+ types: {
78
+ "React.VFC": {
79
+ message: "Use React.FC instead.",
80
+ fixWith: "React.FC",
81
+ },
82
+ VFC: {
83
+ message: "Use React.FC instead.",
84
+ fixWith: "React.FC",
85
+ },
86
+ },
87
+ },
88
+ ],
74
89
 
75
90
  "react/self-closing-comp": [
76
91
  "error",
@@ -98,7 +113,7 @@ const config = {
98
113
  "@typescript-eslint/no-unused-vars": "off",
99
114
  "unused-imports/no-unused-imports": "error",
100
115
  "unused-imports/no-unused-vars": [
101
- "warn",
116
+ "error",
102
117
  {
103
118
  vars: "all",
104
119
  varsIgnorePattern: "^_",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-matsuri",
3
- "version": "1.6.2",
3
+ "version": "1.7.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "files": [