Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
csouchet committed Apr 9, 2024
1 parent bd58cec commit 08dea4a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
3 changes: 0 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@ import * as eslintPluginMdx from 'eslint-plugin-mdx'
import eslintParser from '@typescript-eslint/parser';



const typeScriptExtensions = ['.ts', '.cts', '.mts', '.tsx'];

const allExtensions = [...typeScriptExtensions, '.js', '.jsx'];


/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
eslintPluginPrettierRecommended, // Enables eslint-plugin-prettier, eslint-config-prettier and prettier/prettier. This will display prettier errors as ESLint errors.
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"serve": "gatsby serve",
"clean": "gatsby clean",
"check-types": "tsc -p . --noEmit",
"lint": "eslint \"*/**/*.{js,ts,tsx,mdx}\" --max-warnings 0 --fix",
"lint-check": "eslint \"*/**/*.{js,ts,tsx,mdx}\" --max-warnings 0",
"lint": "npx eslint \"*/**/*.{js,ts,tsx,mdx}\" --max-warnings 0 --fix",
"lint-check": "npx eslint \"*/**/*.{js,ts,tsx,mdx}\" --max-warnings 0",
"prepare": "husky"
},
"dependencies": {
Expand Down Expand Up @@ -67,7 +67,7 @@
},
"lint-staged": {
"*.{js,ts,tsx,mdx}": [
"eslint --fix"
"npx eslint --fix"
]
}
}
1 change: 0 additions & 1 deletion src/components/CookieConsentBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference types="vanilla-cookieconsent" />

import { CookieManager } from '../helper';
Expand Down
5 changes: 1 addition & 4 deletions src/sections/home/Newsletter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,7 @@ const Form: FC<FormProps> = props => {
<Grid
component="form"
container
onSubmit={
// eslint-disable-next-line @typescript-eslint/no-misused-promises
handleSubmit
}
onSubmit={handleSubmit}
justifyContent={['center', 'start']}
>
<Grid
Expand Down

0 comments on commit 08dea4a

Please sign in to comment.