@servicetitan/folder-lint 37.0.1 → 38.0.0
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": "@servicetitan/folder-lint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "38.0.0",
|
|
4
4
|
"description": "Enum and types used to create an object with eslint-plugin-folder-schema configuration",
|
|
5
5
|
"homepage": "https://docs.st.dev/docs/frontend/uikit/folder-schema#servicetitanfolder-lint",
|
|
6
6
|
"repository": {
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"cli": {
|
|
29
29
|
"webpack": false
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "a96a725030a0c422257567b1f06025bca8ca53b9"
|
|
32
32
|
}
|
|
@@ -484,17 +484,14 @@ describe('checkPath', () => {
|
|
|
484
484
|
});
|
|
485
485
|
|
|
486
486
|
describe('config#2 (recursive)', () => {
|
|
487
|
-
const recursiveConfigMock = jest.fn(
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
name: `level${level}`,
|
|
491
|
-
namingConvention: NamingConvention.DashDelimitedLowercase,
|
|
487
|
+
const recursiveConfigMock = jest.fn((level: number): RootFolder => () => ({
|
|
488
|
+
name: `level${level}`,
|
|
489
|
+
namingConvention: NamingConvention.DashDelimitedLowercase,
|
|
492
490
|
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
);
|
|
491
|
+
allowedFiles: ['index.tsx'],
|
|
492
|
+
allowedExtensions: ['.*'],
|
|
493
|
+
children: recursiveConfigMock(level + 1),
|
|
494
|
+
}));
|
|
498
495
|
|
|
499
496
|
const cases: [/* path */ string, /* failures */ string[]][] = [
|
|
500
497
|
['index.tsx', []],
|