Skip to content

Commit 08dea4a

Browse files
committed
fix warning
1 parent bd58cec commit 08dea4a

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

eslint.config.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,9 @@ import * as eslintPluginMdx from 'eslint-plugin-mdx'
2323
import eslintParser from '@typescript-eslint/parser';
2424

2525

26-
2726
const typeScriptExtensions = ['.ts', '.cts', '.mts', '.tsx'];
28-
2927
const allExtensions = [...typeScriptExtensions, '.js', '.jsx'];
3028

31-
3229
/** @type {import('eslint').Linter.FlatConfig[]} */
3330
export default [
3431
eslintPluginPrettierRecommended, // Enables eslint-plugin-prettier, eslint-config-prettier and prettier/prettier. This will display prettier errors as ESLint errors.

package.json

Lines changed: 3 additions & 3 deletions
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
}

src/components/CookieConsentBanner.tsx

Lines changed: 0 additions & 1 deletion
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';

src/sections/home/Newsletter.tsx

Lines changed: 1 addition & 4 deletions
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)