@yasainet/eslint 0.0.13 → 0.0.15
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/README.md +9 -0
- package/package.json +1 -1
- package/src/common/naming.mjs +27 -2
package/README.md
CHANGED
|
@@ -110,3 +110,12 @@ git push --tags
|
|
|
110
110
|
```
|
|
111
111
|
|
|
112
112
|
4. GitHub Actions will automatically publish to npm
|
|
113
|
+
|
|
114
|
+
### With lazygit
|
|
115
|
+
|
|
116
|
+
1. Update `version` in `package.json`
|
|
117
|
+
2. Stage and commit in lazygit
|
|
118
|
+
3. Select the commit, press `T` to create a tag (e.g. `v1.0.0`)
|
|
119
|
+
4. Press `P` to push the commit
|
|
120
|
+
5. Switch to the Tags panel (`]`), select the tag, and press `P` to push it
|
|
121
|
+
6. GitHub Actions will automatically publish to npm
|
package/package.json
CHANGED
package/src/common/naming.mjs
CHANGED
|
@@ -16,6 +16,7 @@ export function createNamingConfigs(featureRoot, prefixLibMapping) {
|
|
|
16
16
|
{
|
|
17
17
|
name: "naming/services",
|
|
18
18
|
files: featuresGlob(featureRoot, "**/services/*.ts"),
|
|
19
|
+
ignores: featuresGlob(featureRoot, "shared/services/*.ts"),
|
|
19
20
|
plugins: { "check-file": checkFile },
|
|
20
21
|
rules: {
|
|
21
22
|
"check-file/filename-naming-convention": [
|
|
@@ -43,7 +44,19 @@ export function createNamingConfigs(featureRoot, prefixLibMapping) {
|
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
|
|
47
|
+
configs.push({
|
|
48
|
+
name: "naming/services-shared",
|
|
49
|
+
files: featuresGlob(featureRoot, "shared/services/*.ts"),
|
|
50
|
+
plugins: { "check-file": checkFile },
|
|
51
|
+
rules: {
|
|
52
|
+
"check-file/filename-naming-convention": [
|
|
53
|
+
"error",
|
|
54
|
+
{ "**/*.ts": "@(shared).service" },
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
// Shared feature: only "shared" prefix allowed
|
|
47
60
|
configs.push({
|
|
48
61
|
name: "naming/repositories-shared",
|
|
49
62
|
files: featuresGlob(featureRoot, "shared/repositories/*.ts"),
|
|
@@ -51,7 +64,7 @@ export function createNamingConfigs(featureRoot, prefixLibMapping) {
|
|
|
51
64
|
rules: {
|
|
52
65
|
"check-file/filename-naming-convention": [
|
|
53
66
|
"error",
|
|
54
|
-
{ "**/*.ts": "
|
|
67
|
+
{ "**/*.ts": "@(shared).repo" },
|
|
55
68
|
],
|
|
56
69
|
},
|
|
57
70
|
});
|
|
@@ -130,6 +143,7 @@ export function createNamingConfigs(featureRoot, prefixLibMapping) {
|
|
|
130
143
|
{
|
|
131
144
|
name: "naming/actions",
|
|
132
145
|
files: featuresGlob(featureRoot, "**/actions/*.ts"),
|
|
146
|
+
ignores: featuresGlob(featureRoot, "shared/actions/*.ts"),
|
|
133
147
|
plugins: { "check-file": checkFile },
|
|
134
148
|
rules: {
|
|
135
149
|
"check-file/filename-naming-convention": [
|
|
@@ -138,6 +152,17 @@ export function createNamingConfigs(featureRoot, prefixLibMapping) {
|
|
|
138
152
|
],
|
|
139
153
|
},
|
|
140
154
|
},
|
|
155
|
+
{
|
|
156
|
+
name: "naming/actions-shared",
|
|
157
|
+
files: featuresGlob(featureRoot, "shared/actions/*.ts"),
|
|
158
|
+
plugins: { "check-file": checkFile },
|
|
159
|
+
rules: {
|
|
160
|
+
"check-file/filename-naming-convention": [
|
|
161
|
+
"error",
|
|
162
|
+
{ "**/*.ts": "@(shared).action" },
|
|
163
|
+
],
|
|
164
|
+
},
|
|
165
|
+
},
|
|
141
166
|
{
|
|
142
167
|
name: "naming/actions-export",
|
|
143
168
|
files: featuresGlob(featureRoot, "**/actions/*.ts"),
|