-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5f4c9a
commit 67bb12d
Showing
10 changed files
with
112 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
; this comment is being ignored | ||
scope = global | ||
|
||
[database] | ||
user = dbuser | ||
password = dbpassword | ||
database = use_this_database | ||
|
||
[paths.default] | ||
datadir = /var/lib/data | ||
array[] = first value | ||
array[] = second value | ||
array[] = third value |
14 changes: 14 additions & 0 deletions
14
core/config-example/config-dir-json5/.config/autoconfrc.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
// 注释 | ||
"projectName": "ext-json", | ||
"name": "my-app", | ||
// 允许使用十六进制和八进制数值 | ||
"hex": 0x1a, | ||
"octal": 0o755, | ||
// 允许使用 NaN、Infinity 和 -Infinity | ||
"max": Infinity, | ||
"min": -Infinity, | ||
"notANumber": NaN, | ||
// 允许使用尾随逗号 | ||
"react-dom": "^16.13.1" | ||
} |
4 changes: 4 additions & 0 deletions
4
core/config-example/config-dir-jsonc/.config/autoconfrc.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
// 注释 | ||
"projectName": "ext-jsonc" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
; this comment is being ignored | ||
scope = global | ||
|
||
[database] | ||
user = dbuser | ||
password = dbpassword | ||
database = use_this_database | ||
|
||
[paths.default] | ||
datadir = /var/lib/data | ||
array[] = first value | ||
array[] = second value | ||
array[] = third value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import ini from 'ini'; | ||
|
||
export function iniLoader<T>(_: string, content: string): T { | ||
return ini.parse(content) as T; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters