@pubinfo-nightly/config 2025.11.14
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/LICENSE +21 -0
- package/dist/eslint/index.d.ts +2 -0
- package/dist/eslint/index.js +3 -0
- package/dist/eslint.js +120 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6 -0
- package/dist/index2.d.ts +6 -0
- package/dist/index3.d.ts +28 -0
- package/dist/index4.d.ts +10 -0
- package/dist/stylelint.d.ts +2 -0
- package/dist/stylelint.js +3 -0
- package/dist/stylelint2.d.ts +107 -0
- package/dist/stylelint2.js +114 -0
- package/dist/themes/index.d.ts +2 -0
- package/dist/themes/index.js +3 -0
- package/dist/themes.js +558 -0
- package/dist/unocss/index.d.ts +3 -0
- package/dist/unocss/index.js +4 -0
- package/dist/unocss.js +87 -0
- package/package.json +63 -0
- package/src/eslint/config/ignores.ts +10 -0
- package/src/eslint/config/stylistic.ts +21 -0
- package/src/eslint/config/vue.ts +53 -0
- package/src/eslint/factory.ts +20 -0
- package/src/eslint/globs.ts +86 -0
- package/src/eslint/index.ts +3 -0
- package/src/index.ts +4 -0
- package/src/stylelint.ts +134 -0
- package/src/themes/index.ts +3 -0
- package/src/themes/system/dark/dark.ts +47 -0
- package/src/themes/system/dark/dracula.ts +47 -0
- package/src/themes/system/dark/luxury.ts +47 -0
- package/src/themes/system/dark/night.ts +47 -0
- package/src/themes/system/dark/stone.ts +47 -0
- package/src/themes/system/dark/synthwave.ts +47 -0
- package/src/themes/system/light/barbie.ts +47 -0
- package/src/themes/system/light/classic.ts +47 -0
- package/src/themes/system/light/cyberpunk.ts +47 -0
- package/src/themes/system/light/light.ts +47 -0
- package/src/themes/system/light/naive.ts +47 -0
- package/src/themes/system/light/winter.ts +47 -0
- package/src/themes/theme.ts +18 -0
- package/src/themes/unocss-utils.ts +52 -0
- package/src/themes/utils.ts +81 -0
- package/src/unocss/index.ts +62 -0
- package/src/unocss/presetThemes.ts +57 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 PUBINFO 腾龙框架
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/eslint.js
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import antfu from "@antfu/eslint-config";
|
|
2
|
+
|
|
3
|
+
//#region src/eslint/globs.ts
|
|
4
|
+
const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
5
|
+
const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
6
|
+
const GLOB_MARKDOWN = "**/*.md";
|
|
7
|
+
const GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;
|
|
8
|
+
const GLOB_TESTS = [
|
|
9
|
+
`**/__tests__/**/*.${GLOB_SRC_EXT}`,
|
|
10
|
+
`**/*.spec.${GLOB_SRC_EXT}`,
|
|
11
|
+
`**/*.test.${GLOB_SRC_EXT}`,
|
|
12
|
+
`**/*.bench.${GLOB_SRC_EXT}`,
|
|
13
|
+
`**/*.benchmark.${GLOB_SRC_EXT}`
|
|
14
|
+
];
|
|
15
|
+
const GLOB_EXCLUDE = [
|
|
16
|
+
"**/node_modules",
|
|
17
|
+
"**/dist",
|
|
18
|
+
"**/package-lock.json",
|
|
19
|
+
"**/yarn.lock",
|
|
20
|
+
"**/pnpm-lock.yaml",
|
|
21
|
+
"**/bun.lockb",
|
|
22
|
+
"**/output",
|
|
23
|
+
"**/coverage",
|
|
24
|
+
"**/temp",
|
|
25
|
+
"**/.temp",
|
|
26
|
+
"**/tmp",
|
|
27
|
+
"**/.tmp",
|
|
28
|
+
"**/.history",
|
|
29
|
+
"**/.vitepress/cache",
|
|
30
|
+
"**/.nuxt",
|
|
31
|
+
"**/.next",
|
|
32
|
+
"**/.vercel",
|
|
33
|
+
"**/.changeset",
|
|
34
|
+
"**/.idea",
|
|
35
|
+
"**/.cache",
|
|
36
|
+
"**/.output",
|
|
37
|
+
"**/.vite-inspect",
|
|
38
|
+
"**/es",
|
|
39
|
+
"**/lib",
|
|
40
|
+
"**/CHANGELOG*.md",
|
|
41
|
+
"**/*.min.*",
|
|
42
|
+
"**/LICENSE*",
|
|
43
|
+
"**/__snapshots__",
|
|
44
|
+
"**/auto-import?(s).d.ts",
|
|
45
|
+
"**/components.d.ts",
|
|
46
|
+
"**/*.cjs",
|
|
47
|
+
"**/*.mjs",
|
|
48
|
+
"**/assets/**/*.json"
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/eslint/config/ignores.ts
|
|
53
|
+
async function ignores() {
|
|
54
|
+
return [{ ignores: GLOB_EXCLUDE }];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/eslint/config/stylistic.ts
|
|
59
|
+
async function stylistic() {
|
|
60
|
+
return [{ rules: {
|
|
61
|
+
"eslint-comments/no-unlimited-disable": "off",
|
|
62
|
+
"curly": ["error", "all"],
|
|
63
|
+
"antfu/consistent-list-newline": "off",
|
|
64
|
+
"regexp/no-unused-capturing-group": "off",
|
|
65
|
+
"unused-imports/no-unused-vars": "off",
|
|
66
|
+
"unicorn/consistent-function-scoping": "off"
|
|
67
|
+
} }, { rules: { "style/semi": ["error", "always"] } }];
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/eslint/config/vue.ts
|
|
72
|
+
async function vue() {
|
|
73
|
+
return [{
|
|
74
|
+
files: ["**/*.vue"],
|
|
75
|
+
rules: {
|
|
76
|
+
"vue/block-order": ["error", { order: [
|
|
77
|
+
"route",
|
|
78
|
+
"script",
|
|
79
|
+
"template",
|
|
80
|
+
"style"
|
|
81
|
+
] }],
|
|
82
|
+
"vue/component-api-style": ["error", ["script-setup", "composition"]],
|
|
83
|
+
"vue/match-component-import-name": ["error"],
|
|
84
|
+
"vue/new-line-between-multi-line-property": ["error"],
|
|
85
|
+
"vue/no-empty-component-block": ["error"],
|
|
86
|
+
"vue/no-potential-component-option-typo": ["error", { presets: ["all"] }],
|
|
87
|
+
"vue/prefer-define-options": ["error"],
|
|
88
|
+
"vue/valid-define-options": ["error"],
|
|
89
|
+
"vue/require-macro-variable-name": ["error", {
|
|
90
|
+
defineProps: "props",
|
|
91
|
+
defineEmits: "emit",
|
|
92
|
+
defineSlots: "slots",
|
|
93
|
+
useSlots: "slots",
|
|
94
|
+
useAttrs: "attrs"
|
|
95
|
+
}],
|
|
96
|
+
"vue/no-unused-emit-declarations": ["error"],
|
|
97
|
+
"vue/attribute-hyphenation": [
|
|
98
|
+
"warn",
|
|
99
|
+
"always",
|
|
100
|
+
{}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
}, {
|
|
104
|
+
files: ["**/views/**/*.vue"],
|
|
105
|
+
rules: { "vue/no-multiple-template-root": ["error"] }
|
|
106
|
+
}];
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region src/eslint/factory.ts
|
|
111
|
+
async function pubinfo(...userConfigs) {
|
|
112
|
+
return antfu({ unocss: false }, vue(), stylistic(), ignores(), ...userConfigs);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region src/eslint/index.ts
|
|
117
|
+
var eslint_default = pubinfo;
|
|
118
|
+
|
|
119
|
+
//#endregion
|
|
120
|
+
export { eslint_default as t };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { t as pubinfo } from "./index2.js";
|
|
2
|
+
import { t as _default$1 } from "./stylelint2.js";
|
|
3
|
+
import { a as getThemes, i as defineTheme, n as cssVarKey, o as globalTheme, r as customColorKey, s as themeOptions, t as colorScheme } from "./index3.js";
|
|
4
|
+
import { t as _default } from "./index4.js";
|
|
5
|
+
export { colorScheme, cssVarKey, customColorKey, defineTheme, pubinfo as eslint, getThemes, globalTheme, _default as presetPubinfo, _default$1 as stylelint, themeOptions };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { t as eslint_default } from "./eslint.js";
|
|
2
|
+
import { t as stylelint_default } from "./stylelint2.js";
|
|
3
|
+
import { n as defineTheme, r as getThemes, t as customColorKey } from "./themes.js";
|
|
4
|
+
import { t as unocss_default } from "./unocss.js";
|
|
5
|
+
|
|
6
|
+
export { customColorKey, defineTheme, eslint_default as eslint, getThemes, unocss_default as presetPubinfo, stylelint_default as stylelint };
|
package/dist/index2.d.ts
ADDED
package/dist/index3.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//#region src/themes/utils.d.ts
|
|
2
|
+
type CSSColorValue = string;
|
|
3
|
+
type manColor = 'bg' | 'container-bg' | 'border-color';
|
|
4
|
+
type headerColor = 'header-bg' | 'header-color' | 'header-menu-color' | 'header-menu-hover-bg' | 'header-menu-hover-color' | 'header-menu-active-bg' | 'header-menu-active-color';
|
|
5
|
+
type mainSidebarColor = 'main-sidebar-bg' | 'main-sidebar-menu-color' | 'main-sidebar-menu-hover-bg' | 'main-sidebar-menu-hover-color' | 'main-sidebar-menu-active-bg' | 'main-sidebar-menu-active-color';
|
|
6
|
+
type subSidebarColor = 'sub-sidebar-bg' | 'sub-sidebar-logo-bg' | 'sub-sidebar-logo-color' | 'sub-sidebar-menu-color' | 'sub-sidebar-menu-hover-bg' | 'sub-sidebar-menu-hover-color' | 'sub-sidebar-menu-active-bg' | 'sub-sidebar-menu-active-color';
|
|
7
|
+
type tabbarColor = 'tabbar-dividers-bg' | 'tabbar-tab-color' | 'tabbar-tab-hover-bg' | 'tabbar-tab-hover-color' | 'tabbar-tab-active-color';
|
|
8
|
+
type themeScheme = 'light' | 'dark';
|
|
9
|
+
type customColor = typeof customColorKey[number];
|
|
10
|
+
type benchmark = `--g-${manColor | headerColor | mainSidebarColor | subSidebarColor | tabbarColor}`;
|
|
11
|
+
type cssVarKey = customColor | benchmark;
|
|
12
|
+
type colorScheme = Record<cssVarKey, CSSColorValue> & {
|
|
13
|
+
'color-scheme': themeScheme;
|
|
14
|
+
} & {
|
|
15
|
+
label?: string;
|
|
16
|
+
};
|
|
17
|
+
interface themeOptions {
|
|
18
|
+
name: string;
|
|
19
|
+
colors: colorScheme;
|
|
20
|
+
}
|
|
21
|
+
declare const customColorKey: readonly ["--ui-primary", "--ui-text"];
|
|
22
|
+
interface globalTheme {
|
|
23
|
+
[key: string]: colorScheme;
|
|
24
|
+
}
|
|
25
|
+
declare function getThemes(): globalTheme;
|
|
26
|
+
declare function defineTheme(theme: themeOptions): globalTheme;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { getThemes as a, defineTheme as i, cssVarKey as n, globalTheme as o, customColorKey as r, themeOptions as s, colorScheme as t };
|
package/dist/index4.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { o as globalTheme } from "./index3.js";
|
|
2
|
+
import * as unocss0 from "unocss";
|
|
3
|
+
|
|
4
|
+
//#region src/unocss/index.d.ts
|
|
5
|
+
declare const _default: unocss0.PresetFactory<object, {
|
|
6
|
+
themes?: globalTheme[];
|
|
7
|
+
type?: "app" | "module";
|
|
8
|
+
}>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { _default as t };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
//#region src/stylelint.d.ts
|
|
2
|
+
declare const _default: {
|
|
3
|
+
extends: string[];
|
|
4
|
+
plugins: string[];
|
|
5
|
+
overrides: ({
|
|
6
|
+
files: string[];
|
|
7
|
+
customSyntax: string;
|
|
8
|
+
extends?: undefined;
|
|
9
|
+
rule?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
files: string[];
|
|
12
|
+
customSyntax: string;
|
|
13
|
+
extends: string[];
|
|
14
|
+
rule?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
files: string[];
|
|
17
|
+
customSyntax: string;
|
|
18
|
+
extends: string[];
|
|
19
|
+
rule: {
|
|
20
|
+
'scss/double-slash-comment-empty-line-before': null;
|
|
21
|
+
'scss/no-global-function-names': null;
|
|
22
|
+
};
|
|
23
|
+
})[];
|
|
24
|
+
rules: {
|
|
25
|
+
'at-rule-no-unknown': null;
|
|
26
|
+
'no-descending-specificity': null;
|
|
27
|
+
'property-no-unknown': null;
|
|
28
|
+
'font-family-no-missing-generic-family-keyword': null;
|
|
29
|
+
'selector-class-pattern': null;
|
|
30
|
+
'function-no-unknown': (boolean | {
|
|
31
|
+
ignoreFunctions: string[];
|
|
32
|
+
})[];
|
|
33
|
+
'selector-pseudo-element-no-unknown': (boolean | {
|
|
34
|
+
ignorePseudoElements: string[];
|
|
35
|
+
})[];
|
|
36
|
+
'@stylistic/at-rule-name-case': string;
|
|
37
|
+
'@stylistic/at-rule-name-space-after': string;
|
|
38
|
+
'@stylistic/at-rule-semicolon-newline-after': string;
|
|
39
|
+
'@stylistic/block-closing-brace-empty-line-before': string;
|
|
40
|
+
'@stylistic/block-closing-brace-newline-before': string;
|
|
41
|
+
'@stylistic/block-closing-brace-space-before': string;
|
|
42
|
+
'@stylistic/block-opening-brace-newline-after': string;
|
|
43
|
+
'@stylistic/block-opening-brace-space-after': string;
|
|
44
|
+
'@stylistic/block-opening-brace-space-before': string;
|
|
45
|
+
'@stylistic/color-hex-case': string;
|
|
46
|
+
'@stylistic/declaration-bang-space-after': string;
|
|
47
|
+
'@stylistic/declaration-bang-space-before': string;
|
|
48
|
+
'@stylistic/declaration-block-semicolon-newline-after': string;
|
|
49
|
+
'@stylistic/declaration-block-semicolon-space-after': string;
|
|
50
|
+
'@stylistic/declaration-block-semicolon-space-before': string;
|
|
51
|
+
'@stylistic/declaration-block-trailing-semicolon': string;
|
|
52
|
+
'@stylistic/declaration-colon-newline-after': string;
|
|
53
|
+
'@stylistic/declaration-colon-space-after': string;
|
|
54
|
+
'@stylistic/declaration-colon-space-before': string;
|
|
55
|
+
'@stylistic/function-comma-newline-after': string;
|
|
56
|
+
'@stylistic/function-comma-space-after': string;
|
|
57
|
+
'@stylistic/function-comma-space-before': string;
|
|
58
|
+
'@stylistic/function-max-empty-lines': number;
|
|
59
|
+
'@stylistic/function-parentheses-newline-inside': string;
|
|
60
|
+
'@stylistic/function-parentheses-space-inside': string;
|
|
61
|
+
'@stylistic/function-whitespace-after': string;
|
|
62
|
+
'@stylistic/indentation': number;
|
|
63
|
+
'@stylistic/max-empty-lines': number;
|
|
64
|
+
'@stylistic/media-feature-colon-space-after': string;
|
|
65
|
+
'@stylistic/media-feature-colon-space-before': string;
|
|
66
|
+
'@stylistic/media-feature-name-case': string;
|
|
67
|
+
'@stylistic/media-feature-parentheses-space-inside': string;
|
|
68
|
+
'@stylistic/media-feature-range-operator-space-after': string;
|
|
69
|
+
'@stylistic/media-feature-range-operator-space-before': string;
|
|
70
|
+
'@stylistic/media-query-list-comma-newline-after': string;
|
|
71
|
+
'@stylistic/media-query-list-comma-space-after': string;
|
|
72
|
+
'@stylistic/media-query-list-comma-space-before': string;
|
|
73
|
+
'@stylistic/no-empty-first-line': boolean;
|
|
74
|
+
'@stylistic/no-eol-whitespace': boolean;
|
|
75
|
+
'@stylistic/no-extra-semicolons': boolean;
|
|
76
|
+
'@stylistic/no-missing-end-of-source-newline': boolean;
|
|
77
|
+
'@stylistic/number-leading-zero': string;
|
|
78
|
+
'@stylistic/number-no-trailing-zeros': boolean;
|
|
79
|
+
'@stylistic/property-case': string;
|
|
80
|
+
'@stylistic/selector-attribute-brackets-space-inside': string;
|
|
81
|
+
'@stylistic/selector-attribute-operator-space-after': string;
|
|
82
|
+
'@stylistic/selector-attribute-operator-space-before': string;
|
|
83
|
+
'@stylistic/selector-combinator-space-after': string;
|
|
84
|
+
'@stylistic/selector-combinator-space-before': string;
|
|
85
|
+
'@stylistic/selector-descendant-combinator-no-non-space': boolean;
|
|
86
|
+
'@stylistic/selector-list-comma-newline-after': string;
|
|
87
|
+
'@stylistic/selector-list-comma-space-before': string;
|
|
88
|
+
'@stylistic/selector-max-empty-lines': number;
|
|
89
|
+
'@stylistic/selector-pseudo-class-case': string;
|
|
90
|
+
'@stylistic/selector-pseudo-class-parentheses-space-inside': string;
|
|
91
|
+
'@stylistic/selector-pseudo-element-case': string;
|
|
92
|
+
'@stylistic/string-quotes': string;
|
|
93
|
+
'@stylistic/unit-case': string;
|
|
94
|
+
'@stylistic/value-list-comma-newline-after': string;
|
|
95
|
+
'@stylistic/value-list-comma-space-after': string;
|
|
96
|
+
'@stylistic/value-list-comma-space-before': string;
|
|
97
|
+
'@stylistic/value-list-max-empty-lines': number;
|
|
98
|
+
'@stylistic/max-line-length': null;
|
|
99
|
+
'@stylistic/block-closing-brace-newline-after': (string | {
|
|
100
|
+
ignoreAtRules: string[];
|
|
101
|
+
})[];
|
|
102
|
+
};
|
|
103
|
+
allowEmptyInput: boolean;
|
|
104
|
+
ignoreFiles: string[];
|
|
105
|
+
};
|
|
106
|
+
//#endregion
|
|
107
|
+
export { _default as t };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
//#region src/stylelint.ts
|
|
2
|
+
var stylelint_default = {
|
|
3
|
+
extends: ["stylelint-config-recess-order"],
|
|
4
|
+
plugins: ["stylelint-scss", "@stylistic/stylelint-plugin"],
|
|
5
|
+
overrides: [
|
|
6
|
+
{
|
|
7
|
+
files: ["**/*.(css|html|vue)"],
|
|
8
|
+
customSyntax: "postcss-html"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
files: ["*.less", "**/*.less"],
|
|
12
|
+
customSyntax: "postcss-less",
|
|
13
|
+
extends: ["stylelint-config-standard-less", "stylelint-config-standard-vue"]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
files: ["*.scss", "**/*.scss"],
|
|
17
|
+
customSyntax: "postcss-scss",
|
|
18
|
+
extends: ["stylelint-config-standard-scss", "stylelint-config-standard-vue/scss"],
|
|
19
|
+
rule: {
|
|
20
|
+
"scss/double-slash-comment-empty-line-before": null,
|
|
21
|
+
"scss/no-global-function-names": null
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
rules: {
|
|
26
|
+
"at-rule-no-unknown": null,
|
|
27
|
+
"no-descending-specificity": null,
|
|
28
|
+
"property-no-unknown": null,
|
|
29
|
+
"font-family-no-missing-generic-family-keyword": null,
|
|
30
|
+
"selector-class-pattern": null,
|
|
31
|
+
"function-no-unknown": [true, { ignoreFunctions: [
|
|
32
|
+
"v-bind",
|
|
33
|
+
"map-get",
|
|
34
|
+
"lighten",
|
|
35
|
+
"darken"
|
|
36
|
+
] }],
|
|
37
|
+
"selector-pseudo-element-no-unknown": [true, { ignorePseudoElements: ["/^view-transition/"] }],
|
|
38
|
+
"@stylistic/at-rule-name-case": "lower",
|
|
39
|
+
"@stylistic/at-rule-name-space-after": "always-single-line",
|
|
40
|
+
"@stylistic/at-rule-semicolon-newline-after": "always",
|
|
41
|
+
"@stylistic/block-closing-brace-empty-line-before": "never",
|
|
42
|
+
"@stylistic/block-closing-brace-newline-before": "always-multi-line",
|
|
43
|
+
"@stylistic/block-closing-brace-space-before": "always-single-line",
|
|
44
|
+
"@stylistic/block-opening-brace-newline-after": "always-multi-line",
|
|
45
|
+
"@stylistic/block-opening-brace-space-after": "always-single-line",
|
|
46
|
+
"@stylistic/block-opening-brace-space-before": "always",
|
|
47
|
+
"@stylistic/color-hex-case": "lower",
|
|
48
|
+
"@stylistic/declaration-bang-space-after": "never",
|
|
49
|
+
"@stylistic/declaration-bang-space-before": "always",
|
|
50
|
+
"@stylistic/declaration-block-semicolon-newline-after": "always-multi-line",
|
|
51
|
+
"@stylistic/declaration-block-semicolon-space-after": "always-single-line",
|
|
52
|
+
"@stylistic/declaration-block-semicolon-space-before": "never",
|
|
53
|
+
"@stylistic/declaration-block-trailing-semicolon": "always",
|
|
54
|
+
"@stylistic/declaration-colon-newline-after": "always-multi-line",
|
|
55
|
+
"@stylistic/declaration-colon-space-after": "always-single-line",
|
|
56
|
+
"@stylistic/declaration-colon-space-before": "never",
|
|
57
|
+
"@stylistic/function-comma-newline-after": "always-multi-line",
|
|
58
|
+
"@stylistic/function-comma-space-after": "always-single-line",
|
|
59
|
+
"@stylistic/function-comma-space-before": "never",
|
|
60
|
+
"@stylistic/function-max-empty-lines": 0,
|
|
61
|
+
"@stylistic/function-parentheses-newline-inside": "always-multi-line",
|
|
62
|
+
"@stylistic/function-parentheses-space-inside": "never-single-line",
|
|
63
|
+
"@stylistic/function-whitespace-after": "always",
|
|
64
|
+
"@stylistic/indentation": 2,
|
|
65
|
+
"@stylistic/max-empty-lines": 1,
|
|
66
|
+
"@stylistic/media-feature-colon-space-after": "always",
|
|
67
|
+
"@stylistic/media-feature-colon-space-before": "never",
|
|
68
|
+
"@stylistic/media-feature-name-case": "lower",
|
|
69
|
+
"@stylistic/media-feature-parentheses-space-inside": "never",
|
|
70
|
+
"@stylistic/media-feature-range-operator-space-after": "always",
|
|
71
|
+
"@stylistic/media-feature-range-operator-space-before": "always",
|
|
72
|
+
"@stylistic/media-query-list-comma-newline-after": "always-multi-line",
|
|
73
|
+
"@stylistic/media-query-list-comma-space-after": "always-single-line",
|
|
74
|
+
"@stylistic/media-query-list-comma-space-before": "never",
|
|
75
|
+
"@stylistic/no-empty-first-line": true,
|
|
76
|
+
"@stylistic/no-eol-whitespace": true,
|
|
77
|
+
"@stylistic/no-extra-semicolons": true,
|
|
78
|
+
"@stylistic/no-missing-end-of-source-newline": true,
|
|
79
|
+
"@stylistic/number-leading-zero": "always",
|
|
80
|
+
"@stylistic/number-no-trailing-zeros": true,
|
|
81
|
+
"@stylistic/property-case": "lower",
|
|
82
|
+
"@stylistic/selector-attribute-brackets-space-inside": "never",
|
|
83
|
+
"@stylistic/selector-attribute-operator-space-after": "never",
|
|
84
|
+
"@stylistic/selector-attribute-operator-space-before": "never",
|
|
85
|
+
"@stylistic/selector-combinator-space-after": "always",
|
|
86
|
+
"@stylistic/selector-combinator-space-before": "always",
|
|
87
|
+
"@stylistic/selector-descendant-combinator-no-non-space": true,
|
|
88
|
+
"@stylistic/selector-list-comma-newline-after": "always",
|
|
89
|
+
"@stylistic/selector-list-comma-space-before": "never",
|
|
90
|
+
"@stylistic/selector-max-empty-lines": 0,
|
|
91
|
+
"@stylistic/selector-pseudo-class-case": "lower",
|
|
92
|
+
"@stylistic/selector-pseudo-class-parentheses-space-inside": "never",
|
|
93
|
+
"@stylistic/selector-pseudo-element-case": "lower",
|
|
94
|
+
"@stylistic/string-quotes": "double",
|
|
95
|
+
"@stylistic/unit-case": "lower",
|
|
96
|
+
"@stylistic/value-list-comma-newline-after": "always-multi-line",
|
|
97
|
+
"@stylistic/value-list-comma-space-after": "always-single-line",
|
|
98
|
+
"@stylistic/value-list-comma-space-before": "never",
|
|
99
|
+
"@stylistic/value-list-max-empty-lines": 0,
|
|
100
|
+
"@stylistic/max-line-length": null,
|
|
101
|
+
"@stylistic/block-closing-brace-newline-after": ["always", { ignoreAtRules: ["if", "else"] }]
|
|
102
|
+
},
|
|
103
|
+
allowEmptyInput: true,
|
|
104
|
+
ignoreFiles: [
|
|
105
|
+
"**/node_modules/**/*",
|
|
106
|
+
"**/dist*/**/*",
|
|
107
|
+
"**/*.cjs",
|
|
108
|
+
"**/*.ejs",
|
|
109
|
+
"**/.pubinfo/**/*"
|
|
110
|
+
]
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
//#endregion
|
|
114
|
+
export { stylelint_default as t };
|