Skip to content

Commit 108bb2a

Browse files
committed
Update eslint for TS ⬆️
1 parent fe80bc1 commit 108bb2a

File tree

6 files changed

+4276
-4959
lines changed

6 files changed

+4276
-4959
lines changed

Diff for: .eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
**/vendor/**
55
**/plugin/assets/js/*.js
66
**/theme/assets/js/*.js
7+
**/plugin/assets/src/types/*
78
build/*
89
built/*

Diff for: .eslintrc.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"**/tests/js/**/*.js"
1212
],
1313
"extends": [
14-
"plugin:jest/all"
14+
"plugin:jest/all",
15+
"plugin:import/typescript",
16+
"plugin:@typescript-eslint/recommended"
1517
],
1618
"rules": {
1719
"jest/lowercase-name": [
@@ -32,6 +34,7 @@
3234
"no-nested-ternary": "off",
3335
"jsx-a11y/click-events-have-key-events": "off",
3436
"react-hooks/rules-of-hooks": "error",
35-
"react-hooks/exhaustive-deps": "warn"
37+
"react-hooks/exhaustive-deps": "warn",
38+
"import/no-extraneous-dependencies": "off"
3639
}
3740
}

0 commit comments

Comments
 (0)