@dpa-id-components/dpa-shared-components 14.1.0 → 15.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.
@@ -1,10 +1,10 @@
1
+ import skipFormattingConfig from "@vue/eslint-config-prettier/skip-formatting";
1
2
  import pluginVue from "eslint-plugin-vue";
2
3
  import js from "@eslint/js";
3
4
  import {
4
5
  defineConfigWithVueTs,
5
6
  vueTsConfigs,
6
7
  } from "@vue/eslint-config-typescript";
7
- import prettierConfig from "@vue/eslint-config-prettier";
8
8
  import tailwind from "eslint-plugin-tailwindcss";
9
9
  import globals from "globals";
10
10
 
@@ -12,8 +12,8 @@ export default defineConfigWithVueTs(
12
12
  ...pluginVue.configs["flat/recommended"],
13
13
  js.configs.recommended,
14
14
  vueTsConfigs.recommended,
15
- prettierConfig,
16
15
  ...tailwind.configs["flat/recommended"],
16
+
17
17
  {
18
18
  settings: {
19
19
  tailwindcss: {
@@ -25,20 +25,11 @@ export default defineConfigWithVueTs(
25
25
  rules: {
26
26
  "@typescript-eslint/no-explicit-any": "off",
27
27
  "@typescript-eslint/ban-ts-comment": "off",
28
- "@typescript-eslint/no-non-null-assertion": "warn",
29
- "@typescript-eslint/triple-slash-reference": "off",
30
28
  "tailwindcss/no-custom-classname": "off",
29
+ "vue/define-emits-declaration": ["error", "type-literal"],
31
30
  "vue/multi-word-component-names": "off",
32
31
  "vue/no-v-html": "off",
33
32
  "no-console": "error",
34
- "vue/no-multiple-template-root": "off",
35
- "vue/no-v-for-template-key": "off",
36
- "vue/no-reserved-props": [
37
- "error",
38
- {
39
- vueVersion: 3,
40
- },
41
- ],
42
33
  },
43
34
  languageOptions: {
44
35
  globals: {
@@ -47,4 +38,7 @@ export default defineConfigWithVueTs(
47
38
  },
48
39
  },
49
40
  },
41
+
42
+ // Turns off formatting-related ESLint rules so that formatting can be delegated to the Prettier CLI. See https://github.com/vuejs/eslint-config-prettier?tab=readme-ov-file#use-separate-commands-for-linting-and-formatting
43
+ skipFormattingConfig,
50
44
  );
package/dist/fonts.css CHANGED
@@ -1,23 +1,26 @@
1
1
  @font-face {
2
- font-family: "Inter";
3
- font-style: normal;
4
- font-weight: 400;
5
- src: url("@/assets/fonts/Inter-Regular.woff2") format("woff2"),
2
+ font-family: "Inter";
3
+ font-style: normal;
4
+ font-weight: 400;
5
+ src:
6
+ url("@/assets/fonts/Inter-Regular.woff2") format("woff2"),
6
7
  url("@/assets/fonts/Inter-Regular.woff") format("woff");
7
8
  }
8
9
 
9
10
  @font-face {
10
- font-family: "Inter";
11
- font-style: normal;
12
- font-weight: 500;
13
- src: url("@/assets/fonts/Inter-Medium.woff2") format("woff2"),
11
+ font-family: "Inter";
12
+ font-style: normal;
13
+ font-weight: 500;
14
+ src:
15
+ url("@/assets/fonts/Inter-Medium.woff2") format("woff2"),
14
16
  url("@/assets/fonts/Inter-Medium.woff") format("woff");
15
17
  }
16
18
 
17
19
  @font-face {
18
- font-family: "Inter";
19
- font-style: normal;
20
- font-weight: 700;
21
- src: url("@/assets/fonts/Inter-Bold.woff2") format("woff2"),
20
+ font-family: "Inter";
21
+ font-style: normal;
22
+ font-weight: 700;
23
+ src:
24
+ url("@/assets/fonts/Inter-Bold.woff2") format("woff2"),
22
25
  url("@/assets/fonts/Inter-Bold.woff") format("woff");
23
- }
26
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @see https://prettier.io/docs/configuration
3
+ * @type {import("prettier").Config}
4
+ */
5
+ export default {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpa-id-components/dpa-shared-components",
3
- "version": "14.1.0",
3
+ "version": "15.0.0",
4
4
  "engines": {
5
5
  "node": ">=20"
6
6
  },
@@ -8,6 +8,7 @@
8
8
  "files": [
9
9
  "dist"
10
10
  ],
11
+ "type": "commonjs",
11
12
  "main": "./dist/dpa-shared-components.umd.cjs",
12
13
  "module": "./dist/dpa-shared-components.mjs",
13
14
  "style": "./dist/style.css",
@@ -26,20 +27,21 @@
26
27
  "require": "./dist/tailwind.config.cjs",
27
28
  "import": "./dist/tailwind.config.cjs"
28
29
  },
29
- "./eslint.config": {
30
- "import": "./dist/eslint.base.config.mjs"
31
- },
32
- "./.prettierrc": {
33
- "require": "./dist/.prettierrc"
34
- }
30
+ "./eslintConfig": "./dist/eslint.base.config.mjs",
31
+ "./prettierConfig": "./dist/prettier.config.mjs"
35
32
  },
36
33
  "scripts": {
37
34
  "build": "vite build",
38
35
  "storybook": "storybook dev -p 6006",
39
36
  "build-storybook": "storybook build",
40
37
  "test": "vitest --environment jsdom --root src/",
41
- "type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
42
- "lint": "eslint . --fix",
38
+ "lint": "run-s lint:*",
39
+ "lint:format": "prettier --check .",
40
+ "lint:js": "eslint",
41
+ "lint:types": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
42
+ "fix": "run-s fix:*",
43
+ "fix:format": "prettier --write .",
44
+ "fix:js": "eslint --fix",
43
45
  "release:patch": "vite build && commit-and-tag-version --release-as patch && git push --follow-tags origin main && npm publish",
44
46
  "release:minor": "vite build && commit-and-tag-version --release-as minor && git push --follow-tags origin main && npm publish",
45
47
  "release:major": "vite build && commit-and-tag-version --release-as major && git push --follow-tags origin main && npm publish"
@@ -68,9 +70,10 @@
68
70
  "eslint": "^9.18.0",
69
71
  "eslint-plugin-storybook": "^0.12.0",
70
72
  "jsdom": "^26.0.0",
73
+ "npm-run-all2": "^8.0.4",
71
74
  "postcss": "^8.4.27",
72
75
  "postcss-focus-visible": "^10.0.0",
73
- "prettier": "^3.0.1",
76
+ "prettier": "^3.5.3",
74
77
  "rollup-plugin-copy": "^3.4.0",
75
78
  "storybook": "^8.0.0",
76
79
  "tailwindcss": "^3.4.1",
package/dist/.prettierrc DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "tabWidth": 2,
3
- "vueIndentScriptAndStyle": false
4
- }