Skip to content

Commit ad99175

Browse files
enforce prettier rules on JSON files (#1040)
1 parent ad15f0e commit ad99175

File tree

3 files changed

+16
-21
lines changed

3 files changed

+16
-21
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@
12641264
"compile": "tsc",
12651265
"watch": "tsc --watch",
12661266
"lint": "eslint ./ --ext ts && tsc --noEmit",
1267-
"format": "prettier --check src test",
1267+
"format": "prettier --check *.json src test",
12681268
"pretest": "npm run compile && find ./assets/test -type d -name '.build' -exec rm -rf {} + && find . -type d -name 'Package.resolved' -exec rm -rf {} + && tsc -p ./",
12691269
"test": "vscode-test",
12701270
"integration-test": "vscode-test --label integrationTests",
@@ -1306,4 +1306,4 @@
13061306
"vscode-languageclient": "^9.0.1",
13071307
"xml2js": "^0.6.2"
13081308
}
1309-
}
1309+
}

tsconfig.json

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
{
2-
"compilerOptions": {
3-
"module": "commonjs",
4-
"target": "ES2020",
5-
"outDir": "out",
6-
"lib": [
7-
"ES2020"
8-
],
9-
"sourceMap": true,
10-
"strict": true /* enable all strict type-checking options */
11-
/* Additional Checks */
12-
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
13-
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
14-
// "noUnusedParameters": true, /* Report errors on unused parameters. */
15-
},
16-
"exclude": [
17-
"node_modules",
18-
".vscode-test"
19-
]
2+
"compilerOptions": {
3+
"module": "commonjs",
4+
"target": "ES2020",
5+
"outDir": "out",
6+
"lib": ["ES2020"],
7+
"sourceMap": true,
8+
"strict": true /* enable all strict type-checking options */
9+
/* Additional Checks */
10+
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
11+
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
12+
// "noUnusedParameters": true, /* Report errors on unused parameters. */
13+
},
14+
"exclude": ["node_modules", ".vscode-test"]
2015
}

0 commit comments

Comments
 (0)