@pax2pay/model-paxgiro-card 0.0.25 → 0.0.26
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/.prettierrc +3 -2
- package/Card/Creatable.ts +1 -1
- package/eslint.config.mjs +81 -0
- package/package.json +14 -11
- package/.eslintignore +0 -4
- package/.eslintrc +0 -71
package/.prettierrc
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"printWidth": 120,
|
|
3
3
|
"useTabs": true,
|
|
4
|
+
"tabWidth": 2,
|
|
4
5
|
"semi": false,
|
|
5
6
|
"singleQuote": false,
|
|
6
7
|
"bracketSpacing": true,
|
|
7
|
-
"
|
|
8
|
+
"bracketSameLine": true,
|
|
8
9
|
"arrowParens": "avoid",
|
|
9
10
|
"endOfLine": "lf",
|
|
10
|
-
"
|
|
11
|
+
"trailingComma": "es5"
|
|
11
12
|
}
|
package/Card/Creatable.ts
CHANGED
|
@@ -12,7 +12,7 @@ export namespace Creatable {
|
|
|
12
12
|
pax2pay.Card.Preset,
|
|
13
13
|
"test-pg-200" | "test-pg-150" | "test-ta-pg-200" | "test-ta-pg-bc-200"
|
|
14
14
|
>[] = ["test-pg-200", "test-ta-pg-200", "test-pg-150", "test-ta-pg-bc-200"]
|
|
15
|
-
export type Preset = typeof presets[number]
|
|
15
|
+
export type Preset = (typeof presets)[number]
|
|
16
16
|
export const type = isly.object<Creatable>({
|
|
17
17
|
id: isly.string(),
|
|
18
18
|
preset: isly.string(presets),
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { defineConfig, globalIgnores } from "eslint/config";
|
|
2
|
+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
|
|
3
|
+
import prettier from "eslint-plugin-prettier";
|
|
4
|
+
import simpleImportSort from "eslint-plugin-simple-import-sort";
|
|
5
|
+
import tsParser from "@typescript-eslint/parser";
|
|
6
|
+
import path from "node:path";
|
|
7
|
+
import { fileURLToPath } from "node:url";
|
|
8
|
+
import js from "@eslint/js";
|
|
9
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
10
|
+
|
|
11
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
12
|
+
const __dirname = path.dirname(__filename);
|
|
13
|
+
const compat = new FlatCompat({
|
|
14
|
+
baseDirectory: __dirname,
|
|
15
|
+
recommendedConfig: js.configs.recommended,
|
|
16
|
+
allConfig: js.configs.all
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export default defineConfig([
|
|
20
|
+
globalIgnores(["**/node_modules", "**/dist", "**/transpiled", "**/*.js", "**/*.d.ts"]),
|
|
21
|
+
{
|
|
22
|
+
extends: compat.extends(
|
|
23
|
+
"eslint:recommended",
|
|
24
|
+
"plugin:@typescript-eslint/eslint-recommended",
|
|
25
|
+
"plugin:@typescript-eslint/recommended",
|
|
26
|
+
"plugin:prettier/recommended",
|
|
27
|
+
),
|
|
28
|
+
plugins: {
|
|
29
|
+
"@typescript-eslint": typescriptEslint,
|
|
30
|
+
prettier,
|
|
31
|
+
"simple-import-sort": simpleImportSort,
|
|
32
|
+
},
|
|
33
|
+
languageOptions: {
|
|
34
|
+
parser: tsParser,
|
|
35
|
+
},
|
|
36
|
+
settings: {},
|
|
37
|
+
rules: {
|
|
38
|
+
curly: ["error", "all"],
|
|
39
|
+
"prettier/prettier": "warn",
|
|
40
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
41
|
+
"@typescript-eslint/no-namespace": "off",
|
|
42
|
+
"prefer-const": 1,
|
|
43
|
+
"@typescript-eslint/no-unused-vars": [2, {
|
|
44
|
+
vars: "all",
|
|
45
|
+
args: "none",
|
|
46
|
+
varsIgnorePattern: "h",
|
|
47
|
+
}],
|
|
48
|
+
"@typescript-eslint/no-unused-expressions": [1, {
|
|
49
|
+
allowShortCircuit: true,
|
|
50
|
+
allowTernary: true,
|
|
51
|
+
}],
|
|
52
|
+
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
53
|
+
"no-case-declarations": "off",
|
|
54
|
+
"no-inner-declarations": "off",
|
|
55
|
+
"sort-imports": "off",
|
|
56
|
+
"simple-import-sort/imports": ["error", {
|
|
57
|
+
groups: [[
|
|
58
|
+
"@stencil/core",
|
|
59
|
+
"cryptly",
|
|
60
|
+
"flagly",
|
|
61
|
+
"gracely",
|
|
62
|
+
"isoly",
|
|
63
|
+
"paramly",
|
|
64
|
+
"selectively",
|
|
65
|
+
"langly",
|
|
66
|
+
"tidily",
|
|
67
|
+
"uply",
|
|
68
|
+
"authly",
|
|
69
|
+
"persistly",
|
|
70
|
+
"servly",
|
|
71
|
+
"servly-azure",
|
|
72
|
+
"smoothly",
|
|
73
|
+
"^\\u0000",
|
|
74
|
+
"^@?\\w",
|
|
75
|
+
"^",
|
|
76
|
+
"^\\.",
|
|
77
|
+
]],
|
|
78
|
+
}],
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pax2pay/model-paxgiro-card",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26",
|
|
4
4
|
"description": "Library containing data model types and functions for the PaxGiro Card API.",
|
|
5
5
|
"author": "Pax2Pay",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,18 +43,21 @@
|
|
|
43
43
|
"esbuild": ">=0.25.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"eslint": "
|
|
49
|
-
"eslint
|
|
50
|
-
"eslint
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
46
|
+
"@eslint/eslintrc": "^3.3.5",
|
|
47
|
+
"@eslint/js": "^10.0.1",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "8.58.2",
|
|
49
|
+
"@typescript-eslint/parser": "8.58.2",
|
|
50
|
+
"eslint": "^10.2.0",
|
|
51
|
+
"eslint-config-prettier": "^10.1.8",
|
|
52
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
53
|
+
"eslint-plugin-simple-import-sort": "^13.0.0",
|
|
54
|
+
"prettier": "3.8.3",
|
|
55
|
+
"rimraf": "^6.1.3",
|
|
56
|
+
"typescript": "^5.9.3",
|
|
57
|
+
"vitest": "^3.2.4"
|
|
55
58
|
},
|
|
56
59
|
"dependencies": {
|
|
57
|
-
"@pax2pay/model-banking": "0.1.
|
|
60
|
+
"@pax2pay/model-banking": "0.1.608",
|
|
58
61
|
"isly": "0.1.20",
|
|
59
62
|
"isoly": "2.3.11",
|
|
60
63
|
"cryptly": "^4.0.6"
|
package/.eslintignore
DELETED
package/.eslintrc
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"parser": "@typescript-eslint/parser",
|
|
4
|
-
"plugins": [
|
|
5
|
-
"@typescript-eslint",
|
|
6
|
-
"prettierx",
|
|
7
|
-
"simple-import-sort"
|
|
8
|
-
],
|
|
9
|
-
"extends": [
|
|
10
|
-
"eslint:recommended",
|
|
11
|
-
"plugin:@typescript-eslint/eslint-recommended",
|
|
12
|
-
"plugin:@typescript-eslint/recommended",
|
|
13
|
-
"plugin:prettierx/default"
|
|
14
|
-
],
|
|
15
|
-
"rules": {
|
|
16
|
-
"prettierx/options": [
|
|
17
|
-
1,
|
|
18
|
-
{
|
|
19
|
-
"singleQuote": false
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"@typescript-eslint/no-explicit-any": "off",
|
|
23
|
-
"@typescript-eslint/no-namespace": "off",
|
|
24
|
-
"prefer-const": 1,
|
|
25
|
-
"@typescript-eslint/no-unused-vars": [
|
|
26
|
-
2,
|
|
27
|
-
{
|
|
28
|
-
"vars": "all",
|
|
29
|
-
"args": "none",
|
|
30
|
-
"varsIgnorePattern": "h"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
34
|
-
"no-case-declarations": "off",
|
|
35
|
-
"no-inner-declarations": "off",
|
|
36
|
-
"sort-imports": "off",
|
|
37
|
-
"simple-import-sort/imports": [
|
|
38
|
-
"error",
|
|
39
|
-
{
|
|
40
|
-
"groups": [
|
|
41
|
-
[
|
|
42
|
-
"@stencil/core",
|
|
43
|
-
"cryptly",
|
|
44
|
-
"flagly",
|
|
45
|
-
"gracely",
|
|
46
|
-
"isoly",
|
|
47
|
-
"paramly",
|
|
48
|
-
"selectively",
|
|
49
|
-
"langly",
|
|
50
|
-
"tidily",
|
|
51
|
-
"uply",
|
|
52
|
-
"authly",
|
|
53
|
-
"persistly",
|
|
54
|
-
"servly",
|
|
55
|
-
"servly-azure",
|
|
56
|
-
"smoothly",
|
|
57
|
-
"^\\u0000",
|
|
58
|
-
"^@?\\w",
|
|
59
|
-
"^",
|
|
60
|
-
"^\\."
|
|
61
|
-
]
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
},
|
|
66
|
-
"settings": {
|
|
67
|
-
"prettierx": {
|
|
68
|
-
"usePrettierrc": true
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|