@ember-intl/utils 0.2.0 → 0.4.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/dist/config/types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type LintRuleOptions = Record<string, unknown>;
|
|
1
|
+
import type { LintRules } from '../lint-rules.js';
|
|
3
2
|
export type Config = {
|
|
4
3
|
addonPaths: string[];
|
|
5
4
|
buildOptions: {
|
|
@@ -7,11 +6,10 @@ export type Config = {
|
|
|
7
6
|
namespaceKeysByDir: boolean;
|
|
8
7
|
translationsDir: string;
|
|
9
8
|
};
|
|
10
|
-
lintRules:
|
|
9
|
+
lintRules: LintRules;
|
|
11
10
|
};
|
|
12
11
|
export type UserConfig = Partial<{
|
|
13
12
|
addonPaths: Config['addonPaths'];
|
|
14
13
|
buildOptions: Partial<Config['buildOptions']>;
|
|
15
14
|
lintRules: Partial<Config['lintRules']>;
|
|
16
15
|
}>;
|
|
17
|
-
export {};
|
package/dist/config.d.ts
CHANGED
package/dist/config.js
CHANGED
package/dist/lint-rules.d.ts
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
import type { TranslationKey } from './translations.js';
|
|
1
2
|
export declare const lintRules: readonly ["no-inconsistent-messages", "no-missing-keys", "no-unused-keys"];
|
|
2
3
|
export type LintRule = (typeof lintRules)[number];
|
|
4
|
+
type LintRuleOptions = {
|
|
5
|
+
'no-inconsistent-messages': Partial<{
|
|
6
|
+
ignores: (RegExp | TranslationKey)[];
|
|
7
|
+
}>;
|
|
8
|
+
'no-missing-keys': Partial<{
|
|
9
|
+
ignores: (RegExp | TranslationKey)[];
|
|
10
|
+
}>;
|
|
11
|
+
'no-unused-keys': Partial<{
|
|
12
|
+
ignores: (RegExp | TranslationKey)[];
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
export type LintRules = {
|
|
16
|
+
[K in LintRule]: boolean | LintRuleOptions[K];
|
|
17
|
+
};
|
|
18
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-intl/utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Utilities for ember-intl packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-intl"
|
|
@@ -28,17 +28,16 @@
|
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@codemod-utils/files": "^4.1.0",
|
|
31
|
-
"js-yaml": "^5.4.
|
|
31
|
+
"js-yaml": "^5.4.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@codemod-utils/tests": "^3.3.0",
|
|
35
35
|
"@shared-configs/eslint-config-node": "0.0.0",
|
|
36
36
|
"@shared-configs/prettier": "0.0.0",
|
|
37
37
|
"@shared-configs/typescript": "0.0.0",
|
|
38
|
-
"@types/
|
|
39
|
-
"@types/node": "^22.20.4",
|
|
38
|
+
"@types/node": "^22.20.5",
|
|
40
39
|
"concurrently": "^10.0.5",
|
|
41
|
-
"eslint": "^10.
|
|
40
|
+
"eslint": "^10.12.0",
|
|
42
41
|
"prettier": "^3.9.9",
|
|
43
42
|
"typescript": "^6.0.3"
|
|
44
43
|
},
|