Skip to content

Commit 16826e3

Browse files
rhermes62jaredcnance
authored andcommitted
Migrates from TSLint to ESLint (#12)
1 parent 36b1951 commit 16826e3

27 files changed

+818
-412
lines changed

.eslintrc

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"parserOptions": {
4+
"project": "./tsconfig.eslint.json"
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:@typescript-eslint/eslint-recommended",
9+
"plugin:@typescript-eslint/recommended",
10+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
11+
"prettier",
12+
"prettier/@typescript-eslint"
13+
],
14+
"rules": {
15+
"@typescript-eslint/interface-name-prefix": "off"
16+
},
17+
// Be more lenient in tests for some rules
18+
"overrides": [
19+
{
20+
"files": ["./test/**/*", "**/__tests__/*"],
21+
"rules": {
22+
"@typescript-eslint/ban-ts-ignore": "off",
23+
"@typescript-eslint/explicit-function-return-type": "off",
24+
"@typescript-eslint/no-explicit-any": "off",
25+
"@typescript-eslint/no-non-null-assertion": "off",
26+
"@typescript-eslint/no-use-before-define": "off",
27+
"@typescript-eslint/unbound-method": "off"
28+
}
29+
}
30+
]
31+
}

0 commit comments

Comments
 (0)