Skip to content

Commit ccc78df

Browse files
committed
Enable remaining rules from tslint and remove
1 parent 033b0aa commit ccc78df

File tree

145 files changed

+802
-870
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+802
-870
lines changed

.eslintrc.js

+22-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ module.exports = {
77
"plugin:@typescript-eslint/recommended"
88
],
99
parser: "@typescript-eslint/parser",
10+
parserOptions: {
11+
project: true,
12+
tsconfigRootDir: __dirname,
13+
},
1014
plugins: [
1115
"@typescript-eslint",
12-
"unicorn"
16+
"unicorn",
17+
"header",
18+
"prettier"
1319
],
1420
root: true,
1521
rules: {
@@ -26,6 +32,9 @@ module.exports = {
2632
}
2733
],
2834
"@typescript-eslint/no-namespace": "off",
35+
"@typescript-eslint/promise-function-async": "error",
36+
"curly": "error",
37+
"prettier/prettier": [ "error", { "endOfLine": "auto" } ],
2938
"unicorn/filename-case": [
3039
"error",
3140
{
@@ -35,10 +44,20 @@ module.exports = {
3544
"vscode-tasks\\.d\\.ts"
3645
]
3746
}
38-
]
47+
],
48+
"header/header": [ 2, "block", [
49+
"---------------------------------------------------------------------------------------------",
50+
" * Copyright (c) Microsoft Corporation. All rights reserved.",
51+
" * Licensed under the MIT License. See License.txt in the project root for license information.",
52+
" *--------------------------------------------------------------------------------------------"
53+
]]
3954
},
4055
ignorePatterns: [
4156
"out/",
42-
"dist/"
57+
"dist/",
58+
"wallaby.js",
59+
"webpack.config.js",
60+
".eslintrc.js",
61+
"**/*.d.ts"
4362
],
4463
};

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
out
2+
dist

.prettierrc

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"singleQuote": true
2+
"trailingComma": "es5",
3+
"tabWidth": 4,
4+
"semi": true,
5+
"singleQuote": true,
6+
"endOfLine":"auto"
37
}

.vscode/extensions.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"recommendations": [
3-
"dbaeumer.vscode-eslint"
3+
"dbaeumer.vscode-eslint",
4+
"esbenp.prettier-vscode"
45
]
56
}

.vscodeignore

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ ISSUE_TEMPLATE
3535
package-lock.json
3636
package.json
3737
tsconfig.json
38-
tslint.json
3938
version.json
4039
wallaby.js
4140
webpack.config.js

gulpfile.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ require('./tasks/backcompatTasks');
1313

1414
// Disable warning about wanting an async function
1515
// tslint:disable-next-line
16-
gulp.task('generateOptionsSchema', (): Promise<void> => {
16+
gulp.task('generateOptionsSchema', async (): Promise<void> => {
1717
optionsSchemaGenerator.GenerateOptionsSchema();
1818
return Promise.resolve();
1919
});
2020

2121
// Disable warning about wanting an async function
2222
// tslint:disable-next-line
23-
gulp.task('updatePackageDependencies', (): Promise<void> => {
23+
gulp.task('updatePackageDependencies', async (): Promise<void> => {
2424
return packageDependencyUpdater.updatePackageDependencies();
2525
});

0 commit comments

Comments
 (0)