Skip to content

Commit d7e5612

Browse files
authored
Use prettier
Closes GH-81. Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com> Reviewed-by: Titus Wormer <tituswormer@gmail.com>
1 parent ace3209 commit d7e5612

15 files changed

+698
-690
lines changed

.editorconfig

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
1-
# editorconfig.org
21
root = true
32

43
[*]
54
indent_style = space
6-
indent_size = 4
5+
indent_size = 2
76
end_of_line = lf
87
charset = utf-8
98
trim_trailing_whitespace = true
109
insert_final_newline = true
11-
12-
# The indent size used in the `package.json` file cannot be changed
13-
# https://github.com/npm/npm/pull/3180#issuecomment-16336516
14-
[{.travis.yml,npm-shrinkwrap.json,package.json}]
15-
indent_style = space
16-
indent_size = 2
17-
18-
[*.{yml,yaml}]
19-
indent_style = space
20-
indent_size = 2

.eslintrc.json

+11-16
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
{
2-
"root": true,
3-
"parser": "@typescript-eslint/parser",
4-
"parserOptions": {
5-
"ecmaVersion": 6,
6-
"sourceType": "module"
7-
},
8-
"plugins": [
9-
"@typescript-eslint"
10-
],
11-
"rules": {
12-
"@typescript-eslint/semi": "warn",
13-
"curly": "warn",
14-
"eqeqeq": "warn",
15-
"no-throw-literal": "warn",
16-
"semi": "off"
17-
}
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 6,
6+
"sourceType": "module"
7+
},
8+
"rules": {
9+
"curly": "warn",
10+
"eqeqeq": "warn",
11+
"no-throw-literal": "warn"
12+
}
1813
}

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.md

.vscode/launch.json

+12-16
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
{
2-
"version": "0.1.0",
3-
"configurations": [
4-
{
5-
"name": "Launch Extension",
6-
"type": "extensionHost",
7-
"request": "launch",
8-
"runtimeExecutable": "${execPath}",
9-
"args": [
10-
"--extensionDevelopmentPath=${workspaceRoot}"
11-
],
12-
"stopOnEntry": false,
13-
"outFiles": [
14-
"${workspaceRoot}/out"
15-
]
16-
}
17-
]
2+
"version": "0.1.0",
3+
"configurations": [
4+
{
5+
"name": "Launch Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"runtimeExecutable": "${execPath}",
9+
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
10+
"stopOnEntry": false,
11+
"outFiles": ["${workspaceRoot}/out"]
12+
}
13+
]
1814
}

0 commit comments

Comments
 (0)