Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 9b70a4f

Browse files
committed
wip: eslint support
1 parent 8847473 commit 9b70a4f

16 files changed

+983
-430
lines changed

.editorconfig

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
indent_size = 4
6+
indent_style = space
7+
trim_trailing_whitespace = true

.eslintrc.json

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:@typescript-eslint/eslint-recommended",
5+
"plugin:@typescript-eslint/recommended"
6+
],
7+
"parser": "@typescript-eslint/parser",
8+
"parserOptions": {
9+
"sourceType": "module",
10+
"ecmaVersion": 2017
11+
},
12+
"env": {
13+
"node": true,
14+
"es6": true
15+
},
16+
"plugins": [
17+
"@typescript-eslint"
18+
],
19+
"rules": {
20+
"arrow-parens": ["error", "as-needed"],
21+
"@typescript-eslint/indent": ["warn", 4],
22+
"@typescript-eslint/naming-convention": [
23+
"error",
24+
{
25+
"selector": "interface",
26+
"format": ["PascalCase"],
27+
"custom": {
28+
"regex": "^I[A-Z]",
29+
"match": false
30+
}
31+
},
32+
{
33+
"selector": "variableLike",
34+
"format": ["camelCase", "UPPER_CASE"],
35+
"leadingUnderscore": "allow"
36+
}
37+
],
38+
"max-len": ["error", {"code": 130, "ignoreComments": true}],
39+
"curly": "off",
40+
"no-fallthrough": "off",
41+
"no-constant-condition": "off",
42+
"@typescript-eslint/no-unused-vars": "off",
43+
"@typescript-eslint/no-non-null-assertion": "off",
44+
"@typescript-eslint/no-explicit-any": "off",
45+
"@typescript-eslint/ban-ts-comment": "off",
46+
"no-unused-vars": "off",
47+
"no-console": "off"
48+
}
49+
}

0 commit comments

Comments
 (0)