@bfra.me/prettier-config 0.3.3 → 0.4.0
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 +0 -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.0",
|
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.5.0",
|
45
|
+
"@bfra.me/prettier-config": "0.4.0"
|
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