@bfra.me/prettier-config 0.3.3 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/120-proof.d.ts +39 -0
- package/120-proof.js +9 -0
- package/120-proof.ts +11 -0
- package/package.json +9 -6
- package/prettier.config.js +2 -2
- package/prettier.config.ts +2 -1
package/120-proof.d.ts
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
/**
|
2
|
+
* Shared Prettier configuration for bfra.me projects with `printWidth` set to 120 characters.
|
3
|
+
*/
|
4
|
+
declare const config: {
|
5
|
+
printWidth: number
|
6
|
+
overrides?: Array<{
|
7
|
+
files: string | string[]
|
8
|
+
excludeFiles?: string | string[]
|
9
|
+
options?: import('prettier').Options
|
10
|
+
}>
|
11
|
+
semi?: boolean
|
12
|
+
singleQuote?: boolean
|
13
|
+
jsxSingleQuote?: boolean
|
14
|
+
trailingComma?: 'none' | 'es5' | 'all'
|
15
|
+
bracketSpacing?: boolean
|
16
|
+
bracketSameLine?: boolean
|
17
|
+
rangeStart?: number
|
18
|
+
rangeEnd?: number
|
19
|
+
parser?: import('prettier').LiteralUnion<import('prettier').BuiltInParserName>
|
20
|
+
filepath?: string
|
21
|
+
requirePragma?: boolean
|
22
|
+
insertPragma?: boolean
|
23
|
+
proseWrap?: 'always' | 'never' | 'preserve'
|
24
|
+
arrowParens?: 'avoid' | 'always'
|
25
|
+
plugins?: Array<string | import('prettier').Plugin>
|
26
|
+
htmlWhitespaceSensitivity?: 'css' | 'strict' | 'ignore'
|
27
|
+
endOfLine?: 'auto' | 'lf' | 'crlf' | 'cr'
|
28
|
+
quoteProps?: 'as-needed' | 'consistent' | 'preserve'
|
29
|
+
vueIndentScriptAndStyle?: boolean
|
30
|
+
embeddedLanguageFormatting?: 'auto' | 'off'
|
31
|
+
singleAttributePerLine?: boolean
|
32
|
+
experimentalTernaries?: boolean
|
33
|
+
jsxBracketSameLine?: boolean
|
34
|
+
tabWidth?: number
|
35
|
+
useTabs?: boolean
|
36
|
+
parentParser?: string | undefined
|
37
|
+
__embeddedInHtml?: boolean | undefined
|
38
|
+
}
|
39
|
+
export default config
|
package/120-proof.js
ADDED
package/120-proof.ts
ADDED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@bfra.me/prettier-config",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.4.1",
|
4
4
|
"description": "Shared Prettier configuration for bfra.me",
|
5
5
|
"keywords": [
|
6
6
|
"bfra.me",
|
@@ -25,21 +25,24 @@
|
|
25
25
|
"types": "./prettier.config.d.ts",
|
26
26
|
"import": "./prettier.config.js"
|
27
27
|
},
|
28
|
+
"./100-proof": "./prettier.config.js",
|
29
|
+
"./120-proof": "./120-proof.js",
|
28
30
|
"./package.json": "./package.json"
|
29
31
|
},
|
30
32
|
"main": "prettier.config.js",
|
31
33
|
"types": "prettier.config.d.ts",
|
32
34
|
"files": [
|
33
|
-
"
|
35
|
+
"*.js",
|
36
|
+
"*.ts",
|
34
37
|
"!*.map"
|
35
38
|
],
|
36
39
|
"dependencies": {
|
37
40
|
"@bfra.me/prettier-plugins": "0.2.1"
|
38
41
|
},
|
39
42
|
"devDependencies": {
|
40
|
-
"prettier": "3.
|
41
|
-
"@bfra.me/
|
42
|
-
"@bfra.me/
|
43
|
+
"prettier": "3.3.3",
|
44
|
+
"@bfra.me/tsconfig": "0.6.0",
|
45
|
+
"@bfra.me/prettier-config": "0.4.1"
|
43
46
|
},
|
44
47
|
"peerDependencies": {
|
45
48
|
"prettier": "^3.0.0"
|
@@ -50,6 +53,6 @@
|
|
50
53
|
},
|
51
54
|
"scripts": {
|
52
55
|
"build": "tsc --build && pnpm run format",
|
53
|
-
"format": "prettier --
|
56
|
+
"format": "prettier --ignore-path .prettierignore --log-level log --write ."
|
54
57
|
}
|
55
58
|
}
|
package/prettier.config.js
CHANGED
@@ -14,7 +14,7 @@ const config = {
|
|
14
14
|
// VS Code configuration files:
|
15
15
|
// Use 4 spaces for indentation to match the default VS Code settings.
|
16
16
|
{
|
17
|
-
files: ['.vscode/*.json'],
|
17
|
+
files: ['.vscode/*.json', '.devcontainer/**/devcontainer*.json'],
|
18
18
|
options: {
|
19
19
|
tabWidth: 4,
|
20
20
|
},
|
@@ -47,6 +47,7 @@ const config = {
|
|
47
47
|
'**/.changeset/*.md',
|
48
48
|
'**/CHANGELOG*.md',
|
49
49
|
'**/changelog*.md',
|
50
|
+
'**/devcontainer-lock.json',
|
50
51
|
'**/LICENSE*',
|
51
52
|
'**/license*',
|
52
53
|
'**/*.min.*',
|
@@ -62,4 +63,3 @@ const config = {
|
|
62
63
|
plugins: ['@bfra.me/prettier-plugins/package-json'].map(plugin => resolve(plugin)),
|
63
64
|
}
|
64
65
|
export default config
|
65
|
-
//# sourceMappingURL=prettier.config.js.map
|
package/prettier.config.ts
CHANGED
@@ -18,7 +18,7 @@ const config: Config = {
|
|
18
18
|
// VS Code configuration files:
|
19
19
|
// Use 4 spaces for indentation to match the default VS Code settings.
|
20
20
|
{
|
21
|
-
files: ['.vscode/*.json'],
|
21
|
+
files: ['.vscode/*.json', '.devcontainer/**/devcontainer*.json'],
|
22
22
|
options: {
|
23
23
|
tabWidth: 4,
|
24
24
|
},
|
@@ -54,6 +54,7 @@ const config: Config = {
|
|
54
54
|
'**/.changeset/*.md',
|
55
55
|
'**/CHANGELOG*.md',
|
56
56
|
'**/changelog*.md',
|
57
|
+
'**/devcontainer-lock.json',
|
57
58
|
'**/LICENSE*',
|
58
59
|
'**/license*',
|
59
60
|
'**/*.min.*',
|