-
Notifications
You must be signed in to change notification settings - Fork 13
bump Jose to 6 to support Cloudflare workers, update ESlint #70
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
Open
murbanowicz
wants to merge
1
commit into
kinde-oss:main
Choose a base branch
from
murbanowicz:bump-jose
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import tseslint from '@typescript-eslint/eslint-plugin'; | ||
import typescript from '@typescript-eslint/parser'; | ||
import n from 'eslint-plugin-n'; | ||
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; | ||
import promise from 'eslint-plugin-promise'; | ||
import { defineConfig, globalIgnores } from 'eslint/config'; | ||
|
||
export default defineConfig([ | ||
// Global ignores | ||
globalIgnores(['**/dist', '**/dist-cjs']), | ||
|
||
// Base configuration for all files | ||
{ | ||
linterOptions: { | ||
reportUnusedDisableDirectives: true, | ||
}, | ||
languageOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
rules: { | ||
quotes: ['error', 'single'], | ||
}, | ||
}, | ||
|
||
// TypeScript files | ||
{ | ||
files: ['**/*.ts'], | ||
plugins: { | ||
'@typescript-eslint': tseslint, | ||
}, | ||
languageOptions: { | ||
parser: typescript, | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
}, | ||
}, | ||
rules: { | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/strict-boolean-expressions': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/no-misused-promises': 'off', | ||
'@typescript-eslint/no-dynamic-delete': 'off', | ||
}, | ||
}, | ||
|
||
// JavaScript files | ||
{ | ||
files: ['**/*.js', '**/*.mjs', '**/*.cjs'], | ||
ignores: ['**/*.ts', '**/*.tsx'], | ||
}, | ||
|
||
// Other plugins | ||
{ | ||
plugins: { | ||
n, | ||
promise, | ||
}, | ||
rules: { | ||
'n/no-missing-import': 'off', | ||
}, | ||
}, | ||
|
||
// Prettier at the end to override formatting rules | ||
eslintPluginPrettierRecommended, | ||
]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Verify TypeScript project configuration.
The parser options reference
./tsconfig.json
directly. Ensure this path is correct relative to where ESLint will be executed, especially if your build or test scripts run from different directories.🏁 Script executed:
Length of output: 260
Missing TypeScript Configuration for ESLint Parser
It appears there’s no
tsconfig.json
at the repository root (or anywhere else), yet your ESLint config is pointing to./tsconfig.json
. ESLint will error out when it can’t find that file. Please update as follows:• Either add (or move) your
tsconfig.json
to the project root• Or correct the path in
eslint.config.mjs
(lines 34–36) underparserOptions.project
to point at the actual TS config location