@nokkvireyr/vue-config 1.1.0 → 1.2.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/main.js +19 -25
- package/dist/types/lint/lint.d.ts +2 -1
- package/dist/types/lint/lint.d.ts.map +1 -1
- package/package.json +6 -3
package/dist/main.js
CHANGED
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "@eslint/js";
|
|
2
2
|
import e from "typescript-eslint";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import s from "eslint-plugin-vue";
|
|
4
|
+
import i from "globals";
|
|
5
|
+
import a from "eslint-config-prettier";
|
|
6
|
+
const f = ({
|
|
7
|
+
globals: r = {},
|
|
8
|
+
rules: t = {},
|
|
9
|
+
ignores: n = []
|
|
8
10
|
} = {}) => e.config(
|
|
9
11
|
// @ts-ignore
|
|
10
|
-
|
|
11
|
-
e.configs.recommended,
|
|
12
|
+
{ ignores: ["**/dist", ...n] },
|
|
12
13
|
{
|
|
13
14
|
extends: [
|
|
14
|
-
|
|
15
|
+
o.configs.recommended,
|
|
15
16
|
...e.configs.recommended,
|
|
16
|
-
...
|
|
17
|
+
...s.configs["flat/recommended"]
|
|
17
18
|
],
|
|
18
|
-
files: ["**/*.{ts,vue}"],
|
|
19
|
+
files: ["**/*.{ts,vue,js}"],
|
|
19
20
|
languageOptions: {
|
|
20
21
|
ecmaVersion: "latest",
|
|
21
22
|
sourceType: "module",
|
|
23
|
+
globals: { ...i.browser, ...r },
|
|
22
24
|
parserOptions: {
|
|
23
25
|
parser: e.parser
|
|
24
26
|
}
|
|
25
27
|
},
|
|
26
28
|
rules: {
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
s,
|
|
31
|
-
{
|
|
32
|
-
languageOptions: {
|
|
33
|
-
globals: n
|
|
34
|
-
},
|
|
35
|
-
rules: {
|
|
36
|
-
"no-console": "warn",
|
|
29
|
+
"no-console": ["warn", { allow: ["warn", "error"] }],
|
|
37
30
|
"no-debugger": "warn",
|
|
38
31
|
"no-unused-vars": "off",
|
|
39
32
|
"@typescript-eslint/no-unused-vars": [
|
|
@@ -67,8 +60,9 @@ const c = ({
|
|
|
67
60
|
],
|
|
68
61
|
...t
|
|
69
62
|
}
|
|
70
|
-
}
|
|
71
|
-
|
|
63
|
+
},
|
|
64
|
+
a
|
|
65
|
+
), g = {
|
|
72
66
|
$schema: "https://json.schemastore.org/prettierrc",
|
|
73
67
|
semi: !0,
|
|
74
68
|
tabWidth: 2,
|
|
@@ -78,6 +72,6 @@ const c = ({
|
|
|
78
72
|
plugins: ["prettier-plugin-tailwindcss"]
|
|
79
73
|
};
|
|
80
74
|
export {
|
|
81
|
-
|
|
82
|
-
|
|
75
|
+
f as eslintConfig,
|
|
76
|
+
g as prettierConfig
|
|
83
77
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export type OptionRules = 'off' | 'warn' | 'error' | 'never';
|
|
2
2
|
export type Rules = Record<string, Omit<OptionRules, 'never'> | (OptionRules | Record<string, unknown>)[]>;
|
|
3
|
-
export declare const eslintConfig: ({ globals, rules, }?: {
|
|
3
|
+
export declare const eslintConfig: ({ globals, rules, ignores, }?: {
|
|
4
4
|
globals?: Record<string, "readonly" | "writable">;
|
|
5
5
|
rules?: Rules;
|
|
6
|
+
ignores?: string[];
|
|
6
7
|
}) => TSESLint.FlatConfig.ConfigArray;
|
|
7
8
|
//# sourceMappingURL=lint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../src/lint/lint.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAC7D,MAAM,MAAM,KAAK,GAAG,MAAM,CACxB,MAAM,EACN,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CACvE,CAAC;AAEF,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../src/lint/lint.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAC7D,MAAM,MAAM,KAAK,GAAG,MAAM,CACxB,MAAM,EACN,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CACvE,CAAC;AAEF,eAAO,MAAM,YAAY;;;;qCA2DtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nokkvireyr/vue-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"type": "module",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
13
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
14
|
-
"build": "tsc -P ./tsconfig.decleration.json && vite build"
|
|
14
|
+
"build": "tsc -P ./tsconfig.decleration.json && vite build",
|
|
15
|
+
"lint": "eslint src/**/*.{ts,tsx,vue}"
|
|
15
16
|
},
|
|
16
17
|
"keywords": [],
|
|
17
18
|
"author": "",
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
"eslint": ">=9.0.0",
|
|
22
23
|
"eslint-config-prettier": ">=10.0.0",
|
|
23
24
|
"eslint-plugin-vue": ">=9.0.0",
|
|
25
|
+
"globals": ">=14.0.0",
|
|
24
26
|
"prettier": ">=3.0.0",
|
|
25
27
|
"prettier-plugin-tailwindcss": ">=0.6.0",
|
|
26
28
|
"typescript-eslint": ">=8.0.0",
|
|
@@ -33,10 +35,11 @@
|
|
|
33
35
|
"eslint": "^9.20.0",
|
|
34
36
|
"eslint-config-prettier": "^10.0.1",
|
|
35
37
|
"eslint-plugin-vue": "^9.32.0",
|
|
38
|
+
"globals": "^16.0.0",
|
|
36
39
|
"prettier": "^3.5.0",
|
|
37
40
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
38
41
|
"typescript": "^5.4.5",
|
|
39
|
-
"typescript-eslint": "^8.24.
|
|
42
|
+
"typescript-eslint": "^8.24.1",
|
|
40
43
|
"vite": "^5.2.12",
|
|
41
44
|
"vue-eslint-parser": "^9.4.3"
|
|
42
45
|
}
|