@yoshinani/style-guide 0.2.1 → 0.2.3
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/eslint/rules/react.mjs +7 -0
- package/package.json +8 -5
package/eslint/rules/react.mjs
CHANGED
|
@@ -5,6 +5,11 @@ import react from "eslint-plugin-react";
|
|
|
5
5
|
export default {
|
|
6
6
|
name: "react",
|
|
7
7
|
files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
|
|
8
|
+
settings: {
|
|
9
|
+
react: {
|
|
10
|
+
version: "detect",
|
|
11
|
+
},
|
|
12
|
+
},
|
|
8
13
|
plugins: {
|
|
9
14
|
react,
|
|
10
15
|
},
|
|
@@ -16,5 +21,7 @@ export default {
|
|
|
16
21
|
"react/jsx-no-useless-fragment": "error",
|
|
17
22
|
// import React from "react"を記載しない
|
|
18
23
|
"react/react-in-jsx-scope": "off",
|
|
24
|
+
// prop-typesを使用しない
|
|
25
|
+
"react/prop-types": "off",
|
|
19
26
|
},
|
|
20
27
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoshinani/style-guide",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Yoshinani's Style Guide",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/yoshinani-dev/style-guide#readme",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"cspell"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
31
30
|
"@commitlint/config-conventional": "^19",
|
|
31
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
32
32
|
"@eslint/js": "^9.25.1",
|
|
33
33
|
"eslint-config-prettier": "^10.1.2",
|
|
34
34
|
"eslint-plugin-functional": "^9.0.1",
|
|
@@ -40,17 +40,20 @@
|
|
|
40
40
|
"typescript-eslint": "^8.31.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
+
"@changesets/cli": "^2.29.4",
|
|
43
44
|
"@commitlint/cli": "^19.8.0",
|
|
44
45
|
"husky": "^9.1.7"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
48
|
+
"@commitlint/cli": "^19",
|
|
47
49
|
"eslint": "^9",
|
|
48
50
|
"prettier": "^3",
|
|
49
|
-
"typescript": "^5"
|
|
50
|
-
"@commitlint/cli": "^19"
|
|
51
|
+
"typescript": "^5"
|
|
51
52
|
},
|
|
52
53
|
"publishConfig": {
|
|
53
54
|
"access": "public"
|
|
54
55
|
},
|
|
55
|
-
"scripts": {
|
|
56
|
+
"scripts": {
|
|
57
|
+
"release": "changeset publish"
|
|
58
|
+
}
|
|
56
59
|
}
|