@pubinfo/config 2.0.0-beta.1
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/eslint/index.cjs +8 -0
- package/dist/eslint/index.d.cts +6 -0
- package/dist/eslint/index.d.mts +6 -0
- package/dist/eslint/index.d.ts +6 -0
- package/dist/eslint/index.mjs +6 -0
- package/dist/index.cjs +21 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.mjs +8 -0
- package/dist/shared/config.BDKVPKTO.mjs +635 -0
- package/dist/shared/config.CSqBb4YU.d.cts +5 -0
- package/dist/shared/config.CSqBb4YU.d.mts +5 -0
- package/dist/shared/config.CSqBb4YU.d.ts +5 -0
- package/dist/shared/config.DPEra-Xx.mjs +141 -0
- package/dist/shared/config.YMrrkzU5.cjs +641 -0
- package/dist/shared/config.wdnazHMp.cjs +147 -0
- package/dist/stylelint.cjs +139 -0
- package/dist/stylelint.d.cts +106 -0
- package/dist/stylelint.d.mts +106 -0
- package/dist/stylelint.d.ts +106 -0
- package/dist/stylelint.mjs +137 -0
- package/dist/themes/index.cjs +13 -0
- package/dist/themes/index.d.cts +33 -0
- package/dist/themes/index.d.mts +33 -0
- package/dist/themes/index.d.ts +33 -0
- package/dist/themes/index.mjs +3 -0
- package/dist/unocss.cjs +59 -0
- package/dist/unocss.d.cts +5 -0
- package/dist/unocss.d.mts +5 -0
- package/dist/unocss.d.ts +5 -0
- package/dist/unocss.mjs +57 -0
- package/package.json +66 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import antfu from '@antfu/eslint-config';
|
|
2
|
+
|
|
3
|
+
const GLOB_EXCLUDE = [
|
|
4
|
+
"**/node_modules",
|
|
5
|
+
"**/dist",
|
|
6
|
+
"**/package-lock.json",
|
|
7
|
+
"**/yarn.lock",
|
|
8
|
+
"**/pnpm-lock.yaml",
|
|
9
|
+
"**/bun.lockb",
|
|
10
|
+
"**/output",
|
|
11
|
+
"**/coverage",
|
|
12
|
+
"**/temp",
|
|
13
|
+
"**/.temp",
|
|
14
|
+
"**/tmp",
|
|
15
|
+
"**/.tmp",
|
|
16
|
+
"**/.history",
|
|
17
|
+
"**/.vitepress/cache",
|
|
18
|
+
"**/.nuxt",
|
|
19
|
+
"**/.next",
|
|
20
|
+
"**/.vercel",
|
|
21
|
+
"**/.changeset",
|
|
22
|
+
"**/.idea",
|
|
23
|
+
"**/.cache",
|
|
24
|
+
"**/.output",
|
|
25
|
+
"**/.vite-inspect",
|
|
26
|
+
"**/es",
|
|
27
|
+
"**/lib",
|
|
28
|
+
"**/CHANGELOG*.md",
|
|
29
|
+
"**/*.min.*",
|
|
30
|
+
"**/LICENSE*",
|
|
31
|
+
"**/__snapshots__",
|
|
32
|
+
"**/auto-import?(s).d.ts",
|
|
33
|
+
"**/components.d.ts",
|
|
34
|
+
"**/*.cjs",
|
|
35
|
+
"**/*.mjs",
|
|
36
|
+
"**/assets/**/*.json"
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
async function ignores() {
|
|
40
|
+
return [
|
|
41
|
+
{
|
|
42
|
+
ignores: GLOB_EXCLUDE
|
|
43
|
+
}
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
async function stylistic() {
|
|
48
|
+
return [
|
|
49
|
+
{
|
|
50
|
+
rules: {
|
|
51
|
+
"eslint-comments/no-unlimited-disable": "off",
|
|
52
|
+
"curly": ["error", "all"],
|
|
53
|
+
"antfu/consistent-list-newline": "off",
|
|
54
|
+
"regexp/no-unused-capturing-group": "off",
|
|
55
|
+
"unused-imports/no-unused-vars": "off",
|
|
56
|
+
"unicorn/consistent-function-scoping": "off"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
rules: {
|
|
61
|
+
"style/semi": ["error", "always"]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
// files: [
|
|
66
|
+
// '**/plop-templates/**/*.js',
|
|
67
|
+
// ],
|
|
68
|
+
rules: {
|
|
69
|
+
"style/arrow-parens": ["off"]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
];
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
async function vue() {
|
|
76
|
+
return [
|
|
77
|
+
{
|
|
78
|
+
files: [
|
|
79
|
+
"**/*.vue"
|
|
80
|
+
],
|
|
81
|
+
rules: {
|
|
82
|
+
"vue/block-order": ["error", {
|
|
83
|
+
order: [
|
|
84
|
+
"route",
|
|
85
|
+
"i18n",
|
|
86
|
+
"script",
|
|
87
|
+
"template",
|
|
88
|
+
"style"
|
|
89
|
+
]
|
|
90
|
+
}],
|
|
91
|
+
"vue/component-api-style": [
|
|
92
|
+
"error",
|
|
93
|
+
["script-setup", "composition"]
|
|
94
|
+
],
|
|
95
|
+
"vue/match-component-import-name": ["error"],
|
|
96
|
+
"vue/new-line-between-multi-line-property": ["error"],
|
|
97
|
+
"vue/no-empty-component-block": ["error"],
|
|
98
|
+
"vue/no-potential-component-option-typo": ["error", {
|
|
99
|
+
presets: ["all"]
|
|
100
|
+
}],
|
|
101
|
+
"vue/prefer-define-options": ["error"],
|
|
102
|
+
"vue/valid-define-options": ["error"],
|
|
103
|
+
"vue/require-macro-variable-name": ["error", {
|
|
104
|
+
defineProps: "props",
|
|
105
|
+
defineEmits: "emit",
|
|
106
|
+
defineSlots: "slots",
|
|
107
|
+
useSlots: "slots",
|
|
108
|
+
useAttrs: "attrs"
|
|
109
|
+
}],
|
|
110
|
+
"vue/no-unused-emit-declarations": ["error"],
|
|
111
|
+
"vue/attribute-hyphenation": [
|
|
112
|
+
"warn",
|
|
113
|
+
"always",
|
|
114
|
+
{}
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
files: [
|
|
120
|
+
"**/views/**/*.vue"
|
|
121
|
+
],
|
|
122
|
+
rules: {
|
|
123
|
+
"vue/no-multiple-template-root": ["error"]
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
];
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
async function pubinfo(...userConfigs) {
|
|
130
|
+
return antfu(
|
|
131
|
+
{
|
|
132
|
+
unocss: false
|
|
133
|
+
},
|
|
134
|
+
vue(),
|
|
135
|
+
stylistic(),
|
|
136
|
+
ignores(),
|
|
137
|
+
...userConfigs
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export { pubinfo as p };
|