Skip to content

Commit 2ff135f

Browse files
committed
fix warning
1 parent bd58cec commit 2ff135f

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

Diff for: package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"serve": "gatsby serve",
1515
"clean": "gatsby clean",
1616
"check-types": "tsc -p . --noEmit",
17-
"lint": "eslint \"*/**/*.{js,ts,tsx,mdx}\" --max-warnings 0 --fix",
18-
"lint-check": "eslint \"*/**/*.{js,ts,tsx,mdx}\" --max-warnings 0",
17+
"lint": "npx eslint \"*/**/*.{js,ts,tsx,mdx}\" --max-warnings 0 --fix",
18+
"lint-check": "npx eslint \"*/**/*.{js,ts,tsx,mdx}\" --max-warnings 0",
1919
"prepare": "husky"
2020
},
2121
"dependencies": {
@@ -67,7 +67,7 @@
6767
},
6868
"lint-staged": {
6969
"*.{js,ts,tsx,mdx}": [
70-
"eslint --fix"
70+
"npx eslint --fix"
7171
]
7272
}
7373
}

Diff for: src/components/CookieConsentBanner.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
1716
/// <reference types="vanilla-cookieconsent" />
1817

1918
import { CookieManager } from '../helper';

Diff for: src/sections/home/Newsletter.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,7 @@ const Form: FC<FormProps> = props => {
153153
<Grid
154154
component="form"
155155
container
156-
onSubmit={
157-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
158-
handleSubmit
159-
}
156+
onSubmit={handleSubmit}
160157
justifyContent={['center', 'start']}
161158
>
162159
<Grid

0 commit comments

Comments
 (0)