Skip to content

Replace TSLint with ESLint #3331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict"
],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"tsconfigRootDir": ".",
"project": [
"./tsconfig.json"
]
},
"plugins": [
"@typescript-eslint",
"header"
],
"rules": {
"indent": [
"error",
4
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"@typescript-eslint/no-non-null-assertion": [
"off"
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-unsafe-argument": [
"off"
],
"@typescript-eslint/no-unsafe-assignment": [
"off"
],
"@typescript-eslint/no-unsafe-call": [
"off"
],
"@typescript-eslint/no-unsafe-member-access": [
"off"
],
"@typescript-eslint/no-unsafe-return": [
"off"
],
"@typescript-eslint/restrict-template-expressions": [
"off"
],
"header/header": [
2,
"line",
[
" Copyright (c) Microsoft Corporation.",
" Licensed under the MIT License."
],
2
]
}
}
3 changes: 2 additions & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ tools/
!out/main.js

.editorconfig
.eslintrc.json
.gitattributes
.gitignore
.markdownlint.json
.vscodeignore
build.ps1
extension-dev.code-workspace
*.vsix
test-results.xml
tsconfig.json
tslint.json
vscode-powershell.build.ps1
4 changes: 2 additions & 2 deletions extension-dev.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"extensions": {
"recommendations": [
"davidanson.vscode-markdownlint",
"dbaeumer.vscode-eslint",
"editorconfig.editorconfig",
"josefpihrt-vscode.roslynator",
"ms-azure-devops.azure-pipelines",
"ms-dotnettools.csharp",
"ms-vscode.powershell-preview",
"ms-vscode.vscode-typescript-tslint-plugin",
"ms-vscode.powershell-preview"
]
},
"settings": {
Expand Down
Loading