Skip to content

Commit 32260d5

Browse files
committed
fix: move config to config.json
1 parent 8d978a0 commit 32260d5

File tree

3 files changed

+15
-22
lines changed

3 files changed

+15
-22
lines changed

package.json

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,6 @@
2626
"engines": {
2727
"atom": ">=1.52.0 <2.0.0"
2828
},
29-
"nuclide": {
30-
"configMetadata": {
31-
"pathComponents": [
32-
"IDE",
33-
"Code Formatting"
34-
]
35-
}
36-
},
37-
"atomConfig": {
38-
"formatOnSave": {
39-
"title": "Format on Save",
40-
"type": "boolean",
41-
"default": false,
42-
"description": "Automatically format code upon saving for supported languages."
43-
},
44-
"formatOnType": {
45-
"title": "Format on Type",
46-
"type": "boolean",
47-
"default": true,
48-
"description": "Automatically format code as you type it for supported languages."
49-
}
50-
},
5129
"consumedServices": {
5230
"atom-ide-busy-signal": {
5331
"versions": {

src/config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"formatOnSave": {
3+
"title": "Format on Save",
4+
"type": "boolean",
5+
"default": false,
6+
"description": "Automatically format code upon saving for supported languages."
7+
},
8+
"formatOnType": {
9+
"title": "Format on Type",
10+
"type": "boolean",
11+
"default": true,
12+
"description": "Automatically format code as you type it for supported languages."
13+
}
14+
}

src/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type {
99

1010
import CodeFormatManager from './CodeFormatManager';
1111

12+
export { default as config } from "./config.json"
1213

1314
let codeFormatManager: CodeFormatManager
1415

0 commit comments

Comments
 (0)