Skip to content

Commit bcb0d97

Browse files
committed
fix: tslint is deprecated, so use eslint
1 parent 2b128df commit bcb0d97

File tree

2 files changed

+28
-6
lines changed

2 files changed

+28
-6
lines changed

.eslintrc.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module.exports = {
2+
parser: "@typescript-eslint/parser", // specifies the ESLint parser
3+
parserOptions: {
4+
ecmaVersion: 2018, // allows for the parsing of modern ECMAScript features
5+
sourceType: "module", // allows for the use of imports
6+
project: "./tsconfig.json",
7+
ecmaFeatures: {
8+
jsx: true
9+
}
10+
},
11+
extends: [
12+
"plugin:@typescript-eslint/recommended", // typescript
13+
"prettier/@typescript-eslint", // prettier
14+
"plugin:react/recommended" // react
15+
],
16+
plugins: ["react-hooks"],
17+
settings: {
18+
react: {
19+
version: "detect"
20+
}
21+
},
22+
rules: {
23+
"react/display-name": 0,
24+
"@typescript-eslint/explicit-function-return-type": 0,
25+
"react-hooks/rules-of-hooks": 1,
26+
"react-hooks/exhaustive-deps": 1
27+
}
28+
};

tslint.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)