@brnshkr/config 0.0.1-beta.3 → 0.0.1-beta.4
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/README.md +174 -226
- package/conf/.gitignore.dist +15 -0
- package/conf/Makefile +3778 -0
- package/conf/Makefile.dist +13 -0
- package/conf/bunfig.dist.toml +5 -0
- package/conf/commitlint.dist.mjs +1 -0
- package/conf/editorconfig.dist +19 -0
- package/conf/launch.dist.json +31 -0
- package/conf/markdownlint.dist.mjs +1 -0
- package/conf/spelling/defaults.json +185 -0
- package/conf/tsconfig.dist.json +3 -0
- package/conf/tsconfig.json +31 -27
- package/conf/vitest.dist.mjs +1 -0
- package/conf/vscode-css-custom-data.dist.json +95 -0
- package/conf/vscode-extensions.dist.json +21 -0
- package/conf/vscode-settings.dist.jsonc +338 -0
- package/dist/commitlint/index.d.mts +72 -0
- package/dist/commitlint/index.mjs +239 -0
- package/dist/eslint/index.d.mts +3890 -1387
- package/dist/eslint/index.mjs +2662 -471
- package/dist/markdownlint/index.d.mts +2304 -0
- package/dist/markdownlint/index.mjs +440 -0
- package/dist/shared.mjs +406 -64
- package/dist/spelling/index.d.mts +30 -0
- package/dist/spelling/index.mjs +2 -0
- package/dist/spelling/spelling.test.d.mts +1 -0
- package/dist/spelling/spelling.test.mjs +12 -0
- package/dist/stylelint/index.d.mts +47 -9
- package/dist/stylelint/index.mjs +145 -47
- package/dist/vitest/index.d.mts +73 -0
- package/dist/vitest/index.mjs +181 -0
- package/package.json +192 -105
- package/conf/tsconfig.json.example +0 -3
- package/dist/scripts/eslint.mjs +0 -16
- package/dist/scripts/stylelint.mjs +0 -31
- /package/conf/{eslint.config.mjs.example → eslint.dist.mjs} +0 -0
- /package/conf/{stylelint.config.mjs.example → stylelint.dist.mjs} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
STARTUP_TARGETS :=
|
|
2
|
+
|
|
3
|
+
_BRNSHKR_CONFIG_PATHS := $(CURDIR)/node_modules/@brnshkr/config/conf/Makefile $(CURDIR)/vendor/brnshkr/config/conf/Makefile
|
|
4
|
+
|
|
5
|
+
ifeq ($(wildcard $(_BRNSHKR_CONFIG_PATHS)),)
|
|
6
|
+
bootstrap:
|
|
7
|
+
@$(if $(wildcard $(CURDIR)/package.json),bun install)
|
|
8
|
+
@$(if $(wildcard $(CURDIR)/composer.json),composer install --no-scripts --ignore-platform-reqs)
|
|
9
|
+
@for path in $(_BRNSHKR_CONFIG_PATHS); do [ -f "$$path" ] && exit 0; done; echo 'brnshkr/config is not installed' >&2; exit 1
|
|
10
|
+
@$(MAKE) --no-print-directory startup
|
|
11
|
+
else
|
|
12
|
+
include $(firstword $(wildcard $(_BRNSHKR_CONFIG_PATHS)))
|
|
13
|
+
endif
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@brnshkr/config/commitlint';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
charset = utf-8
|
|
5
|
+
end_of_line = lf
|
|
6
|
+
insert_final_newline = true
|
|
7
|
+
trim_trailing_whitespace = true
|
|
8
|
+
indent_style = space
|
|
9
|
+
indent_size = 2
|
|
10
|
+
|
|
11
|
+
[*.md]
|
|
12
|
+
max_line_length = off
|
|
13
|
+
trim_trailing_whitespace = false
|
|
14
|
+
|
|
15
|
+
[*.php]
|
|
16
|
+
indent_size = 4
|
|
17
|
+
|
|
18
|
+
[{Makefile,*.mk}]
|
|
19
|
+
indent_style = tab
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"name": "PHP: listen for Xdebug",
|
|
6
|
+
"type": "php",
|
|
7
|
+
"request": "launch",
|
|
8
|
+
"port": 9003,
|
|
9
|
+
"log": false,
|
|
10
|
+
"pathMappings": {
|
|
11
|
+
"/app": "${workspaceFolder}",
|
|
12
|
+
"${workspaceFolder}": "${workspaceFolder}"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "Bun: attach",
|
|
17
|
+
"type": "bun",
|
|
18
|
+
"request": "attach",
|
|
19
|
+
"url": "ws://localhost:6499/"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "Bun: launch current file",
|
|
23
|
+
"type": "bun",
|
|
24
|
+
"request": "launch",
|
|
25
|
+
"cwd": "${workspaceFolder}",
|
|
26
|
+
"program": "${file}",
|
|
27
|
+
"runtimeArgs": ["--bun"],
|
|
28
|
+
"stopOnEntry": false
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@brnshkr/config/markdownlint';
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fileExtensions": [
|
|
3
|
+
".cjs",
|
|
4
|
+
".css",
|
|
5
|
+
".cts",
|
|
6
|
+
".js",
|
|
7
|
+
".jsx",
|
|
8
|
+
".md",
|
|
9
|
+
".mjs",
|
|
10
|
+
".mk",
|
|
11
|
+
".mts",
|
|
12
|
+
".php",
|
|
13
|
+
".scss",
|
|
14
|
+
".svelte",
|
|
15
|
+
".ts",
|
|
16
|
+
".tsx",
|
|
17
|
+
".twig",
|
|
18
|
+
".vue",
|
|
19
|
+
".yaml",
|
|
20
|
+
".yml"
|
|
21
|
+
],
|
|
22
|
+
"fileNames": [
|
|
23
|
+
"Dockerfile",
|
|
24
|
+
"Makefile"
|
|
25
|
+
],
|
|
26
|
+
"ignorePatterns": [
|
|
27
|
+
"(^|/)__generated__/",
|
|
28
|
+
"(^|/)__snapshots__/",
|
|
29
|
+
"(^|/)tests/(.*/)?[Ff]ixtures?/"
|
|
30
|
+
],
|
|
31
|
+
"britishSpellings": {
|
|
32
|
+
"acknowledgement": "acknowledgment",
|
|
33
|
+
"ageing": "aging",
|
|
34
|
+
"aluminium": "aluminum",
|
|
35
|
+
"amongst": "among",
|
|
36
|
+
"analogue": "analog",
|
|
37
|
+
"armour": "armor",
|
|
38
|
+
"artefact": "artifact",
|
|
39
|
+
"behaviour": "behavior",
|
|
40
|
+
"calibre": "caliber",
|
|
41
|
+
"cancelled": "canceled",
|
|
42
|
+
"cancelling": "canceling",
|
|
43
|
+
"catalogue": "catalog",
|
|
44
|
+
"centre": "center",
|
|
45
|
+
"cheque": "check",
|
|
46
|
+
"colour": "color",
|
|
47
|
+
"cosy": "cozy",
|
|
48
|
+
"counsellor": "counselor",
|
|
49
|
+
"defence": "defense",
|
|
50
|
+
"dialogue": "dialog",
|
|
51
|
+
"encyclopaedia": "encyclopedia",
|
|
52
|
+
"endeavour": "endeavor",
|
|
53
|
+
"enquire": "inquire",
|
|
54
|
+
"enrolment": "enrollment",
|
|
55
|
+
"favour": "favor",
|
|
56
|
+
"fibre": "fiber",
|
|
57
|
+
"flavour": "flavor",
|
|
58
|
+
"fuelled": "fueled",
|
|
59
|
+
"fulfil": "fulfill",
|
|
60
|
+
"grey": "gray",
|
|
61
|
+
"harbour": "harbor",
|
|
62
|
+
"honour": "honor",
|
|
63
|
+
"humour": "humor",
|
|
64
|
+
"instalment": "installment",
|
|
65
|
+
"jewellery": "jewelry",
|
|
66
|
+
"judgement": "judgment",
|
|
67
|
+
"kerb": "curb",
|
|
68
|
+
"labelled": "labeled",
|
|
69
|
+
"labelling": "labeling",
|
|
70
|
+
"labour": "labor",
|
|
71
|
+
"learnt": "learned",
|
|
72
|
+
"levelled": "leveled",
|
|
73
|
+
"licence": "license",
|
|
74
|
+
"litre": "liter",
|
|
75
|
+
"manoeuvre": "maneuver",
|
|
76
|
+
"marvellous": "marvelous",
|
|
77
|
+
"metre": "meter",
|
|
78
|
+
"modelled": "modeled",
|
|
79
|
+
"modelling": "modeling",
|
|
80
|
+
"mould": "mold",
|
|
81
|
+
"moustache": "mustache",
|
|
82
|
+
"neighbour": "neighbor",
|
|
83
|
+
"odour": "odor",
|
|
84
|
+
"offence": "offense",
|
|
85
|
+
"paediatric": "pediatric",
|
|
86
|
+
"parlour": "parlor",
|
|
87
|
+
"plough": "plow",
|
|
88
|
+
"practise": "practice",
|
|
89
|
+
"pretence": "pretense",
|
|
90
|
+
"pyjamas": "pajamas",
|
|
91
|
+
"rumour": "rumor",
|
|
92
|
+
"sabre": "saber",
|
|
93
|
+
"saviour": "savior",
|
|
94
|
+
"savour": "savor",
|
|
95
|
+
"sceptic": "skeptic",
|
|
96
|
+
"signalled": "signaled",
|
|
97
|
+
"signalling": "signaling",
|
|
98
|
+
"skilful": "skillful",
|
|
99
|
+
"smoulder": "smolder",
|
|
100
|
+
"sombre": "somber",
|
|
101
|
+
"speciality": "specialty",
|
|
102
|
+
"spectre": "specter",
|
|
103
|
+
"spelt": "spelled",
|
|
104
|
+
"splendour": "splendor",
|
|
105
|
+
"storey": "story",
|
|
106
|
+
"sulphur": "sulfur",
|
|
107
|
+
"theatre": "theater",
|
|
108
|
+
"tonne": "ton",
|
|
109
|
+
"travelled": "traveled",
|
|
110
|
+
"traveller": "traveler",
|
|
111
|
+
"travelling": "traveling",
|
|
112
|
+
"tyre": "tire",
|
|
113
|
+
"valour": "valor",
|
|
114
|
+
"vapour": "vapor",
|
|
115
|
+
"vigour": "vigor",
|
|
116
|
+
"whilst": "while"
|
|
117
|
+
},
|
|
118
|
+
"britishStems": [
|
|
119
|
+
"analys",
|
|
120
|
+
"apologis",
|
|
121
|
+
"authoris",
|
|
122
|
+
"canonicalis",
|
|
123
|
+
"capitalis",
|
|
124
|
+
"categoris",
|
|
125
|
+
"centralis",
|
|
126
|
+
"characteris",
|
|
127
|
+
"computeris",
|
|
128
|
+
"contextualis",
|
|
129
|
+
"customis",
|
|
130
|
+
"deserialis",
|
|
131
|
+
"digitis",
|
|
132
|
+
"emphasis",
|
|
133
|
+
"finalis",
|
|
134
|
+
"formalis",
|
|
135
|
+
"generalis",
|
|
136
|
+
"harmonis",
|
|
137
|
+
"initialis",
|
|
138
|
+
"internationalis",
|
|
139
|
+
"itemis",
|
|
140
|
+
"localis",
|
|
141
|
+
"materialis",
|
|
142
|
+
"maximis",
|
|
143
|
+
"memois",
|
|
144
|
+
"minimis",
|
|
145
|
+
"modularis",
|
|
146
|
+
"neutralis",
|
|
147
|
+
"normalis",
|
|
148
|
+
"optimis",
|
|
149
|
+
"organis",
|
|
150
|
+
"parameteris",
|
|
151
|
+
"personalis",
|
|
152
|
+
"prioritis",
|
|
153
|
+
"randomis",
|
|
154
|
+
"rationalis",
|
|
155
|
+
"realis",
|
|
156
|
+
"recognis",
|
|
157
|
+
"relativis",
|
|
158
|
+
"sanitis",
|
|
159
|
+
"serialis",
|
|
160
|
+
"specialis",
|
|
161
|
+
"stabilis",
|
|
162
|
+
"standardis",
|
|
163
|
+
"summaris",
|
|
164
|
+
"synchronis",
|
|
165
|
+
"synthesis",
|
|
166
|
+
"tokenis",
|
|
167
|
+
"utilis",
|
|
168
|
+
"virtualis",
|
|
169
|
+
"visualis"
|
|
170
|
+
],
|
|
171
|
+
"stemSuffixes": [
|
|
172
|
+
"e",
|
|
173
|
+
"es",
|
|
174
|
+
"ed",
|
|
175
|
+
"er",
|
|
176
|
+
"ers",
|
|
177
|
+
"ing",
|
|
178
|
+
"able",
|
|
179
|
+
"ability",
|
|
180
|
+
"abilities",
|
|
181
|
+
"ation",
|
|
182
|
+
"ations",
|
|
183
|
+
"ational"
|
|
184
|
+
]
|
|
185
|
+
}
|
package/conf/tsconfig.json
CHANGED
|
@@ -2,33 +2,37 @@
|
|
|
2
2
|
// @see https://www.typescriptlang.org/tsconfig
|
|
3
3
|
"$schema": "https://json.schemastore.org/tsconfig",
|
|
4
4
|
"exclude": [
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
5
|
+
"${configDir}/**/.cache/**",
|
|
6
|
+
"${configDir}/**/.changeset/**",
|
|
7
|
+
"${configDir}/**/.git/objects/**",
|
|
8
|
+
"${configDir}/**/.git/subtree-cache/**",
|
|
9
|
+
"${configDir}/**/.hg/store/**",
|
|
10
|
+
"${configDir}/**/.history/**",
|
|
11
|
+
"${configDir}/**/.idea/**",
|
|
12
|
+
"${configDir}/**/.next/**",
|
|
13
|
+
"${configDir}/**/.nuxt/**",
|
|
14
|
+
"${configDir}/**/.output/**",
|
|
15
|
+
"${configDir}/**/.svelte-kit/**",
|
|
16
|
+
"${configDir}/**/.temp/**",
|
|
17
|
+
"${configDir}/**/.tmp/**",
|
|
18
|
+
"${configDir}/**/.vercel/**",
|
|
19
|
+
"${configDir}/**/.vite-inspect/**",
|
|
20
|
+
"${configDir}/**/.vitepress/cache/**",
|
|
21
|
+
"${configDir}/**/.vitest/**",
|
|
22
|
+
"${configDir}/**/.vscode/**",
|
|
23
|
+
"${configDir}/**/.yarn/**",
|
|
24
|
+
"${configDir}/**/__generated__/**",
|
|
25
|
+
"${configDir}/**/__snapshots__/**",
|
|
26
|
+
"${configDir}/**/bower_components/**",
|
|
27
|
+
"${configDir}/**/coverage/**",
|
|
28
|
+
"${configDir}/**/dist/**",
|
|
29
|
+
"${configDir}/**/node_modules/**",
|
|
30
|
+
"${configDir}/**/output/**",
|
|
31
|
+
"${configDir}/**/temp/**",
|
|
32
|
+
"${configDir}/**/tests/**/Fixtures/**",
|
|
33
|
+
"${configDir}/**/tests/**/fixtures/**",
|
|
34
|
+
"${configDir}/**/tmp/**",
|
|
35
|
+
"${configDir}/**/vendor/**"
|
|
32
36
|
],
|
|
33
37
|
"compilerOptions": {
|
|
34
38
|
// Language and Environment
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@brnshkr/config/vitest';
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1.1,
|
|
3
|
+
"atDirectives": [
|
|
4
|
+
{
|
|
5
|
+
"name": "@theme",
|
|
6
|
+
"description": "Use the `@theme` directive to define your project's custom design tokens, like fonts, colors, and breakpoints.",
|
|
7
|
+
"references": [
|
|
8
|
+
{
|
|
9
|
+
"name": "Tailwind Documentation",
|
|
10
|
+
"url": "https://tailwindcss.com/docs/functions-and-directives#theme-directive"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "@source",
|
|
16
|
+
"description": "Use the `@source` directive to explicitly specify source files that aren't picked up by Tailwind's automatic content detection.",
|
|
17
|
+
"references": [
|
|
18
|
+
{
|
|
19
|
+
"name": "Tailwind Documentation",
|
|
20
|
+
"url": "https://tailwindcss.com/docs/functions-and-directives#source-directive"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "@utility",
|
|
26
|
+
"description": "Use the `@utility` directive to add custom utilities to your project that work with variants like hover, focus, and responsive breakpoints.",
|
|
27
|
+
"references": [
|
|
28
|
+
{
|
|
29
|
+
"name": "Tailwind Documentation",
|
|
30
|
+
"url": "https://tailwindcss.com/docs/functions-and-directives#utility-directive"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "@variant",
|
|
36
|
+
"description": "Use the `@variant` directive to apply a Tailwind variant to styles in your CSS.",
|
|
37
|
+
"references": [
|
|
38
|
+
{
|
|
39
|
+
"name": "Tailwind Documentation",
|
|
40
|
+
"url": "https://tailwindcss.com/docs/functions-and-directives#variant-directive"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "@custom-variant",
|
|
46
|
+
"description": "Use the `@custom-variant` directive to add a custom variant in your project, enabling custom variant prefixes like `theme-midnight:` in utilities.",
|
|
47
|
+
"references": [
|
|
48
|
+
{
|
|
49
|
+
"name": "Tailwind Documentation",
|
|
50
|
+
"url": "https://tailwindcss.com/docs/functions-and-directives#custom-variant-directive"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "@apply",
|
|
56
|
+
"description": "Use the `@apply` directive to inline existing utility classes directly into your own custom CSS.",
|
|
57
|
+
"references": [
|
|
58
|
+
{
|
|
59
|
+
"name": "Tailwind Documentation",
|
|
60
|
+
"url": "https://tailwindcss.com/docs/functions-and-directives#apply-directive"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "@reference",
|
|
66
|
+
"description": "Use the `@reference` directive to import your main stylesheet for reference (without duplicating CSS) when using `@apply` or `@variant` in Vue, Svelte, or CSS modules.",
|
|
67
|
+
"references": [
|
|
68
|
+
{
|
|
69
|
+
"name": "Tailwind Documentation",
|
|
70
|
+
"url": "https://tailwindcss.com/docs/functions-and-directives#reference-directive"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "@config",
|
|
76
|
+
"description": "Use the `@config` directive to load a legacy JavaScript-based configuration file for compatibility with older Tailwind projects.",
|
|
77
|
+
"references": [
|
|
78
|
+
{
|
|
79
|
+
"name": "Tailwind Documentation",
|
|
80
|
+
"url": "https://tailwindcss.com/docs/functions-and-directives#config-directive"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "@plugin",
|
|
86
|
+
"description": "Use the `@plugin` directive to load a legacy JavaScript-based plugin for compatibility with older Tailwind configurations.",
|
|
87
|
+
"references": [
|
|
88
|
+
{
|
|
89
|
+
"name": "Tailwind Documentation",
|
|
90
|
+
"url": "https://tailwindcss.com/docs/functions-and-directives#plugin-directive"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"recommendations": [
|
|
3
|
+
"aeschli.vscode-css-formatter",
|
|
4
|
+
"bmewburn.vscode-intelephense-client",
|
|
5
|
+
"bradlc.vscode-tailwindcss",
|
|
6
|
+
"DavidAnson.vscode-markdownlint",
|
|
7
|
+
"dbaeumer.vscode-eslint",
|
|
8
|
+
"EditorConfig.EditorConfig",
|
|
9
|
+
"junstyle.php-cs-fixer",
|
|
10
|
+
"mblode.twig-language-2",
|
|
11
|
+
"oven.bun-vscode",
|
|
12
|
+
"redhat.vscode-xml",
|
|
13
|
+
"redhat.vscode-yaml",
|
|
14
|
+
"SanderRonde.phpstan-vscode",
|
|
15
|
+
"stylelint.vscode-stylelint",
|
|
16
|
+
"tamasfe.even-better-toml",
|
|
17
|
+
"usernamehw.errorlens",
|
|
18
|
+
"xdebug.php-debug",
|
|
19
|
+
"yzhang.markdown-all-in-one"
|
|
20
|
+
]
|
|
21
|
+
}
|