@nokkvireyr/vue-config 2.1.0 → 2.1.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/main.js CHANGED
@@ -60,42 +60,6 @@ var a = ({ globals: a = {}, rules: o = {}, ignores: s = [], oxlintPlugin: c = vo
60
60
  printWidth: 100,
61
61
  trailingComma: "es5",
62
62
  plugins: ["prettier-plugin-tailwindcss"]
63
- }, s = ({ plugins: e = [], categories: t = {}, rules: n = {}, globals: r = {}, ignorePatterns: i = [], overrides: a = [] } = {}) => ({
64
- plugins: [
65
- "typescript",
66
- "vue",
67
- ...(e || []).filter((e) => e !== "typescript" && e !== "vue").filter(Boolean)
68
- ],
69
- categories: {
70
- correctness: "warn",
71
- ...t
72
- },
73
- rules: {
74
- "no-console": ["warn", { allow: ["warn", "error"] }],
75
- "no-debugger": "warn",
76
- "prefer-const": "error",
77
- "typescript/no-unused-vars": ["warn", {
78
- argsIgnorePattern: "^_",
79
- varsIgnorePattern: "^_",
80
- caughtErrorsIgnorePattern: "^_"
81
- }],
82
- "typescript/no-explicit-any": "off",
83
- "typescript/ban-ts-comment": "off",
84
- "vue/multi-word-component-names": "off",
85
- ...n
86
- },
87
- env: { browser: !0 },
88
- globals: r,
89
- ignorePatterns: ["dist/**", ...i],
90
- overrides: a
91
- }), c = (e = {}) => ({
92
- semi: !0,
93
- tabWidth: 2,
94
- singleQuote: !0,
95
- printWidth: 100,
96
- trailingComma: "es5",
97
- sortTailwindcss: {},
98
- ...e
99
- });
63
+ };
100
64
  //#endregion
101
- export { a as eslintConfig, c as oxfmtConfig, s as oxlintConfig, o as prettierConfig };
65
+ export { a as eslintConfig, o as prettierConfig };
package/dist/oxc.js ADDED
@@ -0,0 +1,40 @@
1
+ //#region src/oxlint/oxlint.ts
2
+ var e = ({ plugins: e = [], categories: t = {}, rules: n = {}, globals: r = {}, ignorePatterns: i = [], overrides: a = [] } = {}) => ({
3
+ plugins: [
4
+ "typescript",
5
+ "vue",
6
+ ...(e || []).filter((e) => e !== "typescript" && e !== "vue").filter(Boolean)
7
+ ],
8
+ categories: {
9
+ correctness: "warn",
10
+ ...t
11
+ },
12
+ rules: {
13
+ "no-console": ["warn", { allow: ["warn", "error"] }],
14
+ "no-debugger": "warn",
15
+ "prefer-const": "error",
16
+ "typescript/no-unused-vars": ["warn", {
17
+ argsIgnorePattern: "^_",
18
+ varsIgnorePattern: "^_",
19
+ caughtErrorsIgnorePattern: "^_"
20
+ }],
21
+ "typescript/no-explicit-any": "off",
22
+ "typescript/ban-ts-comment": "off",
23
+ "vue/multi-word-component-names": "off",
24
+ ...n
25
+ },
26
+ env: { browser: !0 },
27
+ globals: r,
28
+ ignorePatterns: ["dist/**", ...i],
29
+ overrides: a
30
+ }), t = (e = {}) => ({
31
+ semi: !0,
32
+ tabWidth: 2,
33
+ singleQuote: !0,
34
+ printWidth: 100,
35
+ trailingComma: "es5",
36
+ sortTailwindcss: {},
37
+ ...e
38
+ });
39
+ //#endregion
40
+ export { t as oxfmtConfig, e as oxlintConfig };
@@ -1,5 +1,3 @@
1
1
  export * from './lint/lint';
2
2
  export * from './prettier/prettier';
3
- export * from './oxlint/oxlint';
4
- export * from './oxfmt/oxfmt';
5
3
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './oxlint/oxlint';
2
+ export * from './oxfmt/oxfmt';
3
+ //# sourceMappingURL=oxc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oxc.d.ts","sourceRoot":"","sources":["../../src/oxc.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
@@ -1,5 +1,4 @@
1
- import type { defineConfig } from 'oxfmt';
1
+ import type { OxfmtConfig } from 'oxfmt';
2
2
  export type { OxfmtConfig } from 'oxfmt';
3
- type OxfmtConfig = Parameters<typeof defineConfig>[0];
4
3
  export declare const oxfmtConfig: (overrides?: OxfmtConfig) => OxfmtConfig;
5
4
  //# sourceMappingURL=oxfmt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oxfmt.d.ts","sourceRoot":"","sources":["../../../src/oxfmt/oxfmt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,YAAY,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzC,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AACtD,eAAO,MAAM,WAAW,eAAe,WAAW,KAAQ,WAQxD,CAAC"}
1
+ {"version":3,"file":"oxfmt.d.ts","sourceRoot":"","sources":["../../../src/oxfmt/oxfmt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACzC,YAAY,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzC,eAAO,MAAM,WAAW,eAAe,WAAW,KAAQ,WAQxD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nokkvireyr/vue-config",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,6 +13,16 @@
13
13
  "files": [
14
14
  "dist"
15
15
  ],
16
+ "exports": {
17
+ ".": {
18
+ "import": "./dist/main.js",
19
+ "types": "./dist/types/main.d.ts"
20
+ },
21
+ "./oxc": {
22
+ "import": "./dist/oxc.js",
23
+ "types": "./dist/types/oxc.d.ts"
24
+ }
25
+ },
16
26
  "scripts": {
17
27
  "test": "echo \"Error: no test specified\" && exit 1",
18
28
  "build": "tsc -P ./tsconfig.decleration.json && vite build",
@@ -34,7 +44,7 @@
34
44
  "prettier": ">=3.0.0",
35
45
  "prettier-plugin-tailwindcss": ">=0.6.0",
36
46
  "typescript-eslint": ">=8.0.0",
37
- "vue-eslint-parser": "^9.4.3"
47
+ "vue-eslint-parser": ">=9.0.0"
38
48
  },
39
49
  "peerDependenciesMeta": {
40
50
  "@eslint/js": {