@yoshinani/style-guide 0.17.10 → 0.17.11
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/base.mjs +4 -0
- package/package.json +2 -1
package/eslint/base.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import comments from "@eslint-community/eslint-plugin-eslint-comments"
|
|
|
5
5
|
import eslintConfigPrettier from "eslint-config-prettier/flat"
|
|
6
6
|
import functional from "eslint-plugin-functional"
|
|
7
7
|
import * as importPlugin from "eslint-plugin-import"
|
|
8
|
+
import noBarrelFiles from "eslint-plugin-no-barrel-files"
|
|
8
9
|
import tseslint from "typescript-eslint"
|
|
9
10
|
|
|
10
11
|
export default tseslint.config(
|
|
@@ -21,6 +22,7 @@ export default tseslint.config(
|
|
|
21
22
|
import: importPlugin,
|
|
22
23
|
functional,
|
|
23
24
|
"@eslint-community/eslint-comments": comments,
|
|
25
|
+
"no-barrel-files": noBarrelFiles,
|
|
24
26
|
},
|
|
25
27
|
languageOptions: {
|
|
26
28
|
parserOptions: {
|
|
@@ -30,6 +32,8 @@ export default tseslint.config(
|
|
|
30
32
|
},
|
|
31
33
|
rules: {
|
|
32
34
|
"functional/immutable-data": "error",
|
|
35
|
+
// [barrel exportを禁止](https://github.com/art0rz/eslint-plugin-no-barrel-files)
|
|
36
|
+
"no-barrel-files/no-barrel-files": "error",
|
|
33
37
|
// [比較演算子禁止](https://www.notion.so/yoshinani-note/1dff5577f5838145acfcca9176913b79)
|
|
34
38
|
eqeqeq: [
|
|
35
39
|
"error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoshinani/style-guide",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.11",
|
|
4
4
|
"description": "YOSHINANI's Style Guide",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"eslint-plugin-better-tailwindcss": "^3.7.9",
|
|
47
47
|
"eslint-plugin-functional": "^9.0.2",
|
|
48
48
|
"eslint-plugin-import": "^2.32.0",
|
|
49
|
+
"eslint-plugin-no-barrel-files": "^1.3.1",
|
|
49
50
|
"eslint-plugin-react": "^7.37.5",
|
|
50
51
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
51
52
|
"globals": "^16.3.0",
|