@schoero/configs 0.0.0-beta.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/README.md +149 -0
- package/changelogen/changelog.js +27 -0
- package/cspell/cspell.json +338 -0
- package/cspell/dict/css.txt +9 -0
- package/cspell/dict/html.txt +4 -0
- package/cspell/dict/names.txt +28 -0
- package/cspell/dict/npm.txt +32 -0
- package/cspell/dict/svg.txt +6 -0
- package/cspell/dict/vscode.txt +4 -0
- package/eslint/ignore.js +19 -0
- package/eslint/imports.js +81 -0
- package/eslint/index.js +33 -0
- package/eslint/javascript.js +161 -0
- package/eslint/jsdoc.js +55 -0
- package/eslint/json.js +116 -0
- package/eslint/jsx.js +37 -0
- package/eslint/markdown.js +41 -0
- package/eslint/stylistic.js +285 -0
- package/eslint/tailwind.js +28 -0
- package/eslint/typescript.js +298 -0
- package/eslint/vitest.js +42 -0
- package/eslint/yaml.js +66 -0
- package/markdownlint/index.jsonc +47 -0
- package/package.json +102 -0
- package/tsconfig/tsconfig.json +34 -0
- package/unwritten/unwritten.js +14 -0
- package/vite/vite.config.js +24 -0
package/README.md
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# Shared configuration files
|
|
2
|
+
|
|
3
|
+
This repository contains shared configuration files used to configure my personal development environment and projects.
|
|
4
|
+
|
|
5
|
+
- eslint
|
|
6
|
+
- cspell
|
|
7
|
+
- markdownlint
|
|
8
|
+
- vite
|
|
9
|
+
- tsconfig
|
|
10
|
+
- unwritten
|
|
11
|
+
- changelogen
|
|
12
|
+
|
|
13
|
+
### Installation
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
npm i --save-dev @schoero/configs
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### VSCode
|
|
20
|
+
|
|
21
|
+
```jsonc
|
|
22
|
+
// .vscode/settings.json
|
|
23
|
+
{
|
|
24
|
+
|
|
25
|
+
// eslint
|
|
26
|
+
"[javascript]": {
|
|
27
|
+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
28
|
+
},
|
|
29
|
+
"[json]": {
|
|
30
|
+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
31
|
+
},
|
|
32
|
+
"[json5]": {
|
|
33
|
+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
34
|
+
},
|
|
35
|
+
"[jsonc]": {
|
|
36
|
+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
37
|
+
},
|
|
38
|
+
"[typescript]": {
|
|
39
|
+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
40
|
+
},
|
|
41
|
+
"eslint.validate": ["javascript", "typescript", "json", "jsonc", "json5", "yaml"],
|
|
42
|
+
|
|
43
|
+
// markdown
|
|
44
|
+
"[markdown]": {
|
|
45
|
+
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint",
|
|
46
|
+
"editor.rulers": [
|
|
47
|
+
40,
|
|
48
|
+
80,
|
|
49
|
+
119
|
|
50
|
+
],
|
|
51
|
+
"editor.wordWrapColumn": 119
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
// prettier
|
|
55
|
+
"prettier.enable": false,
|
|
56
|
+
|
|
57
|
+
// vscode
|
|
58
|
+
"editor.codeActionsOnSave": {
|
|
59
|
+
"source.fixAll.eslint": "explicit",
|
|
60
|
+
"source.fixAll.markdownlint": "explicit",
|
|
61
|
+
"source.organizeImports": "never"
|
|
62
|
+
},
|
|
63
|
+
"editor.formatOnSave": false,
|
|
64
|
+
"editor.rulers": [
|
|
65
|
+
119
|
|
66
|
+
],
|
|
67
|
+
"search.exclude": {
|
|
68
|
+
"lib": true
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
// file nesting
|
|
72
|
+
"explorer.fileNesting.enabled": true,
|
|
73
|
+
"explorer.fileNesting.expand": false,
|
|
74
|
+
"explorer.fileNesting.patterns": {
|
|
75
|
+
"*.js": "$(capture).test.js,$(capture).cjs,$(capture).mjs,$(capture).d.ts,$(capture).d.ts.map,$(capture).js.map",
|
|
76
|
+
"*.ts": "$(capture).test.ts,$(capture).test.snap,$(capture).test-d.ts"
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
"typescript.preferences.autoImportFileExcludePatterns": [
|
|
80
|
+
"@types/node/test.d.ts"
|
|
81
|
+
],
|
|
82
|
+
|
|
83
|
+
// es module import
|
|
84
|
+
"typescript.preferences.importModuleSpecifier": "non-relative",
|
|
85
|
+
"typescript.preferences.importModuleSpecifierEnding": "minimal",
|
|
86
|
+
"typescript.preferences.useAliasesForRenames": true,
|
|
87
|
+
|
|
88
|
+
// typescript
|
|
89
|
+
"typescript.tsdk": "node_modules/typescript/lib"
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
```jsonc
|
|
94
|
+
// .vscode/extensions.json
|
|
95
|
+
{
|
|
96
|
+
"recommendations": [
|
|
97
|
+
"dbaeumer.vscode-eslint",
|
|
98
|
+
"DavidAnson.vscode-markdownlint",
|
|
99
|
+
"streetsidesoftware.code-spell-checker"
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Scripts
|
|
106
|
+
|
|
107
|
+
```jsonc
|
|
108
|
+
// package.json
|
|
109
|
+
{
|
|
110
|
+
"scripts": {
|
|
111
|
+
// vite
|
|
112
|
+
"build": "vite build",
|
|
113
|
+
"prebuild": "npm run typecheck && npm run lint && npm run spellcheck",
|
|
114
|
+
"typecheck": "tsc --noEmit",
|
|
115
|
+
|
|
116
|
+
// eslint
|
|
117
|
+
"eslint": "eslint --ext .ts,.tsx,.js,.jsx,.json,.jsonc,.yml,.md .",
|
|
118
|
+
"eslint:ci": "npm run eslint -- --max-warnings 0",
|
|
119
|
+
"eslint:fix": "npm run eslint -- --fix",
|
|
120
|
+
"lint": "npm run eslint && npm run markdownlint",
|
|
121
|
+
"lint:ci": "npm run eslint:ci && npm run markdownlint:ci",
|
|
122
|
+
"lint:fix": "npm run eslint:fix && npm run markdownlint:fix",
|
|
123
|
+
|
|
124
|
+
// markdownlint
|
|
125
|
+
"markdownlint": "markdownlint-cli2 '**/*.md' '#node_modules'",
|
|
126
|
+
"markdownlint:ci": "npm run markdownlint",
|
|
127
|
+
"markdownlint:fix": "npm run markdownlint -- --fix",
|
|
128
|
+
|
|
129
|
+
// changelogen
|
|
130
|
+
"postrelease:alpha": "npm run postrelease",
|
|
131
|
+
"postrelease:beta": "npm run postrelease",
|
|
132
|
+
"postrelease:latest": "eslint --fix package.json && markdownlint-cli2-fix 'CHANGELOG.md'",
|
|
133
|
+
"prerelease:alpha": "npm run test -- --run && npm run build",
|
|
134
|
+
"prerelease:beta": "npm run test -- --run && npm run build",
|
|
135
|
+
"prerelease:latest": "npm run test -- --run && npm run build",
|
|
136
|
+
"publish:alpha": "npm run publish:latest -- --publishTag alpha",
|
|
137
|
+
"publish:beta": "npm run publish:latest -- --publishTag beta",
|
|
138
|
+
"publish:latest": "changelogen gh release && changelogen --publish",
|
|
139
|
+
"release:alpha": "npm run release -- --prerelease alpha",
|
|
140
|
+
"release:beta": "npm run release -- --prerelease beta",
|
|
141
|
+
"release:latest": "changelogen --bump --output --no-tag",
|
|
142
|
+
|
|
143
|
+
// cspell
|
|
144
|
+
"spellcheck": "cspell .",
|
|
145
|
+
"spellcheck:ci": "npm run spellcheck -- --no-progress",
|
|
146
|
+
"test": "vitest -c ./vite.config.ts"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @type { import('changelogen').ChangelogConfig } */
|
|
2
|
+
export default {
|
|
3
|
+
excludeAuthors: [
|
|
4
|
+
"Roger Schönbächler",
|
|
5
|
+
],
|
|
6
|
+
output: "CHANGELOG.md",
|
|
7
|
+
scopeMap: {},
|
|
8
|
+
templates: {
|
|
9
|
+
commitMessage: "chore(release): v{{newVersion}}",
|
|
10
|
+
tagBody: "v{{newVersion}}",
|
|
11
|
+
tagMessage: "v{{newVersion}}",
|
|
12
|
+
},
|
|
13
|
+
types: {
|
|
14
|
+
build: { semver: "patch", title: "Build" },
|
|
15
|
+
chore: { title: "Chore" },
|
|
16
|
+
ci: { title: "CI" },
|
|
17
|
+
docs: { semver: "patch", title: "Documentation" },
|
|
18
|
+
examples: { title: "Examples" },
|
|
19
|
+
feat: { semver: "minor", title: "Features" },
|
|
20
|
+
fix: { semver: "patch", title: "Fixes" },
|
|
21
|
+
perf: { semver: "patch", title: "Performance" },
|
|
22
|
+
refactor: { semver: "patch", title: "Refactors" },
|
|
23
|
+
style: { title: "Styles" },
|
|
24
|
+
test: { title: "Tests" },
|
|
25
|
+
types: { semver: "patch", title: "Types" },
|
|
26
|
+
},
|
|
27
|
+
};
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dictionaries": [
|
|
3
|
+
"css.txt",
|
|
4
|
+
"html.txt",
|
|
5
|
+
"names.txt",
|
|
6
|
+
"npm.txt",
|
|
7
|
+
"svg.txt",
|
|
8
|
+
"vscode.txt",
|
|
9
|
+
"networking-terms",
|
|
10
|
+
"lorem-ipsum"
|
|
11
|
+
],
|
|
12
|
+
"dictionaryDefinitions": [
|
|
13
|
+
{
|
|
14
|
+
"addWords": false,
|
|
15
|
+
"name": "custom",
|
|
16
|
+
"path": "./dist/css.txt"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"addWords": false,
|
|
20
|
+
"name": "custom",
|
|
21
|
+
"path": "./dist/html.txt"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"addWords": false,
|
|
25
|
+
"name": "custom",
|
|
26
|
+
"path": "./dist/names.txt"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"addWords": false,
|
|
30
|
+
"name": "custom",
|
|
31
|
+
"path": "./dist/npm.txt"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"addWords": false,
|
|
35
|
+
"name": "custom",
|
|
36
|
+
"path": "./dist/svg.txt"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"addWords": false,
|
|
40
|
+
"name": "custom",
|
|
41
|
+
"path": "./dist/vscode.txt"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"files": [
|
|
45
|
+
"**/{*,.*}/**/*"
|
|
46
|
+
],
|
|
47
|
+
"ignorePaths": [
|
|
48
|
+
"**/node_modules/**",
|
|
49
|
+
"**/vscode-extension/**",
|
|
50
|
+
"**/.git/**",
|
|
51
|
+
"**/.vscode/**",
|
|
52
|
+
"**/lib/**",
|
|
53
|
+
"**/__snapshots__/**",
|
|
54
|
+
"**/*.snap",
|
|
55
|
+
"package-lock.json",
|
|
56
|
+
"yarn.lock",
|
|
57
|
+
"pnpm-lock.yaml"
|
|
58
|
+
],
|
|
59
|
+
"ignoreRegExpList": [
|
|
60
|
+
"SpellCheckerDisable",
|
|
61
|
+
"SpellCheckerIgnoreInDocSetting",
|
|
62
|
+
"Urls",
|
|
63
|
+
"Email",
|
|
64
|
+
"RsaCert",
|
|
65
|
+
"SshRsa",
|
|
66
|
+
"Base64MultiLine",
|
|
67
|
+
"Base64SingleLine",
|
|
68
|
+
"CommitHash",
|
|
69
|
+
"CommitHashLink",
|
|
70
|
+
"CStyleHexValue",
|
|
71
|
+
"CSSHexValue",
|
|
72
|
+
"SHA",
|
|
73
|
+
"HashStrings",
|
|
74
|
+
"UnicodeRef",
|
|
75
|
+
"UUID",
|
|
76
|
+
"\\[.*\\]\\(.*#(.*)\\)",
|
|
77
|
+
"@[a-zA-Z0-9-]+"
|
|
78
|
+
],
|
|
79
|
+
"import": [
|
|
80
|
+
"@cspell/dict-en_us/cspell-ext.json",
|
|
81
|
+
"@cspell/dict-de-ch/cspell-ext.json",
|
|
82
|
+
"@cspell/dict-typescript/cspell-ext.json",
|
|
83
|
+
"@cspell/dict-html/cspell-ext.json",
|
|
84
|
+
"@cspell/dict-html-symbol-entities/cspell-ext.json",
|
|
85
|
+
"@cspell/dict-bash/cspell-ext.json",
|
|
86
|
+
"@cspell/dict-npm/cspell-ext.json",
|
|
87
|
+
"@cspell/dict-node/cspell-ext.json",
|
|
88
|
+
"@cspell/dict-lorem-ipsum/cspell-ext.json",
|
|
89
|
+
"@cspell/dict-css/cspell-ext.json",
|
|
90
|
+
"@cspell/dict-markdown/cspell-ext.json",
|
|
91
|
+
"@cspell/dict-software-terms/cspell-ext.json",
|
|
92
|
+
"@cspell/dict-public-licenses/cspell-ext.json",
|
|
93
|
+
"@cspell/dict-fullstack/cspell-ext.json",
|
|
94
|
+
"@cspell/dict-companies/cspell-ext.json",
|
|
95
|
+
"@cspell/dict-fr-fr/cspell-ext.json",
|
|
96
|
+
"@cspell/dict-it-it/cspell-ext.json"
|
|
97
|
+
],
|
|
98
|
+
"language": "en, de",
|
|
99
|
+
"loadDefaultConfiguration": false,
|
|
100
|
+
"maxNumberOfProblems": 10000,
|
|
101
|
+
"numSuggestions": 10,
|
|
102
|
+
"overrides": [
|
|
103
|
+
{
|
|
104
|
+
"caseSensitive": false,
|
|
105
|
+
"filename": [
|
|
106
|
+
"**/locales/**/*.json"
|
|
107
|
+
],
|
|
108
|
+
"language": "en, de, fr, it"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"patterns": [
|
|
112
|
+
{
|
|
113
|
+
"name": "CommitHash",
|
|
114
|
+
"pattern": "/\\b(?![a-f]+\\b)(?:0x)?[0-9a-f]{7,}\\b/gi"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "CommitHashLink",
|
|
118
|
+
"pattern": "/\\[[0-9a-f]{7,}\\]/gi"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "CStyleHexValue",
|
|
122
|
+
"pattern": "/\\b0x[0-9a-f]+\\b/gi"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "CSSHexValue",
|
|
126
|
+
"pattern": "/#[0-9a-f]{3,8}\\b/gi"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "Urls",
|
|
130
|
+
"pattern": "/(?:https?|ftp):\\/\\/[^\\s\"]+/gi"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "HexValues",
|
|
134
|
+
"pattern": "/(?:#[0-9a-f]{3,8})|(?:0x[0-9a-f]+)|(?:\\\\u[0-9a-f]{4})|(?:\\\\x\\{[0-9a-f]{4}\\})/gi"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "SpellCheckerDisable",
|
|
138
|
+
"pattern": [
|
|
139
|
+
"/(\\bc?spell(?:-?checker)?::?)\\s*disable(?!-line|-next)\\b(?!-)[\\s\\S]*?((?:\\1\\s*enable\\b)|$)/gi",
|
|
140
|
+
"/^.*\\bc?spell(?:-?checker)?::?\\s*disable-line\\b.*/gim",
|
|
141
|
+
"/\\bc?spell(?:-?checker)?::?\\s*disable-next\\b.*\\s\\s?.*/gi"
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "PublicKey",
|
|
146
|
+
"pattern": "/-{5}BEGIN\\s+((?:RSA\\s+)?PUBLIC\\s+KEY)[\\w=+\\-/=\\\\\\s]+?END\\s+\\1-{5}/g"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "RsaCert",
|
|
150
|
+
"pattern": "/-{5}BEGIN\\s+(CERTIFICATE|(?:RSA\\s+)?(?:PRIVATE|PUBLIC)\\s+KEY)[\\w=+\\-/=\\\\\\s]+?END\\s+\\1-{5}/g"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "SshRsa",
|
|
154
|
+
"pattern": "/ssh-rsa\\s+[a-z0-9/+]{28,}={0,3}(?![a-z0-9/+=])/gi"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "EscapeCharacters",
|
|
158
|
+
"pattern": "/\\\\(?:[anrvtbf]|[xu][a-f0-9]+)/gi"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "Base64",
|
|
162
|
+
"pattern": "/(?<![A-Za-z0-9/+])(?:[A-Za-z0-9/+]{40,})(?:\\s^\\s*[A-Za-z0-9/+]{40,})*(?:\\s^\\s*[A-Za-z0-9/+]+=*)?(?![A-Za-z0-9/+=])/gm"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "Base64SingleLine",
|
|
166
|
+
"pattern": "/(?<![A-Za-z0-9/+])(?=[^/]|[/][A-Za-z0-9/+]+?[=+])(?![A-Za-z/]+(?![A-Za-z0-9/+=]))(?=[A-Za-z0-9/+=]*?(?:[A-Z]{2}|[0-9]{2}))(?:[A-Za-z0-9/+]{4}){10,}(?:[A-Za-z0-9/+]{3}={1}|[A-Za-z0-9/+]{2}={2}|[A-Za-z0-9/+]{1}={3})?(?![A-Za-z0-9/+=])(?=$|[:.,\"'\\\\)])/gm"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "Base64MultiLine",
|
|
170
|
+
"pattern": "/(?<![A-Za-z0-9/+])[\"']?(?:[A-Za-z0-9/+]{40,})[\"']?(?:\\s^\\s*[\"']?[A-Za-z0-9/+]{40,}[\"']?)+(?:\\s^\\s*[\"']?[A-Za-z0-9/+]+={0,3}[\"']?)?(?![A-Za-z0-9/+=])/gm"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "Email",
|
|
174
|
+
"pattern": "/<?\\b[\\w.\\-+]{1,128}@\\w{1,63}(\\.\\w{1,63}){1,4}\\b>?/gi"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "SHA",
|
|
178
|
+
"pattern": "/\\bsha\\d+-[a-z0-9+/]{25,}={0,3}/gi"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "HashStrings",
|
|
182
|
+
"pattern": "/(?:\\b(?:sha\\d+|md5|base64|crypt|bcrypt|scrypt|security-token|assertion)[-,:$=]|#code[/])[-\\w/+%.]{25,}={0,3}(?:(['\"])\\s*\\+?\\s*\\1?[-\\w/+%.]+={0,3})*(?![-\\w/+=%.])/gi"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "UnicodeRef",
|
|
186
|
+
"pattern": "/\\bU\\+[0-9a-f]{4,5}(?:-[0-9a-f]{4,5})?/gi"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "UUID",
|
|
190
|
+
"pattern": "/\\b[0-9a-fx]{8}-[0-9a-fx]{4}-[0-9a-fx]{4}-[0-9a-fx]{4}-[0-9a-fx]{12}\\b/gi"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "href",
|
|
194
|
+
"pattern": "/\\bhref\\s*=\\s*\".*?\"/gi"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "SpellCheckerDisableBlock",
|
|
198
|
+
"pattern": "/(\\bc?spell(?:-?checker)?::?)\\s*disable(?!-line|-next)\\b(?!-)[\\s\\S]*?((?:\\1\\s*enable\\b)|$)/gi"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "SpellCheckerDisableLine",
|
|
202
|
+
"pattern": "/^.*\\bc?spell(?:-?checker)?::?\\s*disable-line\\b.*/gim"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "SpellCheckerDisableNext",
|
|
206
|
+
"pattern": "/\\bc?spell(?:-?checker)?::?\\s*disable-next\\b.*\\s\\s?.*/gi"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "SpellCheckerIgnoreInDocSetting",
|
|
210
|
+
"pattern": "/\\bc?spell(?:-?checker)?::?\\s*ignoreRegExp.*/gim"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "PhpHereDoc",
|
|
214
|
+
"pattern": "/<<<['\"]?(\\w+)['\"]?[\\s\\S]+?^\\1;/gm"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "string",
|
|
218
|
+
"pattern": "/(?:(['\"]).*?(?<![^\\\\]\\\\(\\\\\\\\)*)\\1)|(?:`[\\s\\S]*?(?<![^\\\\]\\\\(\\\\\\\\)*)`)/g"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "CStyleComment",
|
|
222
|
+
"pattern": "/(?<!\\w:)(?:\\/\\/.*)|(?:\\/\\*[\\s\\S]*?\\*\\/)/g"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "Everything",
|
|
226
|
+
"pattern": ".*"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "HTML-id",
|
|
230
|
+
"pattern": "/\\bid=\"[^\"]*\"/gi"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "HTML-src",
|
|
234
|
+
"pattern": "/\\bsrc=\"[^\"]*\"/gi"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "HTML-class",
|
|
238
|
+
"pattern": "/\\bclass=\"[^\"]*\"/gi"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "HTML-IDREF-aria-activedescendant",
|
|
242
|
+
"pattern": "/\\baria-activedescendant=\"[^\"]*\"/gi"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "HTML-IDREF-aria-controls",
|
|
246
|
+
"pattern": "/\\baria-controls=\"[^\"]*\"/gi"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "HTML-IDREF-aria-describedby",
|
|
250
|
+
"pattern": "/\\baria-describedby=\"[^\"]*\"/gi"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "HTML-IDREF-aria-details",
|
|
254
|
+
"pattern": "/\\baria-details=\"[^\"]*\"/gi"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "HTML-IDREF-aria-errormessage",
|
|
258
|
+
"pattern": "/\\baria-errormessage=\"[^\"]*\"/gi"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"name": "HTML-IDREF-aria-flowto",
|
|
262
|
+
"pattern": "/\\baria-flowto=\"[^\"]*\"/gi"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "HTML-IDREF-aria-labelledby",
|
|
266
|
+
"pattern": "/\\baria-labelledby=\"[^\"]*\"/gi"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "HTML-IDREF-aria-owns",
|
|
270
|
+
"pattern": "/\\baria-owns=\"[^\"]*\"/gi"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "HTML-IDREF-for",
|
|
274
|
+
"pattern": "/\\bfor=\"[^\"]*\"/gi"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"name": "java-statement-import",
|
|
278
|
+
"description": "Matches the import statement",
|
|
279
|
+
"pattern": "/^\\s*import\\s+[\\w.]+/gm"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "java-member-function",
|
|
283
|
+
"description": "Ignore member functions etc, these are checked by the compiler.",
|
|
284
|
+
"pattern": "/(\\.\\w+)+(?=\\()/g"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "sql-hex-number",
|
|
288
|
+
"pattern": "/0x[a-f0-9]*/gi"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"name": "sql-unicode-string-prefix",
|
|
292
|
+
"pattern": "/\\bN'/g"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"name": "js-hex-escape",
|
|
296
|
+
"pattern": "/\\\\x[a-f0-9]{2}/gi",
|
|
297
|
+
"description": "JavaScript String Hexadecimal Escape sequence."
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"name": "js-unicode-escape",
|
|
301
|
+
"pattern": "/\\\\u[a-f0-9]{4}/gi",
|
|
302
|
+
"description": "JavaScript String Unicode Escape sequence."
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "js-regexp-flags",
|
|
306
|
+
"pattern": "/\\/[dgimsuy]{1,7}\\b(?=(?:\\.flags\\b)|\\s*$|[;),])/g",
|
|
307
|
+
"description": "JavaScript Match Regular Expression Flags"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"name": "HTML-symbol-entity",
|
|
311
|
+
"description": "Matches on HTML symbols like `♣`",
|
|
312
|
+
"pattern": {}
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"name": "MARKDOWN-link-reference",
|
|
316
|
+
"description": "Markdown reference link: `[This is a link][reference]`, matches `[reference]`",
|
|
317
|
+
"pattern": {}
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"name": "MARKDOWN-link-footer",
|
|
321
|
+
"description": "Markdown referenced link: `[reference]: https://www.google.com`, matches the entire reference.",
|
|
322
|
+
"pattern": {}
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"name": "MARKDOWN-link",
|
|
326
|
+
"description": "Markdown link: `[link text](link)`, matches `link`",
|
|
327
|
+
"pattern": {}
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"name": "MARKDOWN-anchor",
|
|
331
|
+
"description": "Markdown Anchors: `<a id=\"my_link\"></a>`, matches `my_link`",
|
|
332
|
+
"pattern": {}
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"suggestionNumChanges": 3,
|
|
336
|
+
"suggestionsTimeout": 500,
|
|
337
|
+
"version": "0.2"
|
|
338
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Anson
|
|
2
|
+
dbaeumer
|
|
3
|
+
schoero
|
|
4
|
+
Schönbächler
|
|
5
|
+
typecheck
|
|
6
|
+
volta
|
|
7
|
+
markdownlint
|
|
8
|
+
vite
|
|
9
|
+
vitest
|
|
10
|
+
ncpa
|
|
11
|
+
shellcheck
|
|
12
|
+
JSDelivr
|
|
13
|
+
tsdoc
|
|
14
|
+
qwik
|
|
15
|
+
Qwik
|
|
16
|
+
unwritten
|
|
17
|
+
vercel
|
|
18
|
+
github
|
|
19
|
+
tailwindcss
|
|
20
|
+
shiki
|
|
21
|
+
stackblitz
|
|
22
|
+
changelogen
|
|
23
|
+
minimatch
|
|
24
|
+
jsdoc
|
|
25
|
+
tsdoc
|
|
26
|
+
rollup
|
|
27
|
+
rolldown
|
|
28
|
+
browserify
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
prerelease
|
|
2
|
+
postrelease
|
|
3
|
+
prepublish
|
|
4
|
+
postpublish
|
|
5
|
+
preversion
|
|
6
|
+
postversion
|
|
7
|
+
pretest
|
|
8
|
+
posttest
|
|
9
|
+
preinstall
|
|
10
|
+
postinstall
|
|
11
|
+
pretypecheck
|
|
12
|
+
posttypecheck
|
|
13
|
+
prebuild
|
|
14
|
+
postbuild
|
|
15
|
+
prelint
|
|
16
|
+
postlint
|
|
17
|
+
preschema
|
|
18
|
+
postschema
|
|
19
|
+
preeslint
|
|
20
|
+
posteslint
|
|
21
|
+
precompress
|
|
22
|
+
postcompress
|
|
23
|
+
prepack
|
|
24
|
+
postpack
|
|
25
|
+
preprepare
|
|
26
|
+
postprepare
|
|
27
|
+
predependencies
|
|
28
|
+
postdependencies
|
|
29
|
+
prerestart
|
|
30
|
+
postrestart
|
|
31
|
+
prestart
|
|
32
|
+
poststart
|
package/eslint/ignore.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** @type {import("eslint").Linter.FlatConfig[]} */
|
|
2
|
+
export const ignore = [
|
|
3
|
+
{
|
|
4
|
+
ignores: [
|
|
5
|
+
'**/.git/**',
|
|
6
|
+
'**/node_modules/**',
|
|
7
|
+
'**/dist/**',
|
|
8
|
+
'**/lib/**',
|
|
9
|
+
'**/build/**',
|
|
10
|
+
'**/.vercel/**',
|
|
11
|
+
'**/__snapshots__/**',
|
|
12
|
+
'**/*.snap',
|
|
13
|
+
'**/package-lock.json',
|
|
14
|
+
'**/yarn.lock',
|
|
15
|
+
'**/pnpm-lock.yaml',
|
|
16
|
+
'**/bun.lockb'
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
]
|