Skip to content

chore: fix eslint config #1818

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ demos
packages/runtime/src/templates/edge
packages/runtime/src/templates/edge-shared
packages/runtime/lib
packages/runtime/dist-types
packages/runtime/dist-types
jestSetup.js
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module.exports = {
// TODO: re-enable after dropping support for Node 12
'n/no-unsupported-features/es-syntax': 'off',
'@typescript-eslint/no-extra-semi': 'off',
'n/no-missing-import': 'off',
},
},
{
Expand Down
1 change: 0 additions & 1 deletion jestSetup.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line n/no-unpublished-require
require('jest-fetch-mock').enableMocks()
60 changes: 24 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/runtime/src/templates/ipx.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable n/no-missing-import, import/no-unresolved, @typescript-eslint/ban-ts-comment */
/* eslint-disable import/no-unresolved, @typescript-eslint/ban-ts-comment */
import { Handler } from '@netlify/functions'
import { createIPXHandler } from '@netlify/ipx'

Expand All @@ -11,4 +11,4 @@ export const handler: Handler = createIPXHandler({
remotePatterns,
responseHeaders,
}) as Handler
/* eslint-enable n/no-missing-import, import/no-unresolved, @typescript-eslint/ban-ts-comment */
/* eslint-enable import/no-unresolved, @typescript-eslint/ban-ts-comment */