Skip to content

Commit d1cbca3

Browse files
chore(eslintrc): add plugin @typescript-eslint
1 parent 6e067e9 commit d1cbca3

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.eslintrc.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
{
22
"env": {
33
"browser": true,
4-
"commonjs": true,
54
"jest": true,
65
"node": true
76
},
8-
"extends": "eslint:recommended",
7+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
98
"parser": "@typescript-eslint/parser",
109
"parserOptions": {
11-
"ecmaVersion": 6,
10+
"ecmaVersion": 12,
1211
"sourceType": "module"
1312
},
14-
"plugins": ["prettier"],
13+
"plugins": ["@typescript-eslint", "prettier"],
1514
"rules": {
16-
"no-debugger": "error",
15+
"@typescript-eslint/no-var-requires": "off",
16+
"@typescript-eslint/no-explicit-any": "off",
1717
"no-console": "error",
18+
"no-debugger": "error",
1819
"prettier/prettier": "error"
1920
}
2021
}

test/types/error.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import parse from 'html-react-parser';
22

3-
// @ts-expect-error
3+
// @ts-expect-error Expected 1-2 arguments, but got 0.
44
parse();

0 commit comments

Comments
 (0)