Skip to content

Commit ab9ed4a

Browse files
committed
Add eslint and fix warnings
1 parent 8e4471d commit ab9ed4a

File tree

185 files changed

+10267
-6198
lines changed

Some content is hidden

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

185 files changed

+10267
-6198
lines changed

.eslintrc.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
module.exports = {
2+
env: {
3+
node: true
4+
},
5+
extends: [
6+
"eslint:recommended",
7+
"plugin:@typescript-eslint/recommended"
8+
],
9+
parser: "@typescript-eslint/parser",
10+
plugins: [
11+
"@typescript-eslint"
12+
],
13+
root: true,
14+
rules: {
15+
"@typescript-eslint/no-explicit-any": "off",
16+
"@typescript-eslint/no-non-null-assertion": "off",
17+
"@typescript-eslint/semi": ["error", "always"],
18+
// Allow unused vars if prefixed by _
19+
"@typescript-eslint/no-unused-vars": [
20+
"warn",
21+
{
22+
"argsIgnorePattern": "^_",
23+
"varsIgnorePattern": "^_",
24+
"caughtErrorsIgnorePattern": "^_"
25+
}
26+
],
27+
},
28+
ignorePatterns: [
29+
"out/",
30+
"dist/"
31+
],
32+
};

0 commit comments

Comments
 (0)