@estiva-app/ui 0.37.1 → 0.37.2
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/dist/eslint/index.d.ts +2 -4
- package/dist/eslint/index.d.ts.map +1 -1
- package/dist/eslint/index.js +13 -2
- package/dist/eslint/index.js.map +3 -3
- package/dist/eslint/rule-ids.d.ts +18 -0
- package/dist/eslint/rule-ids.d.ts.map +1 -0
- package/dist/gates/{chunk-CC6L4B5U.js → chunk-DZVDOJGV.js} +16 -2
- package/dist/gates/chunk-DZVDOJGV.js.map +7 -0
- package/dist/gates/create-app.js +1 -1
- package/dist/gates/index.js +1 -1
- package/package.json +1 -1
- package/registry.json +1 -1
- package/src/Panel.stories.tsx +1 -1
- package/src/eslint/index.ts +6 -6
- package/src/eslint/rule-ids.ts +29 -0
- package/src/gates/create-app.test.ts +46 -0
- package/src/gates/create-app.ts +1 -1
- package/dist/gates/chunk-CC6L4B5U.js.map +0 -7
package/dist/eslint/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ESLint, Linter } from 'eslint';
|
|
2
|
+
import { APP_RULE_IDS, PLUGIN_KEY } from './rule-ids';
|
|
2
3
|
export { ESCAPE_MARKER, MIN_REASON, SETTINGS_KEY, isEscaped, type EstivaSettings } from './escape';
|
|
3
4
|
export { OWNED_BEHAVIOURS, type OwnedBehaviour } from './no-rebuilt-behaviour';
|
|
4
5
|
export { PART_LOOK_PROPS, PLACEMENT } from './no-restyled-part';
|
|
5
6
|
export { PARTS_WITH_A_TITLE } from './no-native-title';
|
|
6
7
|
export { MIN_COVER, MIN_SHARED } from './looks-of';
|
|
7
|
-
|
|
8
|
-
export declare const PLUGIN_KEY = "estiva";
|
|
8
|
+
export { APP_RULE_IDS, PLUGIN_KEY };
|
|
9
9
|
declare const plugin: {
|
|
10
10
|
meta: {
|
|
11
11
|
name: string;
|
|
@@ -30,8 +30,6 @@ declare const plugin: {
|
|
|
30
30
|
package: Linter.Config;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
/** The ids `recommended` and `strict` carry — what an app's gate runs and counts. */
|
|
34
|
-
export declare const APP_RULE_IDS: string[];
|
|
35
33
|
/** The ids `package` carries — what this package's own gate runs and counts (UIG-5). */
|
|
36
34
|
export declare const PACKAGE_RULE_IDS: string[];
|
|
37
35
|
export default plugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint/index.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint/index.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAW5C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAoB,MAAM,YAAY,CAAA;AAEvE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAA;AAClG,OAAO,EAAE,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC9E,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAIlD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAAA;AAoDnC,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;aAGK;QAAE,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAA;KAAE;CACrE,CAAA;AAEzB,wFAAwF;AACxF,eAAO,MAAM,gBAAgB,UAAmE,CAAA;AAoChG,eAAe,MAAM,CAAA;AAErB,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,SAAS;IACxB,2DAA2D;IAC3D,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;IACpC;;;OAGG;IACH,QAAQ,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC/D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,UAAU,EAAE,EAAE,IAAI,GAAE,SAAS,MAAM,EAAiB,GAAG,SAAS,CAmB1G"}
|
package/dist/eslint/index.js
CHANGED
|
@@ -2060,9 +2060,21 @@ var rawElementOutsideAWrapper = {
|
|
|
2060
2060
|
}
|
|
2061
2061
|
};
|
|
2062
2062
|
|
|
2063
|
+
// src/eslint/rule-ids.ts
|
|
2064
|
+
var PLUGIN_KEY = "estiva";
|
|
2065
|
+
var APP_RULE_NAMES = [
|
|
2066
|
+
"no-raw-element",
|
|
2067
|
+
"no-rebuilt-behaviour",
|
|
2068
|
+
"no-restyled-part",
|
|
2069
|
+
"no-handmade-header",
|
|
2070
|
+
"no-handmade-empty-state",
|
|
2071
|
+
"no-native-title",
|
|
2072
|
+
"no-copied-look"
|
|
2073
|
+
];
|
|
2074
|
+
var APP_RULE_IDS = APP_RULE_NAMES.map((name) => `${PLUGIN_KEY}/${name}`);
|
|
2075
|
+
|
|
2063
2076
|
// src/eslint/index.ts
|
|
2064
2077
|
var { version } = createRequire(import.meta.url)("../../package.json");
|
|
2065
|
-
var PLUGIN_KEY = "estiva";
|
|
2066
2078
|
var appRules = {
|
|
2067
2079
|
"no-raw-element": noRawElement,
|
|
2068
2080
|
"no-rebuilt-behaviour": noRebuiltBehaviour,
|
|
@@ -2089,7 +2101,6 @@ var plugin = {
|
|
|
2089
2101
|
rules,
|
|
2090
2102
|
configs: {}
|
|
2091
2103
|
};
|
|
2092
|
-
var APP_RULE_IDS = Object.keys(appRules).map((name) => `${PLUGIN_KEY}/${name}`);
|
|
2093
2104
|
var PACKAGE_RULE_IDS = Object.keys(packageRules).map((name) => `${PLUGIN_KEY}/${name}`);
|
|
2094
2105
|
plugin.configs.recommended = {
|
|
2095
2106
|
name: "@estiva-app/ui/recommended",
|