@starci/eslint-canon-fe 1.4.4 → 1.4.5
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/contract.mjs +5 -3
- package/package.json +1 -1
package/contract.mjs
CHANGED
|
@@ -162,8 +162,10 @@ export const isSourceFile = (filename) => normalizePath(filename).includes("/src
|
|
|
162
162
|
* guess, and a guess in the table is worse than no entry at all, because the next reader takes it
|
|
163
163
|
* for a rule somebody checked.
|
|
164
164
|
*
|
|
165
|
-
* The same is true one level down
|
|
166
|
-
*
|
|
165
|
+
* The same is true one level down, which is why the list has three members rather than one. A
|
|
166
|
+
* highlighted code region is a string of vendor HTML injected into the node; a rendered diagram is
|
|
167
|
+
* an SVG produced from authored source the same way. Neither has slots to name, and neither is a
|
|
168
|
+
* different case from the document that contains them.
|
|
167
169
|
*
|
|
168
170
|
* THIS IS A FOLDER EXEMPTION, exactly like the leaf one above, and it carries the same cost: anyone
|
|
169
171
|
* can escape these rules by filing a component here. What keeps a file out is a question a person
|
|
@@ -172,7 +174,7 @@ export const isSourceFile = (filename) => normalizePath(filename).includes("/src
|
|
|
172
174
|
* a shape somebody chose is what the table is for.
|
|
173
175
|
*/
|
|
174
176
|
export const isAuthoredDocumentBranch = (filename) =>
|
|
175
|
-
/\/src\/components\/branches\/(?:Article|MarkdownCodeBlock)\//.test(normalizePath(filename))
|
|
177
|
+
/\/src\/components\/branches\/(?:Article|MarkdownCodeBlock|MermaidDiagram)\//.test(normalizePath(filename))
|
|
176
178
|
|
|
177
179
|
/** Product source these rules govern: under `src/`, not a test, not a leaf, not the frame. */
|
|
178
180
|
export const isGovernedFile = (filename) => {
|
package/package.json
CHANGED