Skip to content

Commit 817ae25

Browse files
Merge pull request #3331 from PowerShell/andschwa/eslint
Replace TSLint with ESLint
2 parents beb8da5 + 1c693d3 commit 817ae25

Some content is hidden

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

46 files changed

+2203
-1478
lines changed

.eslintrc.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:@typescript-eslint/recommended",
9+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
10+
"plugin:@typescript-eslint/strict"
11+
],
12+
"overrides": [],
13+
"parser": "@typescript-eslint/parser",
14+
"parserOptions": {
15+
"ecmaVersion": "latest",
16+
"sourceType": "module",
17+
"tsconfigRootDir": ".",
18+
"project": [
19+
"./tsconfig.json"
20+
]
21+
},
22+
"plugins": [
23+
"@typescript-eslint",
24+
"header"
25+
],
26+
"rules": {
27+
"indent": [
28+
"error",
29+
4
30+
],
31+
"quotes": [
32+
"error",
33+
"double"
34+
],
35+
"semi": [
36+
"error",
37+
"always"
38+
],
39+
"@typescript-eslint/no-non-null-assertion": [
40+
"off"
41+
],
42+
"@typescript-eslint/no-unused-vars": [
43+
"error",
44+
{
45+
"argsIgnorePattern": "^_"
46+
}
47+
],
48+
"@typescript-eslint/no-unsafe-argument": [
49+
"off"
50+
],
51+
"@typescript-eslint/no-unsafe-assignment": [
52+
"off"
53+
],
54+
"@typescript-eslint/no-unsafe-call": [
55+
"off"
56+
],
57+
"@typescript-eslint/no-unsafe-member-access": [
58+
"off"
59+
],
60+
"@typescript-eslint/no-unsafe-return": [
61+
"off"
62+
],
63+
"@typescript-eslint/restrict-template-expressions": [
64+
"off"
65+
],
66+
"header/header": [
67+
2,
68+
"line",
69+
[
70+
" Copyright (c) Microsoft Corporation.",
71+
" Licensed under the MIT License."
72+
],
73+
2
74+
]
75+
}
76+
}

.vscodeignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@ tools/
1515
!out/main.js
1616

1717
.editorconfig
18+
.eslintrc.json
1819
.gitattributes
1920
.gitignore
2021
.markdownlint.json
2122
.vscodeignore
2223
build.ps1
2324
extension-dev.code-workspace
2425
*.vsix
26+
test-results.xml
2527
tsconfig.json
26-
tslint.json
2728
vscode-powershell.build.ps1

extension-dev.code-workspace

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"extensions": {
1313
"recommendations": [
1414
"davidanson.vscode-markdownlint",
15+
"dbaeumer.vscode-eslint",
1516
"editorconfig.editorconfig",
1617
"josefpihrt-vscode.roslynator",
1718
"ms-azure-devops.azure-pipelines",
1819
"ms-dotnettools.csharp",
19-
"ms-vscode.powershell-preview",
20-
"ms-vscode.vscode-typescript-tslint-plugin",
20+
"ms-vscode.powershell-preview"
2121
]
2222
},
2323
"settings": {

0 commit comments

Comments
 (0)