@yasainet/eslint 0.0.18 → 0.0.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yasainet/eslint",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "ESLint",
5
5
  "type": "module",
6
6
  "exports": {
@@ -64,7 +64,7 @@ export function createNamingConfigs(featureRoot, prefixLibMapping) {
64
64
  rules: {
65
65
  "check-file/filename-naming-convention": [
66
66
  "error",
67
- { "**/*.ts": "+([a-z0-9-]).schema" },
67
+ { "**/*.ts": `${prefixPattern}.schema` },
68
68
  ],
69
69
  },
70
70
  },
@@ -94,12 +94,25 @@ export function createNamingConfigs(featureRoot, prefixLibMapping) {
94
94
  },
95
95
  {
96
96
  name: "naming/constants",
97
- files: featuresGlob(featureRoot, "**/constants/*.ts"),
97
+ files: featuresGlob(featureRoot, "*/constants/*.constant.ts"),
98
+ ignores: featuresGlob(featureRoot, "shared/constants/*.ts"),
98
99
  plugins: { "check-file": checkFile },
99
100
  rules: {
100
101
  "check-file/filename-naming-convention": [
101
102
  "error",
102
- { "**/*.ts": "+([a-z0-9-]).constant" },
103
+ { "**/*/constants/*.ts": "<1>" },
104
+ { ignoreMiddleExtensions: true },
105
+ ],
106
+ },
107
+ },
108
+ {
109
+ name: "naming/constants-shared",
110
+ files: featuresGlob(featureRoot, "shared/constants/*.ts"),
111
+ plugins: { "check-file": checkFile },
112
+ rules: {
113
+ "check-file/filename-naming-convention": [
114
+ "error",
115
+ { "**/*.ts": `${sharedPrefixPattern}.constant` },
103
116
  ],
104
117
  },
105
118
  },