Skip to content

Commit c5dd97d

Browse files
committed
Move to eslint from tslint/prettier - improve typings/linting
1 parent d2f63b1 commit c5dd97d

7 files changed

+975
-44
lines changed

Diff for: .eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lib/

Diff for: .eslintrc.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": [
5+
"@typescript-eslint"
6+
],
7+
"parserOptions": {
8+
"sourceType": "module"
9+
},
10+
"env": {
11+
"es6": true,
12+
"mocha": true,
13+
"node": true
14+
},
15+
"extends": [
16+
"eslint:recommended",
17+
"plugin:@typescript-eslint/eslint-recommended",
18+
"plugin:@typescript-eslint/recommended"
19+
],
20+
"rules": {
21+
"comma-dangle": "off",
22+
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
23+
"no-unused-vars": "off",
24+
"@typescript-eslint/no-unused-vars": ["error"],
25+
"no-shadow": "off",
26+
"@typescript-eslint/no-shadow": ["error"]
27+
},
28+
"overrides": [{
29+
"files": ["test/**/*"],
30+
"rules": {
31+
"@typescript-eslint/no-explicit-any": "off"
32+
}
33+
}]
34+
}

0 commit comments

Comments
 (0)