Skip to content

Commit 4f6e0b8

Browse files
committed
Adds support for eslint and drops tslint
Fixes Change tslint to eslint #260
1 parent 92c6884 commit 4f6e0b8

File tree

7 files changed

+1548
-344
lines changed

7 files changed

+1548
-344
lines changed

.eslintrc.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**@type {import('eslint').Linter.Config} */
2+
// eslint-disable-next-line no-undef
3+
module.exports = {
4+
root: true,
5+
parser: '@typescript-eslint/parser',
6+
plugins: [
7+
'@typescript-eslint',
8+
],
9+
extends: [
10+
'eslint:recommended',
11+
'plugin:@typescript-eslint/recommended',
12+
],
13+
rules: {
14+
'semi': [2, "always"],
15+
'@typescript-eslint/no-unused-vars': 0,
16+
'@typescript-eslint/no-explicit-any': 0,
17+
'@typescript-eslint/explicit-module-boundary-types': 0,
18+
'@typescript-eslint/no-non-null-assertion': 0,
19+
}
20+
};

.vscode/extensions.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
// List of extensions which should be recommended for users of this workspace.
5+
"recommendations": [
6+
"dbaeumer.vscode-eslint"
7+
],
8+
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
9+
"unwantedRecommendations": []
10+
}

.vscode/tasks.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,13 @@
4242
"isDefault": true
4343
},
4444
"detail": "setup for test launch"
45-
45+
},
46+
{
47+
"type": "npm",
48+
"script": "lint",
49+
"problemMatcher": "$eslint-stylish",
50+
"label": "npm: lint",
51+
"detail": "eslint . --ext .ts,.tsx"
4652
}
4753
]
4854
}

0 commit comments

Comments
 (0)