Skip to content

Commit a9a58b4

Browse files
committed
Add linting
1 parent 9d25d57 commit a9a58b4

11 files changed

+5047
-450
lines changed

.eslintrc.json

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"node": true,
5+
"jest": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/recommended",
10+
"standard-with-typescript"
11+
],
12+
"plugins": ["@typescript-eslint"],
13+
"parser": "@typescript-eslint/parser",
14+
"parserOptions": {
15+
"project": "./tsconfig.json"
16+
},
17+
"ignorePatterns": [
18+
"node_modules",
19+
"dist",
20+
".eslintrc.*"
21+
],
22+
"rules": {
23+
"comma-dangle": "off",
24+
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
25+
26+
"indent": "off",
27+
"@typescript-eslint/indent": ["error", 2, {
28+
"SwitchCase": 1,
29+
"flatTernaryExpressions": false,
30+
"ignoredNodes": [
31+
"PropertyDefinition[decorators]",
32+
"TSUnionType",
33+
"FunctionExpression[params]:has(Identifier[decorators])"
34+
]
35+
}],
36+
37+
"@typescript-eslint/interface-name-prefix": "off",
38+
"@typescript-eslint/space-before-function-paren": "off",
39+
"@typescript-eslint/strict-boolean-expressions": "off",
40+
"@typescript-eslint/no-misused-promises": "off",
41+
"@typescript-eslint/restrict-template-expressions": "off", // FIXME: the rule seems to be broken
42+
"@typescript-eslint/method-signature-style": "off",
43+
44+
"semi": "off",
45+
"space-before-function-paren": "off"
46+
}
47+
}

0 commit comments

Comments
 (0)