@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 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
@@ -0,0 +1,9 @@
1
+ import prettierConfig from '@bfra.me/prettier-config'
2
+ /**
3
+ * Shared Prettier configuration for bfra.me projects with `printWidth` set to 120 characters.
4
+ */
5
+ const config = {
6
+ ...prettierConfig,
7
+ printWidth: 120,
8
+ }
9
+ export default config
package/120-proof.ts ADDED
@@ -0,0 +1,11 @@
1
+ import prettierConfig from '@bfra.me/prettier-config'
2
+
3
+ /**
4
+ * Shared Prettier configuration for bfra.me projects with `printWidth` set to 120 characters.
5
+ */
6
+ const config = {
7
+ ...prettierConfig,
8
+ printWidth: 120,
9
+ }
10
+
11
+ export default config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bfra.me/prettier-config",
3
- "version": "0.3.3",
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
- "prettier.config.*",
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.2.5",
41
- "@bfra.me/prettier-config": "0.3.3",
42
- "@bfra.me/tsconfig": "0.5.0"
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 --log-level error --ignore-unknown --write prettier.config.*"
56
+ "format": "prettier --ignore-path .prettierignore --log-level log --write ."
54
57
  }
55
58
  }
@@ -62,4 +62,3 @@ const config = {
62
62
  plugins: ['@bfra.me/prettier-plugins/package-json'].map(plugin => resolve(plugin)),
63
63
  }
64
64
  export default config
65
- //# sourceMappingURL=prettier.config.js.map