@bfra.me/prettier-config 0.15.0 → 0.15.2

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.
@@ -0,0 +1,4 @@
1
+ import {defaultConfig as $100ProofConfig} from './default.js'
2
+ var proof_default = $100ProofConfig
3
+ export {$100ProofConfig, proof_default as default}
4
+ //# sourceMappingURL=100-proof.js.map
@@ -0,0 +1,9 @@
1
+ import {defaultConfig} from './default.js'
2
+ import {defineConfig} from './define-config.js'
3
+ const $120ProofConfig = defineConfig({
4
+ ...defaultConfig,
5
+ printWidth: 120,
6
+ })
7
+ var proof_default = $120ProofConfig
8
+ export {$120ProofConfig, proof_default as default}
9
+ //# sourceMappingURL=120-proof.js.map
@@ -0,0 +1,9 @@
1
+ import {defaultConfig} from './default.js'
2
+ import {defineConfig} from './define-config.js'
3
+ const $80ProofConfig = defineConfig({
4
+ ...defaultConfig,
5
+ printWidth: 80,
6
+ })
7
+ var proof_default = $80ProofConfig
8
+ export {$80ProofConfig, proof_default as default}
9
+ //# sourceMappingURL=80-proof.js.map
package/lib/default.js ADDED
@@ -0,0 +1,70 @@
1
+ import {defineConfig} from './define-config.js'
2
+ const defaultConfig = defineConfig({
3
+ arrowParens: 'avoid',
4
+ bracketSpacing: false,
5
+ endOfLine: 'auto',
6
+ printWidth: 100,
7
+ semi: false,
8
+ singleQuote: true,
9
+ /** Provide a list of patterns to override prettier configuration. */
10
+ overrides: [
11
+ // Adapted from https://github.com/sxzz/prettier-config/blob/1e5cc3021e5816aceebe0b90af1d530239442ecf/index.js.
12
+ // Require a pragma for paths typically not under version control or written by build tools.
13
+ {
14
+ files: [
15
+ '**/node_modules/**',
16
+ '**/dist/**',
17
+ '**/coverage/**',
18
+ '**/out/**',
19
+ '**/temp/**',
20
+ '**/.idea/**',
21
+ '**/.next/**',
22
+ '**/.nuxt/**',
23
+ '**/.output/**',
24
+ '**/.tsup/**',
25
+ '**/.vercel/**',
26
+ '**/.vitepress/cache/**',
27
+ '**/.vite-inspect/**',
28
+ '**/__snapshots__/**',
29
+ '**/test/fixtures/**',
30
+ '**/auto-import?(s).d.ts',
31
+ '**/.changeset/*.md',
32
+ '**/CHANGELOG*.md',
33
+ '**/changelog*.md',
34
+ '**/components.d.ts',
35
+ '**/devcontainer-lock.json',
36
+ '**/LICENSE*',
37
+ '**/license*',
38
+ '**/*.min.*',
39
+ '**/package-lock.json',
40
+ '**/pnpm-lock.yaml',
41
+ '**/typed-router.d.ts',
42
+ '**/yarn.lock',
43
+ ],
44
+ options: {
45
+ requirePragma: true,
46
+ },
47
+ },
48
+ // VS Code configuration files:
49
+ // Use 4 spaces for indentation to match the default VS Code settings.
50
+ {
51
+ files: ['.vscode/*.json', '.devcontainer/**/devcontainer*.json'],
52
+ options: {
53
+ tabWidth: 4,
54
+ },
55
+ },
56
+ // Markdown:
57
+ // - Disable single quotes for Markdown files.
58
+ // - Disable `proseWrap` to avoid wrapping prose.
59
+ {
60
+ files: ['*.md'],
61
+ options: {
62
+ proseWrap: 'never',
63
+ singleQuote: false,
64
+ },
65
+ },
66
+ ],
67
+ })
68
+ var default_default = defaultConfig
69
+ export {default_default as default, defaultConfig}
70
+ //# sourceMappingURL=default.js.map
@@ -0,0 +1,29 @@
1
+ var __defProp = Object.defineProperty
2
+ var __name = (target, value) => __defProp(target, 'name', {value, configurable: true})
3
+ const properties = ['overrides']
4
+ const freeze = /* @__PURE__ */ __name(config => {
5
+ for (const property of properties) {
6
+ const value = config[property]
7
+ if (typeof value !== 'object' || value === null) {
8
+ continue
9
+ }
10
+ Object.freeze(value)
11
+ if (property === 'overrides') {
12
+ const overrides = value
13
+ for (const override of overrides) {
14
+ const {files, excludeFiles, options} = override
15
+ Object.freeze(files)
16
+ if (excludeFiles) {
17
+ Object.freeze(excludeFiles)
18
+ }
19
+ if (options) {
20
+ Object.freeze(options)
21
+ }
22
+ }
23
+ }
24
+ }
25
+ return Object.freeze(config)
26
+ }, 'freeze')
27
+ const defineConfig = /* @__PURE__ */ __name(config => freeze(config), 'defineConfig')
28
+ export {defineConfig}
29
+ //# sourceMappingURL=define-config.js.map
package/lib/index.d.ts CHANGED
@@ -1,8 +1,72 @@
1
+ import * as prettier from 'prettier'
1
2
  import {Config} from 'prettier'
2
3
 
4
+ type Override = NonNullable<Config['overrides']>[number]
3
5
  /**
4
6
  * Shared Prettier configuration for bfra.me projects.
7
+ * @see https://prettier.io/docs/en/configuration.html
5
8
  */
6
- declare const config: Config
9
+ declare const defaultConfig: {
10
+ arrowParens: 'avoid'
11
+ bracketSpacing: false
12
+ endOfLine: 'auto'
13
+ printWidth: number
14
+ semi: false
15
+ singleQuote: true
16
+ /** Provide a list of patterns to override prettier configuration. */
17
+ overrides: Override[]
18
+ }
7
19
 
8
- export {config as default}
20
+ declare const $80ProofConfig: {
21
+ printWidth: number
22
+ arrowParens: 'avoid'
23
+ bracketSpacing: false
24
+ endOfLine: 'auto'
25
+ semi: false
26
+ singleQuote: true
27
+ overrides: {
28
+ files: string | string[]
29
+ excludeFiles?: string | string[]
30
+ options?: prettier.Options
31
+ }[]
32
+ }
33
+
34
+ declare const $120ProofConfig: {
35
+ printWidth: number
36
+ arrowParens: 'avoid'
37
+ bracketSpacing: false
38
+ endOfLine: 'auto'
39
+ semi: false
40
+ singleQuote: true
41
+ overrides: {
42
+ files: string | string[]
43
+ excludeFiles?: string | string[]
44
+ options?: prettier.Options
45
+ }[]
46
+ }
47
+
48
+ declare const defineConfig: <C extends Config>(config: C) => C
49
+
50
+ declare const semi: {
51
+ semi: true
52
+ arrowParens: 'avoid'
53
+ bracketSpacing: false
54
+ endOfLine: 'auto'
55
+ printWidth: number
56
+ singleQuote: true
57
+ overrides: {
58
+ files: string | string[]
59
+ excludeFiles?: string | string[]
60
+ options?: prettier.Options
61
+ }[]
62
+ }
63
+
64
+ export {
65
+ defaultConfig as $100ProofConfig,
66
+ $120ProofConfig,
67
+ $80ProofConfig,
68
+ defaultConfig as default,
69
+ defaultConfig,
70
+ defineConfig,
71
+ semi,
72
+ }
package/lib/index.js CHANGED
@@ -1,92 +1,10 @@
1
- var __defProp = Object.defineProperty
2
- var __name = (target, value) => __defProp(target, 'name', {value, configurable: true})
3
- const freeze = /* @__PURE__ */ __name(config2 => {
4
- return Object.freeze(config2)
5
- }, 'freeze')
6
- const baseConfig = {
7
- printWidth: 100,
8
- semi: false,
9
- }
10
- const {searchParams} = new URL(import.meta.url)
11
- const importConfig = freeze(
12
- Object.fromEntries(
13
- Object.entries(baseConfig).map(([key, defaultValue]) => {
14
- const param = searchParams.get(key)
15
- if (param === null) return [key, defaultValue]
16
- switch (typeof defaultValue) {
17
- case 'boolean':
18
- return [key, param === 'true']
19
- case 'number':
20
- return [key, Number(param)]
21
- default:
22
- return [key, param]
23
- }
24
- }),
25
- ),
26
- )
27
- const config = {
28
- arrowParens: 'avoid',
29
- bracketSpacing: false,
30
- endOfLine: 'auto',
31
- singleQuote: true,
32
- ...importConfig,
33
- overrides: [
34
- // Adapted from https://github.com/sxzz/prettier-config/blob/1e5cc3021e5816aceebe0b90af1d530239442ecf/index.js.
35
- // Require a pragma for paths typically not under version control or written by build tools.
36
- {
37
- files: [
38
- '**/node_modules/**',
39
- '**/dist/**',
40
- '**/coverage/**',
41
- '**/out/**',
42
- '**/temp/**',
43
- '**/.idea/**',
44
- '**/.next/**',
45
- '**/.nuxt/**',
46
- '**/.output/**',
47
- '**/.tsup/**',
48
- '**/.vercel/**',
49
- '**/.vitepress/cache/**',
50
- '**/.vite-inspect/**',
51
- '**/__snapshots__/**',
52
- '**/test/fixtures/**',
53
- '**/auto-import?(s).d.ts',
54
- '**/.changeset/*.md',
55
- '**/CHANGELOG*.md',
56
- '**/changelog*.md',
57
- '**/components.d.ts',
58
- '**/devcontainer-lock.json',
59
- '**/LICENSE*',
60
- '**/license*',
61
- '**/*.min.*',
62
- '**/package-lock.json',
63
- '**/pnpm-lock.yaml',
64
- '**/typed-router.d.ts',
65
- '**/yarn.lock',
66
- ],
67
- options: {
68
- requirePragma: true,
69
- },
70
- },
71
- // VS Code configuration files:
72
- // Use 4 spaces for indentation to match the default VS Code settings.
73
- {
74
- files: ['.vscode/*.json', '.devcontainer/**/devcontainer*.json'],
75
- options: {
76
- tabWidth: 4,
77
- },
78
- },
79
- // Markdown:
80
- // - Disable single quotes for Markdown files.
81
- // - Disable `proseWrap` to avoid wrapping prose.
82
- {
83
- files: ['*.md'],
84
- options: {
85
- proseWrap: 'never',
86
- singleQuote: false,
87
- },
88
- },
89
- ],
90
- }
91
- export {config as default}
1
+ import {defaultConfig} from './default.js'
2
+ var index_default = defaultConfig
3
+ export * from './80-proof.js'
4
+ export * from './100-proof.js'
5
+ export * from './120-proof.js'
6
+ export * from './default.js'
7
+ export * from './define-config.js'
8
+ export * from './semi.js'
9
+ export {index_default as default}
92
10
  //# sourceMappingURL=index.js.map
package/lib/semi.js ADDED
@@ -0,0 +1,9 @@
1
+ import {defaultConfig} from './default.js'
2
+ import {defineConfig} from './define-config.js'
3
+ const semi = defineConfig({
4
+ ...defaultConfig,
5
+ semi: true,
6
+ })
7
+ var semi_default = semi
8
+ export {semi_default as default, semi}
9
+ //# sourceMappingURL=semi.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bfra.me/prettier-config",
3
- "version": "0.15.0",
3
+ "version": "0.15.2",
4
4
  "description": "Shared Prettier configuration for bfra.me",
5
5
  "keywords": [
6
6
  "bfra.me",
@@ -26,12 +26,14 @@
26
26
  "source": "./src/index.ts",
27
27
  "default": "./lib/index.js"
28
28
  },
29
- "./prettier.config": "./prettier.config.cjs",
30
- "./80-proof": "./lib/index.js?printWidth=80",
31
- "./100-proof": "./lib/index.js?printWidth=100",
32
- "./120-proof": "./lib/index.js?printWidth=120",
33
- "./semi": "./lib/index.js?semi=true",
34
- "./package.json": "./package.json"
29
+ "./80-proof": "./lib/80-proof.js",
30
+ "./100-proof": "./lib/100-proof.js",
31
+ "./120-proof": "./lib/120-proof.js",
32
+ "./default": "./lib/default.js",
33
+ "./define-config": "./lib/define-config.js",
34
+ "./semi": "./lib/semi.js",
35
+ "./package.json": "./package.json",
36
+ "./prettier.config": "./prettier.config.cjs"
35
37
  },
36
38
  "main": "./lib/index.js",
37
39
  "module": "./lib/index.js",
@@ -44,9 +46,9 @@
44
46
  "!**/*.map"
45
47
  ],
46
48
  "devDependencies": {
47
- "prettier": "3.4.2",
48
- "tsup": "8.3.5",
49
- "@bfra.me/prettier-config": "0.15.0",
49
+ "prettier": "3.5.1",
50
+ "tsup": "8.3.6",
51
+ "@bfra.me/prettier-config": "0.15.2",
50
52
  "@bfra.me/tsconfig": "0.9.7"
51
53
  },
52
54
  "peerDependencies": {
@@ -1,2 +1 @@
1
- "use strict";var c=Object.defineProperty;var r=(e,t)=>c(e,"name",{value:t,configurable:!0});var i=(e,t)=>()=>(e&&(t=e(e=0)),t);var p=(e,t)=>{for(var n in t)c(e,n,{get:t[n],enumerable:!0})};var m,s,o=i(()=>{"use strict";m=r(()=>typeof document>"u"?new URL(`file:${__filename}`).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href,"getImportMetaUrl"),s=m()});var a={};p(a,{default:()=>h});var d,f,l,g,h,u=i(()=>{"use strict";o();d=r(e=>Object.freeze(e),"freeze"),f={printWidth:100,semi:!1},{searchParams:l}=new URL(s),g=d(Object.fromEntries(Object.entries(f).map(([e,t])=>{let n=l.get(e);if(n===null)return[e,t];switch(typeof t){case"boolean":return[e,n==="true"];case"number":return[e,Number(n)];default:return[e,n]}}))),h={arrowParens:"avoid",bracketSpacing:!1,endOfLine:"auto",singleQuote:!0,...g,overrides:[{files:["**/node_modules/**","**/dist/**","**/coverage/**","**/out/**","**/temp/**","**/.idea/**","**/.next/**","**/.nuxt/**","**/.output/**","**/.tsup/**","**/.vercel/**","**/.vitepress/cache/**","**/.vite-inspect/**","**/__snapshots__/**","**/test/fixtures/**","**/auto-import?(s).d.ts","**/.changeset/*.md","**/CHANGELOG*.md","**/changelog*.md","**/components.d.ts","**/devcontainer-lock.json","**/LICENSE*","**/license*","**/*.min.*","**/package-lock.json","**/pnpm-lock.yaml","**/typed-router.d.ts","**/yarn.lock"],options:{requirePragma:!0}},{files:[".vscode/*.json",".devcontainer/**/devcontainer*.json"],options:{tabWidth:4}},{files:["*.md"],options:{proseWrap:"never",singleQuote:!1}}]}});o();var v=Promise.resolve().then(()=>(u(),a)).then(({default:e})=>e);module.exports=v;
2
- //# sourceMappingURL=prettier.config.cjs.map
1
+ "use strict";var f=Object.defineProperty;var n=(e,t)=>f(e,"name",{value:t,configurable:!0});var s=(e,t)=>()=>(e&&(t=e(e=0)),t);var b=(e,t)=>{for(var o in t)f(e,o,{get:t[o],enumerable:!0})};var r=s(()=>{"use strict"});var h,x,d,a=s(()=>{"use strict";r();h=["overrides"],x=n(e=>{for(let t of h){let o=e[t];if(!(typeof o!="object"||o===null)&&(Object.freeze(o),t==="overrides")){let v=o;for(let g of v){let{files:j,excludeFiles:i,options:c}=g;Object.freeze(j),i&&Object.freeze(i),c&&Object.freeze(c)}}}return Object.freeze(e)},"freeze"),d=n(e=>x(e),"defineConfig")});var u={};b(u,{default:()=>O,defaultConfig:()=>l});var l,O,m=s(()=>{"use strict";r();a();l=d({arrowParens:"avoid",bracketSpacing:!1,endOfLine:"auto",printWidth:100,semi:!1,singleQuote:!0,overrides:[{files:["**/node_modules/**","**/dist/**","**/coverage/**","**/out/**","**/temp/**","**/.idea/**","**/.next/**","**/.nuxt/**","**/.output/**","**/.tsup/**","**/.vercel/**","**/.vitepress/cache/**","**/.vite-inspect/**","**/__snapshots__/**","**/test/fixtures/**","**/auto-import?(s).d.ts","**/.changeset/*.md","**/CHANGELOG*.md","**/changelog*.md","**/components.d.ts","**/devcontainer-lock.json","**/LICENSE*","**/license*","**/*.min.*","**/package-lock.json","**/pnpm-lock.yaml","**/typed-router.d.ts","**/yarn.lock"],options:{requirePragma:!0}},{files:[".vscode/*.json",".devcontainer/**/devcontainer*.json"],options:{tabWidth:4}},{files:["*.md"],options:{proseWrap:"never",singleQuote:!1}}]}),O=l});r();module.exports=Promise.resolve().then(()=>(m(),u)).then(({defaultConfig:e})=>e);
@@ -0,0 +1,4 @@
1
+ import {defaultConfig as $100ProofConfig} from './default.js'
2
+
3
+ export {$100ProofConfig}
4
+ export default $100ProofConfig
@@ -0,0 +1,9 @@
1
+ import {defaultConfig} from './default.js'
2
+ import {defineConfig} from './define-config.js'
3
+
4
+ export const $120ProofConfig = defineConfig({
5
+ ...defaultConfig,
6
+ printWidth: 120,
7
+ })
8
+
9
+ export default $120ProofConfig
@@ -0,0 +1,9 @@
1
+ import {defaultConfig} from './default.js'
2
+ import {defineConfig} from './define-config.js'
3
+
4
+ export const $80ProofConfig = defineConfig({
5
+ ...defaultConfig,
6
+ printWidth: 80,
7
+ })
8
+
9
+ export default $80ProofConfig
package/src/default.ts ADDED
@@ -0,0 +1,81 @@
1
+ import type {Config} from 'prettier'
2
+ import {defineConfig} from './define-config.js'
3
+
4
+ type Override = NonNullable<Config['overrides']>[number]
5
+
6
+ /**
7
+ * Shared Prettier configuration for bfra.me projects.
8
+ * @see https://prettier.io/docs/en/configuration.html
9
+ */
10
+ export const defaultConfig = defineConfig({
11
+ arrowParens: 'avoid',
12
+ bracketSpacing: false,
13
+ endOfLine: 'auto',
14
+ printWidth: 100,
15
+ semi: false,
16
+ singleQuote: true,
17
+
18
+ /** Provide a list of patterns to override prettier configuration. */
19
+ overrides: [
20
+ // Adapted from https://github.com/sxzz/prettier-config/blob/1e5cc3021e5816aceebe0b90af1d530239442ecf/index.js.
21
+ // Require a pragma for paths typically not under version control or written by build tools.
22
+ {
23
+ files: [
24
+ '**/node_modules/**',
25
+ '**/dist/**',
26
+ '**/coverage/**',
27
+ '**/out/**',
28
+ '**/temp/**',
29
+ '**/.idea/**',
30
+ '**/.next/**',
31
+ '**/.nuxt/**',
32
+ '**/.output/**',
33
+ '**/.tsup/**',
34
+ '**/.vercel/**',
35
+ '**/.vitepress/cache/**',
36
+ '**/.vite-inspect/**',
37
+ '**/__snapshots__/**',
38
+ '**/test/fixtures/**',
39
+
40
+ '**/auto-import?(s).d.ts',
41
+ '**/.changeset/*.md',
42
+ '**/CHANGELOG*.md',
43
+ '**/changelog*.md',
44
+ '**/components.d.ts',
45
+ '**/devcontainer-lock.json',
46
+ '**/LICENSE*',
47
+ '**/license*',
48
+ '**/*.min.*',
49
+ '**/package-lock.json',
50
+ '**/pnpm-lock.yaml',
51
+ '**/typed-router.d.ts',
52
+ '**/yarn.lock',
53
+ ],
54
+ options: {
55
+ requirePragma: true,
56
+ },
57
+ },
58
+
59
+ // VS Code configuration files:
60
+ // Use 4 spaces for indentation to match the default VS Code settings.
61
+ {
62
+ files: ['.vscode/*.json', '.devcontainer/**/devcontainer*.json'],
63
+ options: {
64
+ tabWidth: 4,
65
+ },
66
+ },
67
+
68
+ // Markdown:
69
+ // - Disable single quotes for Markdown files.
70
+ // - Disable `proseWrap` to avoid wrapping prose.
71
+ {
72
+ files: ['*.md'],
73
+ options: {
74
+ proseWrap: 'never',
75
+ singleQuote: false,
76
+ },
77
+ },
78
+ ] as Override[],
79
+ })
80
+
81
+ export default defaultConfig
@@ -0,0 +1,33 @@
1
+ import type {Config} from 'prettier'
2
+
3
+ const properties = ['overrides']
4
+
5
+ const freeze = <C extends Config>(config: C): Readonly<C> => {
6
+ for (const property of properties) {
7
+ const value = config[property]
8
+ if (typeof value !== 'object' || value === null) {
9
+ continue
10
+ }
11
+
12
+ Object.freeze(value)
13
+
14
+ if (property === 'overrides') {
15
+ const overrides = value as NonNullable<Config['overrides']>
16
+ for (const override of overrides) {
17
+ const {files, excludeFiles, options} = override
18
+
19
+ Object.freeze(files)
20
+ if (excludeFiles) {
21
+ Object.freeze(excludeFiles)
22
+ }
23
+ if (options) {
24
+ Object.freeze(options)
25
+ }
26
+ }
27
+ }
28
+ }
29
+
30
+ return Object.freeze(config)
31
+ }
32
+
33
+ export const defineConfig = <C extends Config>(config: C): C => freeze(config) as C
package/src/index.ts CHANGED
@@ -1,113 +1,9 @@
1
- import type {Config} from 'prettier'
2
-
3
- const freeze = <C extends Config = Config>(config: C): Readonly<C> => {
4
- return Object.freeze(config)
5
- }
6
-
7
- const baseConfig = {
8
- printWidth: 100,
9
- semi: false,
10
- } as const
11
-
12
- // Allow the base config to be overridden by using URL search params.
13
- //
14
- // Example:
15
- //
16
- // import prettierConfig from "@bfra.me/prettier-config/?printWidth=120&semi=true";
17
- //
18
- // This will override the `printWidth` option to `120` and the `semi` option to `true`.
19
- const {searchParams} = new URL(import.meta.url)
20
-
21
- const importConfig = freeze<Config>(
22
- Object.fromEntries(
23
- Object.entries(baseConfig).map(([key, defaultValue]) => {
24
- const param = searchParams.get(key)
25
- if (param === null) return [key, defaultValue]
26
-
27
- // Parse the param string to the appropriate type based on the default value
28
- switch (typeof defaultValue) {
29
- case 'boolean':
30
- return [key, param === 'true']
31
- case 'number':
32
- return [key, Number(param)]
33
- default:
34
- return [key, param]
35
- }
36
- }),
37
- ),
38
- )
39
-
40
- /**
41
- * Shared Prettier configuration for bfra.me projects.
42
- */
43
- const config = {
44
- arrowParens: 'avoid',
45
- bracketSpacing: false,
46
- endOfLine: 'auto',
47
- singleQuote: true,
48
-
49
- ...importConfig,
50
-
51
- overrides: [
52
- // Adapted from https://github.com/sxzz/prettier-config/blob/1e5cc3021e5816aceebe0b90af1d530239442ecf/index.js.
53
- // Require a pragma for paths typically not under version control or written by build tools.
54
- {
55
- files: [
56
- '**/node_modules/**',
57
- '**/dist/**',
58
- '**/coverage/**',
59
- '**/out/**',
60
- '**/temp/**',
61
- '**/.idea/**',
62
- '**/.next/**',
63
- '**/.nuxt/**',
64
- '**/.output/**',
65
- '**/.tsup/**',
66
- '**/.vercel/**',
67
- '**/.vitepress/cache/**',
68
- '**/.vite-inspect/**',
69
- '**/__snapshots__/**',
70
- '**/test/fixtures/**',
71
-
72
- '**/auto-import?(s).d.ts',
73
- '**/.changeset/*.md',
74
- '**/CHANGELOG*.md',
75
- '**/changelog*.md',
76
- '**/components.d.ts',
77
- '**/devcontainer-lock.json',
78
- '**/LICENSE*',
79
- '**/license*',
80
- '**/*.min.*',
81
- '**/package-lock.json',
82
- '**/pnpm-lock.yaml',
83
- '**/typed-router.d.ts',
84
- '**/yarn.lock',
85
- ],
86
- options: {
87
- requirePragma: true,
88
- },
89
- },
90
-
91
- // VS Code configuration files:
92
- // Use 4 spaces for indentation to match the default VS Code settings.
93
- {
94
- files: ['.vscode/*.json', '.devcontainer/**/devcontainer*.json'],
95
- options: {
96
- tabWidth: 4,
97
- },
98
- },
99
-
100
- // Markdown:
101
- // - Disable single quotes for Markdown files.
102
- // - Disable `proseWrap` to avoid wrapping prose.
103
- {
104
- files: ['*.md'],
105
- options: {
106
- proseWrap: 'never',
107
- singleQuote: false,
108
- },
109
- },
110
- ],
111
- } as Config
112
-
113
- export {config as default}
1
+ import {defaultConfig} from './default.js'
2
+ export default defaultConfig
3
+
4
+ export * from './80-proof.js'
5
+ export * from './100-proof.js'
6
+ export * from './120-proof.js'
7
+ export * from './default.js'
8
+ export * from './define-config.js'
9
+ export * from './semi.js'
package/src/semi.ts ADDED
@@ -0,0 +1,9 @@
1
+ import {defaultConfig} from './default.js'
2
+ import {defineConfig} from './define-config.js'
3
+
4
+ export const semi = defineConfig({
5
+ ...defaultConfig,
6
+ semi: true,
7
+ })
8
+
9
+ export default semi